diff options
Diffstat (limited to '_posts')
4 files changed, 29 insertions, 5 deletions
diff --git a/_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown b/_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown index c4d9eb7..3bd3e78 100644 --- a/_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown +++ b/_posts/2014-05-31-less-file-compilation-for-jekyll-github-pages.markdown @@ -13,6 +13,14 @@ I recently wrote about [migrating my website to GitHub Pages](/writing/migrating Using [Git hooks](http://git-scm.com/book/en/Customizing-Git-Git-Hooks), it’s possible to run a script at certain points during the Git workflow. To take advantage of this in my case, I added a small bash script to `.git/hooks/pre-commit`: -{% gist benburwell/0ef673f6311b5191186e %} +{% highlight shell %} +#!/bin/sh + +export PATH=/usr/local/bin:$PATH +cd /Users/Ben/Documents/Code/benburwell.github.io/assets/less +lessc --clean-css style.less ../css/style.css +cd /Users/Ben/Documents/Code/benburwell.github.io +git add /Users/Ben/Documents/Code/benburwell.github.io/assets/css/style.css +{% endhighlight %} This is a pretty rough script, but it gets the job done for me. For a much more thorough script, see [this article by TJ VanToll](http://tjvantoll.com/2012/07/07/the-ideal-less-workflow-with-git/). diff --git a/_posts/2015-01-15-optimizing-css.markdown b/_posts/2015-01-15-optimizing-css.markdown index c2496f2..1f8e53a 100644 --- a/_posts/2015-01-15-optimizing-css.markdown +++ b/_posts/2015-01-15-optimizing-css.markdown @@ -30,6 +30,15 @@ On my site, I use a small stylesheet in the `<head>` to load my webfonts; this a If you're using Jekyll, you can pretty easily include a minified SCSS segment in your layouts. I keep my font stylesheet at `_includes/fonts.scss`, so I can use the following chunk of code to include the minified version: -{% gist bbaea7d51dd9ab9afa15 %} +{% highlight html %} +{% raw %} +<style type="text/css"> + {% capture fonts %} + {% include fonts.scss %} + {% endcapture %} + {{ fonts | scssify }} +</style> +{% endraw %} +{% endhighlight %} The minification is, of course, dependent on your `_config.yml`. You can [take a look at mine](https://github.com/benburwell/benburwell.github.io/blob/master/_config.yml) for reference. diff --git a/_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown b/_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown index 7837969..63739d4 100644 --- a/_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown +++ b/_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown @@ -28,8 +28,10 @@ After waiting for about 30 seconds or a minute, I saw a message that waiting for Next, I mounted the freshly-unlocked disk with <code>mount -o rw /dev/sda3 /root</code>, taking advantage of the pre-existing empty directory. From there, I used <code>chroot</code> to run <code>passwd</code> in the OS. - $ chroot /root passwd - $ chroot /root passwd myUserName +{% highlight shell %} +$ chroot /root passwd +$ chroot /root passwd myUserName +{% endhighlight %} By running these commands, I successfully reset both the root password as well as the password for my account. From there, I was able to restart the machine and boot normally. diff --git a/_posts/2015-04-23-getting-login-to-work-ubuntu-15.04-nvidia.markdown b/_posts/2015-04-23-getting-login-to-work-ubuntu-15.04-nvidia.markdown index a0bd1cd..757abb9 100644 --- a/_posts/2015-04-23-getting-login-to-work-ubuntu-15.04-nvidia.markdown +++ b/_posts/2015-04-23-getting-login-to-work-ubuntu-15.04-nvidia.markdown @@ -15,6 +15,11 @@ By entering <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>F3</kbd>, I was able to drop In the same shell, I ran: -{% gist 7efcf98bd1d76170c19e %} +{% highlight shell %} +wget http://us.download.nvidia.com/XFree86/Linux-x86_64/349.16/NVIDIA-Linux-x86_64-349.16.run +chmod u+x NVIDIA-Linux-x86_64-349.16.run +sudo service lightdm stop +sudo ./NVIDIA-Linux-x86_64-349.16.run +{% endhighlight %} After that, restarting my computer cleared up the issue. |