Browse Source

Improvements to site, one new post

master
Kim Grytøyr 1 year ago
parent
commit
93ec0ee9f6
100 changed files with 2060 additions and 1032 deletions
  1. 1
    1
      config.toml
  2. 7
    1
      content/about.md
  3. 2
    0
      content/post/2014-07-08-going-static.md
  4. 5
    5
      content/post/2014-07-09-case-sensitivty-problem-with-git-in-os-x.md
  5. 7
    7
      content/post/2014-09-03-opening-sublime-text-from-the-command-line.md
  6. 10
    10
      content/post/2015-06-14-locationpicker.js.md
  7. 2
    2
      content/post/2015-06-14-using-launchctl-on-mac-osx-10-10.markdown
  8. 6
    6
      content/post/2015-06-21-mutt-tips-and-tricks.md
  9. 14
    14
      content/post/2015-08-09-basic-usage-of-git-svn.md
  10. 5
    4
      content/post/2015-08-09-deleteing-rows-with-a-left-join-in-mysql.markdown
  11. 2
    2
      content/post/2015-08-09-useful-git-tips.md
  12. 12
    12
      content/post/2016-01-21-creating-a-bootable-usb-stick-on-os-x.md
  13. 24
    0
      content/post/2018-02-09-ubuntu-sudo-nopasswd.md
  14. 9
    9
      content/post/ludum-dare-38.md
  15. 1
    1
      invalidate_cahe.sh
  16. 36
    31
      public/2014/07/08/going-static/index.html
  17. 30
    31
      public/2014/07/09/case-sensitivty-problem-with-git-in-os-x/index.html
  18. 33
    35
      public/2014/09/03/opening-sublime-text-from-the-command-line/index.html
  19. 68
    72
      public/2015/06/14/locationpicker.js/index.html
  20. 41
    41
      public/2015/06/14/using-launchctl-on-mac-osx-10-10/index.html
  21. 34
    36
      public/2015/06/21/mutt-tips-and-tricks/index.html
  22. 43
    46
      public/2015/08/09/basic-usage-of-git-svn/index.html
  23. 30
    29
      public/2015/08/09/deleteing-rows-with-a-left-join-in-mysql/index.html
  24. 26
    25
      public/2015/08/09/useful-git-tips/index.html
  25. 36
    39
      public/2016/01/21/creating-a-bootable-usb-stick-on-os-x/index.html
  26. 24
    23
      public/2016/01/21/trouble-booting-newer-linux-kernels-on-asus-vivopc-vm42/index.html
  27. 24
    23
      public/2016/01/31/resizing-windows-on-linux/index.html
  28. 15
    14
      public/404.html
  29. 34
    25
      public/about/index.html
  30. 178
    0
      public/categories/index.html
  31. 1
    0
      public/categories/page/1/index.html
  32. 18
    9
      public/categories/posts-development/index.html
  33. 1
    1
      public/categories/posts-development/page/1/index.html
  34. 18
    9
      public/categories/posts-email/index.html
  35. 1
    1
      public/categories/posts-email/page/1/index.html
  36. 18
    9
      public/categories/posts-linux/index.html
  37. 1
    1
      public/categories/posts-linux/page/1/index.html
  38. 18
    9
      public/categories/posts/index.html
  39. 3
    3
      public/categories/posts/index.xml
  40. 1
    1
      public/categories/posts/page/1/index.html
  41. 18
    9
      public/categories/projects/index.html
  42. 1
    1
      public/categories/projects/page/1/index.html
  43. 31
    65
      public/css/highlight.css
  44. 9
    1
      public/css/style.css
  45. 27
    18
      public/index.html
  46. 17
    5
      public/index.xml
  47. 3
    1
      public/js/highlight.js
  48. 13
    0
      public/js/instantclick.min.js
  49. 3
    0
      public/js/jquery.min.js
  50. 1
    1
      public/page/1/index.html
  51. 27
    10
      public/page/2/index.html
  52. 24
    23
      public/post/2017-07-30-ludum-dare-39/index.html
  53. 274
    0
      public/post/2018-02-09-ubuntu-sudo-nopasswd/index.html
  54. 24
    23
      public/post/3d-model-of-a-book/index.html
  55. 27
    18
      public/post/index.html
  56. 15
    4
      public/post/index.xml
  57. 34
    36
      public/post/ludum-dare-38/index.html
  58. 24
    23
      public/post/new-website-platform/index.html
  59. 1
    1
      public/post/page/1/index.html
  60. 27
    10
      public/post/page/2/index.html
  61. 28
    10
      public/sitemap.xml
  62. 18
    9
      public/tags/3d-book/index.html
  63. 1
    1
      public/tags/3d-book/page/1/index.html
  64. 18
    9
      public/tags/3d/index.html
  65. 1
    1
      public/tags/3d/page/1/index.html
  66. 18
    9
      public/tags/aws/index.html
  67. 1
    1
      public/tags/aws/page/1/index.html
  68. 18
    9
      public/tags/blender/index.html
  69. 1
    1
      public/tags/blender/page/1/index.html
  70. 18
    9
      public/tags/boot/index.html
  71. 1
    1
      public/tags/boot/index.xml
  72. 1
    1
      public/tags/boot/page/1/index.html
  73. 18
    9
      public/tags/case-sensitivity/index.html
  74. 1
    1
      public/tags/case-sensitivity/page/1/index.html
  75. 18
    9
      public/tags/cloudfront/index.html
  76. 1
    1
      public/tags/cloudfront/page/1/index.html
  77. 18
    9
      public/tags/command-lin/index.html
  78. 1
    1
      public/tags/command-lin/page/1/index.html
  79. 18
    9
      public/tags/command-line/index.html
  80. 1
    1
      public/tags/command-line/page/1/index.html
  81. 18
    9
      public/tags/database/index.html
  82. 1
    1
      public/tags/database/page/1/index.html
  83. 18
    9
      public/tags/disk-image/index.html
  84. 1
    1
      public/tags/disk-image/page/1/index.html
  85. 18
    9
      public/tags/email/index.html
  86. 1
    1
      public/tags/email/page/1/index.html
  87. 18
    9
      public/tags/gamedev/index.html
  88. 1
    1
      public/tags/gamedev/page/1/index.html
  89. 18
    9
      public/tags/geodecoding/index.html
  90. 1
    1
      public/tags/geodecoding/page/1/index.html
  91. 18
    9
      public/tags/git-svn/index.html
  92. 1
    1
      public/tags/git-svn/page/1/index.html
  93. 18
    9
      public/tags/git/index.html
  94. 1
    1
      public/tags/git/page/1/index.html
  95. 18
    9
      public/tags/hugo/index.html
  96. 1
    1
      public/tags/hugo/page/1/index.html
  97. 227
    0
      public/tags/index.html
  98. 24
    6
      public/tags/index.xml
  99. 18
    9
      public/tags/javascript/index.html
  100. 0
    0
      public/tags/javascript/page/1/index.html

+ 1
- 1
config.toml View File

@@ -17,7 +17,7 @@ disqusShortname = ""
17 17
 	bio = "Programmer - Tech enthusiast"
18 18
 	# Enter optionally your twitter account
19 19
 	twitter = "kimgrytoyr"
20
-	enableRSS = true
20
+	enableRSS = false
21 21
 
22 22
 	# Integrate Javascript files or stylesheets by adding the url to the external assets or by
23 23
 	# linking local files with their path relative to the static folder, e.g. "css/styles.css"

+ 7
- 1
content/about.md View File

@@ -4,4 +4,10 @@ description = "About me and this site."
4 4
 title = "About"
5 5
 +++
6 6
 
7
-You are now viewing my personal website. Not much to say about it.
7
+You are now viewing my personal website. Here's a list of topics you can expect to find posts about on this site:
8
+
9
+- Programming
10
+- Linux
11
+- Technology in general
12
+- Flight simulation (X-plane)
13
+- Game development (Unity, Blender)

+ 2
- 0
content/post/2014-07-08-going-static.md View File

@@ -8,6 +8,8 @@ tags:
8 8
     - static
9 9
 ---
10 10
 
11
+> **Update 2018-02-09:** The information in this post is no longer current. Please read [this post](/post/new-website-platform/) for information about my current setup.
12
+
11 13
 My personal homepage has been powered by [Wordpress](https://wordpress.org) for several years. There's nothing wrong with Wordpress, it's a mature blogging platform with a plethora of plugins and themes to choose from. Nevertheless, lately I've been wanting to use a static site generator for my personal homepage. Here are some of the reasons why:
12 14
 
13 15
 * I want to use Markdown

+ 5
- 5
content/post/2014-07-09-case-sensitivty-problem-with-git-in-os-x.md View File

@@ -16,20 +16,20 @@ I've several times experienced problems with files and folders having incorrect
16 16
 
17 17
 First off, here's a solution published at [Coderwall.com](https://coderwall.com/p/mgi8ja):
18 18
 
19
-{{< highlight bash >}}
19
+```shell
20 20
 git mv filename filename_tmp
21 21
 git mv filename_tmp Filename
22 22
 git commit -m "Set correct case for filename"
23
-{{< / highlight >}}
23
+```
24 24
 
25 25
 The author mentions that this is a hack and that it could possibly mess up other users' repositories, and that a `git pull` by other users won't include this change.
26 26
 
27 27
 In a comment to that article, a user suggests the following approach instead:
28 28
 
29
-{{< highlight bash >}}
29
+```shell
30 30
 git mv --force filename Filename
31 31
 git commit -m "Set correct case for filename"
32
-{{< / highlight >}}
32
+```
33 33
 
34 34
 According to the comment, a `git pull` would now rename the file for other OS X users as well.
35 35
 
@@ -50,4 +50,4 @@ Here's a slightly rewritten version of the step-by-step list found in the articl
50 50
 7. Ensure "Sparse bundle disk image" is set in "Image Format".
51 51
 8. Save it somewhere on your hard drive
52 52
 
53
-The final step is to move any Git repositories to this new disk image. Any problems you've had with case-sensitivity will now be history.
53
+The final step is to move any Git repositories to this new disk image. Any problems you've had with case-sensitivity will now be history.

+ 7
- 7
content/post/2014-09-03-opening-sublime-text-from-the-command-line.md View File

@@ -5,7 +5,7 @@ tags:
5 5
 - sublime text
6 6
 - mac
7 7
 - command lin
8
-- quick tip
8
+- reference
9 9
 title: Opening Sublime Text from the command line
10 10
 url: /2014/09/03/opening-sublime-text-from-the-command-line/
11 11
 ---
@@ -14,9 +14,9 @@ I'm using [Sublime Text 3 beta](http://www.sublimetext.com/3) as my text editor.
14 14
 
15 15
 Here's how you can open Sublime Text from the command line:
16 16
 
17
-{{< highlight bash >}}
17
+```shell
18 18
 ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
19
-{{< / highlight >}}
19
+```
20 20
 
21 21
 (if you're using Sublime Text 2, just replace the path in the first argument)
22 22
 
@@ -24,16 +24,16 @@ If you would rather like to use another name for the command that opens Sublime
24 24
 
25 25
 For this to work you must have `/usr/local/bin` in your $PATH environment variable. To check if it's already there, type this into your command line:
26 26
 
27
-{{< highlight bash >}}
27
+```shell
28 28
 echo $PATH | grep -q "/usr/local/bin"
29
-{{< / highlight >}}
29
+```
30 30
 
31 31
 If nothing is returned, you must add `/usr/local/bin` to $PATH. I'm not going to cover how you do this, because there are probably hundreds of other sites that does.
32 32
 
33 33
 When everything is set up, you can type any of the following in your terminal:
34 34
 
35
-{{< highlight bash >}}
35
+```shell
36 36
 subl <filename> # Opens a file
37 37
 subl <foldername> # Opens a folder
38 38
 subl . # Opens the current folder
39
-{{< / highlight >}}
39
+```

+ 10
- 10
content/post/2015-06-14-locationpicker.js.md View File

@@ -28,32 +28,32 @@ locationpicker.js requires [jQuery](http://jquery.com/) and the [Google Maps API
28 28
 ## Usage
29 29
 These are the scripts you need to include in your HTML file:
30 30
 
31
-{{< highlight html >}}
31
+```html
32 32
 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
33 33
 <script src="//maps.google.com/maps/api/js?sensor=false&libraries=places"></script>
34 34
 <script src="js/locationpicker.js"></script>
35
-{{< / highlight >}}
35
+```
36 36
 
37 37
 In addition, you'll need to insert a container that will hold the actual map from Google Maps:
38 38
 
39
-{{< highlight html >}}
39
+```html
40 40
 <div id="myMap"></div>
41
-{{< / highlight >}}
41
+```
42 42
 
43 43
 The map container can be styled using CSS.
44 44
 
45 45
 The last thing you need to do is to load the locationpicker.js plugin:
46 46
 
47
-{{< highlight html >}}
47
+```html
48 48
 <script>
49 49
     $('#myMap').locationpicker({ options });
50 50
 </script>
51
-{{< / highlight >}}
51
+```
52 52
 
53 53
 ## Options
54 54
 You can configure locationpicker.js with a few options. Here are the defaults:
55 55
 
56
-{{< highlight js >}}
56
+```js
57 57
 location: {
58 58
     latitude: 69.675366,
59 59
     longitude: 18.975428
@@ -81,7 +81,7 @@ circleOptions: {
81 81
 },
82 82
 afterLoad: function(currentLocation, radius) {},
83 83
 afterChange: function(currentLocation, radius) {},
84
-{{< / highlight >}}
84
+```
85 85
 
86 86
 **location { latitude, longitude }** (default: 69.675366, 18.975428)
87 87
 The coordinates that will be loaded when the map is first displayed.
@@ -149,13 +149,13 @@ A callback function that is called every time the location or radius changes. `c
149 149
 ## Address search
150 150
 The plugins also supports searching for a location by providing the address. Here's an example of how to do that:
151 151
 
152
-{{< highlight js >}}
152
+```js
153 153
 $('#myMap').locationpicker('address', 'Karl Johans gate 1, Oslo, Norway', function(e) {
154 154
     if (e.noResults) {
155 155
         // No results found, alert the user.
156 156
     }
157 157
 });
158
-{{< / highlight >}}
158
+```
159 159
 
160 160
 If Google Maps' geocoder is able to find a location, the first location returned from Google will be selected in the map. If not, the object `e` will have a property called `noResults` with the value `true`.
161 161
 

+ 2
- 2
content/post/2015-06-14-using-launchctl-on-mac-osx-10-10.markdown View File

@@ -18,7 +18,7 @@ After I finally got everything set up (easier said than done), I needed a way to
18 18
 make offlineimap synchronize my mailbox periodically. Apple recommends using __launchctl__
19 19
 instead of crontab. The following example shows how to run __offlineimap__ in quiet mode every two minutes:
20 20
 
21
-{{< highlight xml >}}
21
+```xml
22 22
 <?xml version="1.0" encoding="UTF-8"?>
23 23
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
24 24
 <plist version="1.0">
@@ -35,7 +35,7 @@ instead of crontab. The following example shows how to run __offlineimap__ in qu
35 35
   <integer>120</integer>
36 36
 </dict>
37 37
 </plist>
38
-{{< / highlight >}}
38
+```
39 39
 
40 40
 This file is basically an XML file, but the extension you must use is `.plist`. You would typically call it something like _com.yourname.scriptname.plist_. Place it in the folder `~/Library/LaunchAgents/`, and make sure you replace _yourname_ and _scriptname_ with something relevant.
41 41
 

+ 6
- 6
content/post/2015-06-21-mutt-tips-and-tricks.md View File

@@ -56,13 +56,13 @@ to apply the next operation to all tagged messages. The default keybinding for
56 56
 
57 57
 Here's an example of how to tag all unread messages and mark them as read:
58 58
 
59
-{{< highlight bash >}}
59
+```bash
60 60
 T # Invokes the tag-pattern function
61 61
 ~N # Tags all unread messages
62 62
 ; # tag-prefix operator, next operation will be applied to all tagged messages
63 63
 W # Clear flag
64 64
 N # Clear the N (unread) flag
65
-{{< / highlight >}}
65
+```
66 66
 
67 67
 <a name="untagging"></a>Untagging messages
68 68
 ==========
@@ -80,17 +80,17 @@ After you've installed [mutt][] with this patch, it's very simple to change the
80 80
 signature attachment's filename. All you have to do is add the following line to
81 81
 your `.muttrc`:
82 82
 
83
-{{< highlight bash >}}
83
+```bash
84 84
 set pgp_mime_signature_filename = 'signature.asc'
85
-{{< / highlight >}}
85
+```
86 86
 
87 87
 <a name="from-specific-signatures"></a>"From"-specific signatures
88 88
 ------------------------------------
89 89
 I have different email addresses based on what "role" I have. One (with several aliases) is for personal stuff, one is for work related stuff and one is for my freelance company. I'd like [mutt][] to change my signature based on which address I send the email from. This is also fairly easy to accomplish. Just add the following line to `.muttrc` for each account you would like a specific signature for:
90 90
 
91
-{{< highlight bash >}}
91
+```bash
92 92
 send-hook "~f from@address1.com" 'set signature=~/.mutt/signature_for_address1'
93
-{{< / highlight >}}
93
+```
94 94
 
95 95
 This will tell [mutt][] that *"whenever I send a message from
96 96
 `from@address1.com`, use the signature in the file

+ 14
- 14
content/post/2015-08-09-basic-usage-of-git-svn.md View File

@@ -15,43 +15,43 @@ This is a small guide I wrote for my own convenience when I recently was convert
15 15
 I've found most of these examples in the excellent official [git-svn documentation](http://git-scm.com/docs/git-svn).
16 16
 
17 17
 ## Cloning the SVN repository
18
-{{< highlight bash >}}
18
+```shell
19 19
 git svn clone <repo-url>
20
-{{< / highlight >}}
20
+```
21 21
 
22 22
 ## Adding another remote
23
-{{< highlight bash >}}
23
+```shell
24 24
 git remote add <remote-name> <remote-url>
25
-{{< / highlight >}}
25
+```
26 26
 
27 27
 ## Fetching and rebasing changes from SVN
28
-{{< highlight bash >}}
28
+```shell
29 29
 git svn fetch && git svn rebase
30
-{{< / highlight >}}
30
+```
31 31
 Note that the git-svn documentation has a section discussing rebase vs pull/merge:
32 32
 
33 33
 > Prefer to use git svn rebase or git rebase, rather than git pull or git merge to synchronize unintegrated commits with a git svn branch. Doing so will keep the history of unintegrated commits linear with respect to the upstream SVN repository and allow the use of the preferred git svn dcommit subcommand to push unintegrated commits back into SVN.
34 34
 
35 35
 ## Doing work and pushing to SVN
36
-{{< highlight bash >}}
36
+```shell
37 37
 git add <file>
38 38
 git commit -m "<commit message>"
39 39
 git svn dcommit # This will push your changes to the SVN repository
40
-{{< / highlight >}}
40
+```
41 41
 
42 42
 ## Pushing to other remotes
43
-{{< highlight bash >}}
43
+```shell
44 44
 git push <remote-name>
45
-{{< / highlight >}}
45
+```
46 46
 
47 47
 ## See what will be pushed to SVN
48
-{{< highlight bash >}}
48
+```shell
49 49
 git diff git-svn HEAD # Assuming your remote SVN branch is called git-svn
50
-{{< / highlight >}}
50
+```
51 51
 [http://stackoverflow.com/a/9776318/1094451](http://stackoverflow.com/a/9776318/1094451)
52 52
 
53
-{{< highlight bash >}}
53
+```shell
54 54
 git svn dcommit --dry-run
55
-{{< / highlight >}}
55
+```
56 56
 [http://stackoverflow.com/a/6040113/1094451](http://stackoverflow.com/a/6040113/1094451)
57 57
 

+ 5
- 4
content/post/2015-08-09-deleteing-rows-with-a-left-join-in-mysql.markdown View File

@@ -6,6 +6,7 @@ tags:
6 6
 - mysql
7 7
 - sql
8 8
 - database
9
+- reference
9 10
 title: Deleting rows with a LEFT JOIN in MySQL
10 11
 url: /2015/08/09/deleteing-rows-with-a-left-join-in-mysql/
11 12
 ---
@@ -16,14 +17,14 @@ Let's say you have a table **images** and a table **users**. Now you want to del
16 17
 
17 18
 First, I usually do a visual inspection of the rows that will be deleted:
18 19
 
19
-{{< highlight sql >}}
20
+```sql
20 21
 SELECT i.* FROM images i LEFT JOIN users u ON i.user_id = u.id WHERE u.deleted = 1;
21
-{{< / highlight >}}
22
+```
22 23
 
23 24
 The rows returned by this query are the rows that will be deleted when you run the following query:
24 25
 
25
-{{< highlight sql >}}
26
+```sql
26 27
 DELETE i FROM images i LEFT JOIN users u ON i.user_id = u.id WHERE u.deleted = 1;
27
-{{< / highlight >}}
28
+```
28 29
 
29 30
 They key part here is to specify which table you want to delete from. In this case it's the table `i`, which is the `images` table.

+ 2
- 2
content/post/2015-08-09-useful-git-tips.md View File

@@ -14,7 +14,7 @@ This is a collection of useful git commands, aliases, tips and tricks that I've
14 14
 ## Aliases for ignoring files
15 15
 To prevent changes in already-commited files from being commited, you can update your index with the `--assume-unchaged` flag for the files that you don't want to commit. Here are a couple of useful aliases for dealing with this.
16 16
 
17
-```bash
17
+```shell
18 18
 ignore = !git update-index --assume-unchanged
19 19
 unignore = !git update-index --no-assume-unchanged
20 20
 ignored = !git ls-files -v | grep ^[a-z]
@@ -29,6 +29,6 @@ Source: [http://gitready.com/intermediate/2009/02/18/temporarily-ignoring-files.
29 29
 ## Commit partial changes
30 30
 If you want to only commit certain changes in a file, you can use the following command:
31 31
 
32
-```bash
32
+```shell
33 33
 git add -p <files>
34 34
 ```

+ 12
- 12
content/post/2016-01-21-creating-a-bootable-usb-stick-on-os-x.md View File

@@ -6,7 +6,7 @@ tags:
6 6
 - usb
7 7
 - boot
8 8
 - mac
9
-- tips
9
+- reference
10 10
 title: Creating a bootable USB stick on OS X
11 11
 url: /2016/01/21/creating-a-bootable-usb-stick-on-os-x/
12 12
 ---
@@ -16,9 +16,9 @@ Here's a simple way to create a bootable USB stick from a downloaded .ISO file o
16 16
 ## Convert ISO to IMG
17 17
 Open the terminal and type the following command:
18 18
 
19
-{{< highlight bash >}}
19
+```bash
20 20
 hdiutil convert -format UDRW -o target.img source.iso
21
-{{< / highlight >}}
21
+```
22 22
 
23 23
 Remember to replace the paths in the previous example.
24 24
 
@@ -28,21 +28,21 @@ Remember to replace the paths in the previous example.
28 28
 
29 29
 First, find the correct device node:
30 30
 
31
-{{< highlight bash >}}
32
-    diskutil list
33
-{{< / highlight >}}
31
+```shell
32
+diskutil list
33
+```
34 34
 
35 35
 After you have successfully identified your USB stick, unmount the disk (replace *N* with the disk number):
36 36
 
37
-{{< highlight bash >}}
38
-    diskutil unmountDisk /dev/diskN
39
-{{< / highlight >}}
37
+```shell
38
+diskutil unmountDisk /dev/diskN
39
+```
40 40
 
41 41
 Finally, transfer the image to the USB stick (again, replace *N* with the disk number):
42 42
 
43
-{{< highlight bash >}}
44
-	sudo dd if=target.img of=/dev/rdiskN bs=1m
45
-{{< / highlight >}}
43
+```shell
44
+sudo dd if=target.img of=/dev/rdiskN bs=1m
45
+```
46 46
 
47 47
 After a short while, depending on the image size, your USB stick will be ready to use as a bootable media.
48 48
 

+ 24
- 0
content/post/2018-02-09-ubuntu-sudo-nopasswd.md View File

@@ -0,0 +1,24 @@
1
++++
2
+date = "2018-02-09T22:12:00+02:00"
3
+description = "Reference"
4
+title = "Disabling password for sudo in Ubuntu"
5
+tags = ["ubuntu", "linux", "sudo", "reference"]
6
++++
7
+
8
+Disabling the password needed for `sudo` for a specific user is very easy in Ubuntu. This method applies to Ubuntu 16.04, but probably also other versions of Ubuntu and maybe even other distros.
9
+
10
+First, run the following command:
11
+
12
+```shell
13
+sudo visudo
14
+```
15
+
16
+> **Note:** If this is the first time you're running this command, you'll most likely be presented with a list of editors to choose from. Choose the one you're most comfortable with.
17
+
18
+Then enter the following line **at the end of the file**:
19
+
20
+```shell
21
+user ALL=(ALL:ALL) NOPASSWD:ALL
22
+```
23
+
24
+Make sure to replace *user* with the username of the user you want to allow using `sudo` without entering a password.

+ 9
- 9
content/post/ludum-dare-38.md View File

@@ -44,19 +44,19 @@ Here's a breakdown of the different tools I used:
44 44
     * Evernote
45 45
 
46 46
 ## Summary
47
-    It was a really fun and challenging experience. As a beginner with both Unity and Blender, I spent most of the time figuring out how to do some of the most basic things. Time spent in Blender was probably around 60%. I really wanted to spend more time making the game more exciting and fun to play, but I just couldn't fit it in. I probably should have submitted to the jam, which would have given me 24 hours more to work with the game, but since I had other plans for the next day, I didn't see any reason to do so.
47
+It was a really fun and challenging experience. As a beginner with both Unity and Blender, I spent most of the time figuring out how to do some of the most basic things. Time spent in Blender was probably around 60%. I really wanted to spend more time making the game more exciting and fun to play, but I just couldn't fit it in. I probably should have submitted to the jam, which would have given me 24 hours more to work with the game, but since I had other plans for the next day, I didn't see any reason to do so.
48 48
 
49
-    I'm already looking forward to the next event.
49
+I'm already looking forward to the next event.
50 50
 
51 51
 ## Links
52
-    **Ludum Dare entry**  
53
-    https://ldjam.com/events/ludum-dare/38/parking-zone
52
+**Ludum Dare entry**  
53
+https://ldjam.com/events/ludum-dare/38/parking-zone
54 54
 
55
-    **Source code**  
56
-    https://github.com/kimgrytoyr/LD38---Parking-Zone
55
+**Source code**  
56
+https://github.com/kimgrytoyr/LD38---Parking-Zone
57 57
 
58
-    **Downloads**  
58
+**Downloads**  
59 59
 
60
-    * [Windows](/files/LD38/ParkingZone.exe)
61
-    * [Mac](/files/LD38/Parkingzone.app.zip)
60
+* [Windows](/files/LD38/ParkingZone.exe)
61
+* [Mac](/files/LD38/Parkingzone.app.zip)
62 62
 * [Linux](/files/LD38/ParkingZone.x86)

+ 1
- 1
invalidate_cahe.sh View File

@@ -1,3 +1,3 @@
1 1
 #!/bin/bash
2 2
 distribution_id="E1B9KWNF6O30FL" # Cloudfront distribution ID
3
-aws cloudfront create-invalidation --distribution-id $distribution_id --paths "*"  >/dev/null
3
+aws cloudfront create-invalidation --distribution-id $distribution_id --paths "$1"  >/dev/null

+ 36
- 31
public/2014/07/08/going-static/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>Going static &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,18 +18,17 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="Going static" />
25
-<meta property="og:description" content="My personal homepage has been powered by Wordpress for several years. There&rsquo;s nothing wrong with Wordpress, it&rsquo;s a mature blogging platform with a plethora of plugins and themes to choose from. Nevertheless, lately I&rsquo;ve been wanting to use a static site generator for my personal homepage. Here are some of the reasons why:
26
- I want to use Markdown I want to use my favorite editor when writing I can easily store my homepage source in a Git repository or in Dropbox I can easily host it anywhere  Now, most of these things can also be accomplished using Wordpress, but I find the concept of using a static site generator quite interesting, so I&rsquo;ve decided to give it a go." />
23
+<meta property="og:description" content="Update 2018-02-09: The information in this post is no longer current. Please read this post for information about my current setup.
24
+ My personal homepage has been powered by Wordpress for several years. There&rsquo;s nothing wrong with Wordpress, it&rsquo;s a mature blogging platform with a plethora of plugins and themes to choose from. Nevertheless, lately I&rsquo;ve been wanting to use a static site generator for my personal homepage. Here are some of the reasons why:" />
27 25
 <meta property="og:type" content="article" />
28 26
 <meta property="og:url" content="/2014/07/08/going-static/" />
29 27
 
30 28
 
31 29
 
32 30
 <meta property="article:published_time" content="2014-07-08T23:13:00&#43;00:00"/>
31
+
33 32
 <meta property="article:modified_time" content="2014-07-08T23:13:00&#43;00:00"/>
34 33
 
35 34
 
@@ -45,27 +44,22 @@
45 44
 	    
46 45
 	    
47 46
 <meta itemprop="name" content="Going static">
48
-<meta itemprop="description" content="My personal homepage has been powered by Wordpress for several years. There&rsquo;s nothing wrong with Wordpress, it&rsquo;s a mature blogging platform with a plethora of plugins and themes to choose from. Nevertheless, lately I&rsquo;ve been wanting to use a static site generator for my personal homepage. Here are some of the reasons why:
49
- I want to use Markdown I want to use my favorite editor when writing I can easily store my homepage source in a Git repository or in Dropbox I can easily host it anywhere  Now, most of these things can also be accomplished using Wordpress, but I find the concept of using a static site generator quite interesting, so I&rsquo;ve decided to give it a go.">
47
+<meta itemprop="description" content="Update 2018-02-09: The information in this post is no longer current. Please read this post for information about my current setup.
48
+ My personal homepage has been powered by Wordpress for several years. There&rsquo;s nothing wrong with Wordpress, it&rsquo;s a mature blogging platform with a plethora of plugins and themes to choose from. Nevertheless, lately I&rsquo;ve been wanting to use a static site generator for my personal homepage. Here are some of the reasons why:">
50 49
 
51 50
 
51
+<meta itemprop="datePublished" content="2014-07-08T23:13:00&#43;00:00" />
52 52
 <meta itemprop="dateModified" content="2014-07-08T23:13:00&#43;00:00" />
53
-<meta itemprop="wordCount" content="193">
54
-
53
+<meta itemprop="wordCount" content="214">
55 54
 
56 55
 
57
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
58
-
59
-	    
60
-
61
-  <meta name="twitter:card" content="summary"/>
62 56
 
57
+<meta itemprop="keywords" content="jekyll,static," />
63 58
 
64
-
65
-<meta name="twitter:text:title" content="Going static"/>
59
+	    <meta name="twitter:card" content="summary"/>
66 60
 <meta name="twitter:title" content="Going static"/>
67
-<meta name="twitter:description" content="My personal homepage has been powered by Wordpress for several years. There&rsquo;s nothing wrong with Wordpress, it&rsquo;s a mature blogging platform with a plethora of plugins and themes to choose from. Nevertheless, lately I&rsquo;ve been wanting to use a static site generator for my personal homepage. Here are some of the reasons why:
68
- I want to use Markdown I want to use my favorite editor when writing I can easily store my homepage source in a Git repository or in Dropbox I can easily host it anywhere  Now, most of these things can also be accomplished using Wordpress, but I find the concept of using a static site generator quite interesting, so I&rsquo;ve decided to give it a go."/>
61
+<meta name="twitter:description" content="Update 2018-02-09: The information in this post is no longer current. Please read this post for information about my current setup.
62
+ My personal homepage has been powered by Wordpress for several years. There&rsquo;s nothing wrong with Wordpress, it&rsquo;s a mature blogging platform with a plethora of plugins and themes to choose from. Nevertheless, lately I&rsquo;ve been wanting to use a static site generator for my personal homepage. Here are some of the reasons why:"/>
69 63
 <meta name="twitter:site" content="@https://www.twitter.com/kimgrytoyr"/>
70 64
 
71 65
 	</head>
@@ -82,10 +76,9 @@
82 76
 	
83 77
 
84 78
 	
85
-	<a class="cta" href="/index.xml">Subscribe</a>
86
-	
87 79
 </nav>
88 80
 
81
+
89 82
         <section id="wrapper">
90 83
             <article class="post">
91 84
                 <header>
@@ -105,7 +98,11 @@
105 98
                     </h2>
106 99
                 </header>
107 100
                 <section id="post-body">
108
-                    <p>My personal homepage has been powered by <a href="https://wordpress.org">Wordpress</a> for several years. There&rsquo;s nothing wrong with Wordpress, it&rsquo;s a mature blogging platform with a plethora of plugins and themes to choose from. Nevertheless, lately I&rsquo;ve been wanting to use a static site generator for my personal homepage. Here are some of the reasons why:</p>
101
+                    <blockquote>
102
+<p><strong>Update 2018-02-09:</strong> The information in this post is no longer current. Please read <a href="/post/new-website-platform/">this post</a> for information about my current setup.</p>
103
+</blockquote>
104
+
105
+<p>My personal homepage has been powered by <a href="https://wordpress.org">Wordpress</a> for several years. There&rsquo;s nothing wrong with Wordpress, it&rsquo;s a mature blogging platform with a plethora of plugins and themes to choose from. Nevertheless, lately I&rsquo;ve been wanting to use a static site generator for my personal homepage. Here are some of the reasons why:</p>
109 106
 
110 107
 <ul>
111 108
 <li>I want to use Markdown</li>
@@ -153,6 +150,13 @@
153 150
     
154 151
     
155 152
         
153
+        <li>
154
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
155
+        </li>
156
+        
157
+   
158
+    
159
+        
156 160
         <li>
157 161
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
158 162
         </li>
@@ -214,13 +218,6 @@
214 218
         </li>
215 219
         
216 220
    
217
-    
218
-        
219
-        <li>
220
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
221
-        </li>
222
-        
223
-   
224 221
 </ul>
225 222
 
226 223
             <footer id="footer">
@@ -249,17 +246,25 @@
249 246
     
250 247
     <p class="small">
251 248
     
252
-        © Copyright 2017 Kim Grytøyr
249
+        © Copyright 2018 Kim Grytøyr
253 250
     
254 251
     </p>
255 252
 </footer>
256 253
 
257 254
         </section>
258 255
 
259
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
256
+        <script src="/js/jquery.min.js"></script>
260 257
 <script src="/js/main.js"></script>
261 258
 <script src="/js/highlight.js"></script>
262
-<script>hljs.initHighlightingOnLoad();</script>
259
+<script src="/js/instantclick.min.js" data-no-instant></script>
260
+<script>
261
+    InstantClick.on('change', function() {
262
+        setTimeout(function() {
263
+            hljs.initHighlighting();
264
+        }, 100);
265
+    });
266
+</script>
267
+<script data-no-instant>InstantClick.init();</script>
263 268
 
264 269
 
265 270
 

+ 30
- 31
public/2014/07/09/case-sensitivty-problem-with-git-in-os-x/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>Case-sensitivity problem with Git in OS X &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="Case-sensitivity problem with Git in OS X" />
25 23
 <meta property="og:description" content="I&rsquo;ve several times experienced problems with files and folders having incorrect case in Git repositories in OS X, so I decided to gather some possible fixes and solutions to this problem. If you have any suggestions or comments, please consider sharing it with me in a comment.
@@ -31,6 +29,7 @@ git mv filename filename_tmp git mv filename_tmp Filename git commit -m &quot;Se
31 29
 
32 30
 
33 31
 <meta property="article:published_time" content="2014-07-09T02:18:36&#43;00:00"/>
32
+
34 33
 <meta property="article:modified_time" content="2014-07-09T02:18:36&#43;00:00"/>
35 34
 
36 35
 
@@ -51,20 +50,15 @@ Hacks First off, here&rsquo;s a solution published at Coderwall.com:
51 50
 git mv filename filename_tmp git mv filename_tmp Filename git commit -m &quot;Set correct case for filename&quot;  The author mentions that this is a hack and that it could possibly mess up other users&rsquo; repositories, and that a git pull by other users won&rsquo;t include this change.">
52 51
 
53 52
 
53
+<meta itemprop="datePublished" content="2014-07-09T02:18:36&#43;00:00" />
54 54
 <meta itemprop="dateModified" content="2014-07-09T02:18:36&#43;00:00" />
55 55
 <meta itemprop="wordCount" content="317">
56 56
 
57 57
 
58 58
 
59
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
60
-
61
-	    
62
-
63
-  <meta name="twitter:card" content="summary"/>
64
-
65
-
59
+<meta itemprop="keywords" content="git,mac,case-sensitivity,disk image," />
66 60
 
67
-<meta name="twitter:text:title" content="Case-sensitivity problem with Git in OS X"/>
61
+	    <meta name="twitter:card" content="summary"/>
68 62
 <meta name="twitter:title" content="Case-sensitivity problem with Git in OS X"/>
69 63
 <meta name="twitter:description" content="I&rsquo;ve several times experienced problems with files and folders having incorrect case in Git repositories in OS X, so I decided to gather some possible fixes and solutions to this problem. If you have any suggestions or comments, please consider sharing it with me in a comment.
70 64
 Hacks First off, here&rsquo;s a solution published at Coderwall.com:
@@ -85,10 +79,9 @@ git mv filename filename_tmp git mv filename_tmp Filename git commit -m &quot;Se
85 79
 	
86 80
 
87 81
 	
88
-	<a class="cta" href="/index.xml">Subscribe</a>
89
-	
90 82
 </nav>
91 83
 
84
+
92 85
         <section id="wrapper">
93 86
             <article class="post">
94 87
                 <header>
@@ -120,20 +113,18 @@ git mv filename filename_tmp git mv filename_tmp Filename git commit -m &quot;Se
120 113
 
121 114
 <p>First off, here&rsquo;s a solution published at <a href="https://coderwall.com/p/mgi8ja">Coderwall.com</a>:</p>
122 115
 
123
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>git mv filename filename_tmp
116
+<pre><code class="language-shell">git mv filename filename_tmp
124 117
 git mv filename_tmp Filename
125
-git commit -m <span style="color: #e6db74">&quot;Set correct case for filename&quot;</span>
126
-</pre></div>
127
-
118
+git commit -m &quot;Set correct case for filename&quot;
119
+</code></pre>
128 120
 
129 121
 <p>The author mentions that this is a hack and that it could possibly mess up other users&rsquo; repositories, and that a <code>git pull</code> by other users won&rsquo;t include this change.</p>
130 122
 
131 123
 <p>In a comment to that article, a user suggests the following approach instead:</p>
132 124
 
133
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>git mv --force filename Filename
134
-git commit -m <span style="color: #e6db74">&quot;Set correct case for filename&quot;</span>
135
-</pre></div>
136
-
125
+<pre><code class="language-shell">git mv --force filename Filename
126
+git commit -m &quot;Set correct case for filename&quot;
127
+</code></pre>
137 128
 
138 129
 <p>According to the comment, a <code>git pull</code> would now rename the file for other OS X users as well.</p>
139 130
 
@@ -191,6 +182,13 @@ git commit -m <span style="color: #e6db74">&quot;Set correct case for filename&q
191 182
     
192 183
     
193 184
         
185
+        <li>
186
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
187
+        </li>
188
+        
189
+   
190
+    
191
+        
194 192
         <li>
195 193
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
196 194
         </li>
@@ -252,13 +250,6 @@ git commit -m <span style="color: #e6db74">&quot;Set correct case for filename&q
252 250
         </li>
253 251
         
254 252
    
255
-    
256
-        
257
-        <li>
258
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
259
-        </li>
260
-        
261
-   
262 253
 </ul>
263 254
 
264 255
             <footer id="footer">
@@ -287,17 +278,25 @@ git commit -m <span style="color: #e6db74">&quot;Set correct case for filename&q
287 278
     
288 279
     <p class="small">
289 280
     
290
-        © Copyright 2017 Kim Grytøyr
281
+        © Copyright 2018 Kim Grytøyr
291 282
     
292 283
     </p>
293 284
 </footer>
294 285
 
295 286
         </section>
296 287
 
297
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
288
+        <script src="/js/jquery.min.js"></script>
298 289
 <script src="/js/main.js"></script>
299 290
 <script src="/js/highlight.js"></script>
300
-<script>hljs.initHighlightingOnLoad();</script>
291
+<script src="/js/instantclick.min.js" data-no-instant></script>
292
+<script>
293
+    InstantClick.on('change', function() {
294
+        setTimeout(function() {
295
+            hljs.initHighlighting();
296
+        }, 100);
297
+    });
298
+</script>
299
+<script data-no-instant>InstantClick.init();</script>
301 300
 
302 301
 
303 302
 

+ 33
- 35
public/2014/09/03/opening-sublime-text-from-the-command-line/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>Opening Sublime Text from the command line &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="Opening Sublime Text from the command line" />
25 23
 <meta property="og:description" content="I&rsquo;m using Sublime Text 3 beta as my text editor. It&rsquo;s fast and lightweight, but at the same time it&rsquo;s very powerful.
@@ -32,6 +30,7 @@ If you would rather like to use another name for the command that opens Sublime
32 30
 
33 31
 
34 32
 <meta property="article:published_time" content="2014-09-03T20:53:36&#43;00:00"/>
33
+
35 34
 <meta property="article:modified_time" content="2014-09-03T20:53:36&#43;00:00"/>
36 35
 
37 36
 
@@ -53,20 +52,15 @@ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local
53 52
 If you would rather like to use another name for the command that opens Sublime Text, just change the last part (subl) of this command to whatever you want.">
54 53
 
55 54
 
55
+<meta itemprop="datePublished" content="2014-09-03T20:53:36&#43;00:00" />
56 56
 <meta itemprop="dateModified" content="2014-09-03T20:53:36&#43;00:00" />
57 57
 <meta itemprop="wordCount" content="175">
58 58
 
59 59
 
60 60
 
61
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
62
-
63
-	    
64
-
65
-  <meta name="twitter:card" content="summary"/>
66
-
67
-
61
+<meta itemprop="keywords" content="sublime text,mac,command lin,reference," />
68 62
 
69
-<meta name="twitter:text:title" content="Opening Sublime Text from the command line"/>
63
+	    <meta name="twitter:card" content="summary"/>
70 64
 <meta name="twitter:title" content="Opening Sublime Text from the command line"/>
71 65
 <meta name="twitter:description" content="I&rsquo;m using Sublime Text 3 beta as my text editor. It&rsquo;s fast and lightweight, but at the same time it&rsquo;s very powerful.
72 66
 Here&rsquo;s how you can open Sublime Text from the command line:
@@ -88,10 +82,9 @@ If you would rather like to use another name for the command that opens Sublime
88 82
 	
89 83
 
90 84
 	
91
-	<a class="cta" href="/index.xml">Subscribe</a>
92
-	
93 85
 </nav>
94 86
 
87
+
95 88
         <section id="wrapper">
96 89
             <article class="post">
97 90
                 <header>
@@ -108,7 +101,7 @@ If you would rather like to use another name for the command that opens Sublime
108 101
                         
109 102
                             <a href="/tags/command-lin">command lin</a>
110 103
                         
111
-                            <a href="/tags/quick-tip">quick tip</a>
104
+                            <a href="/tags/reference">reference</a>
112 105
                         
113 106
                     
114 107
                     
@@ -119,9 +112,8 @@ If you would rather like to use another name for the command that opens Sublime
119 112
 
120 113
 <p>Here&rsquo;s how you can open Sublime Text from the command line:</p>
121 114
 
122
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>ln -s /Applications/Sublime<span style="color: #ae81ff">\ </span>Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
123
-</pre></div>
124
-
115
+<pre><code class="language-shell">ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
116
+</code></pre>
125 117
 
126 118
 <p>(if you&rsquo;re using Sublime Text 2, just replace the path in the first argument)</p>
127 119
 
@@ -129,19 +121,17 @@ If you would rather like to use another name for the command that opens Sublime
129 121
 
130 122
 <p>For this to work you must have <code>/usr/local/bin</code> in your $PATH environment variable. To check if it&rsquo;s already there, type this into your command line:</p>
131 123
 
132
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #f8f8f2">echo</span> <span style="color: #f8f8f2">$PATH</span> <span style="color: #f8f8f2">|</span> grep -q <span style="color: #e6db74">&quot;/usr/local/bin&quot;</span>
133
-</pre></div>
134
-
124
+<pre><code class="language-shell">echo $PATH | grep -q &quot;/usr/local/bin&quot;
125
+</code></pre>
135 126
 
136 127
 <p>If nothing is returned, you must add <code>/usr/local/bin</code> to $PATH. I&rsquo;m not going to cover how you do this, because there are probably hundreds of other sites that does.</p>
137 128
 
138 129
 <p>When everything is set up, you can type any of the following in your terminal:</p>
139 130
 
140
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>subl &lt;filename&gt; <span style="color: #75715e"># Opens a file</span>
141
-subl &lt;foldername&gt; <span style="color: #75715e"># Opens a folder</span>
142
-subl . <span style="color: #75715e"># Opens the current folder</span>
143
-</pre></div>
144
-
131
+<pre><code class="language-shell">subl &lt;filename&gt; # Opens a file
132
+subl &lt;foldername&gt; # Opens a folder
133
+subl . # Opens the current folder
134
+</code></pre>
145 135
 
146 136
                 </section>
147 137
             </article>
@@ -176,6 +166,13 @@ subl . <span style="color: #75715e"># Opens the current folder</span>
176 166
     
177 167
     
178 168
         
169
+        <li>
170
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
171
+        </li>
172
+        
173
+   
174
+    
175
+        
179 176
         <li>
180 177
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
181 178
         </li>
@@ -237,13 +234,6 @@ subl . <span style="color: #75715e"># Opens the current folder</span>
237 234
         </li>
238 235
         
239 236
    
240
-    
241
-        
242
-        <li>
243
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
244
-        </li>
245
-        
246
-   
247 237
 </ul>
248 238
 
249 239
             <footer id="footer">
@@ -272,17 +262,25 @@ subl . <span style="color: #75715e"># Opens the current folder</span>
272 262
     
273 263
     <p class="small">
274 264
     
275
-        © Copyright 2017 Kim Grytøyr
265
+        © Copyright 2018 Kim Grytøyr
276 266
     
277 267
     </p>
278 268
 </footer>
279 269
 
280 270
         </section>
281 271
 
282
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
272
+        <script src="/js/jquery.min.js"></script>
283 273
 <script src="/js/main.js"></script>
284 274
 <script src="/js/highlight.js"></script>
285
-<script>hljs.initHighlightingOnLoad();</script>
275
+<script src="/js/instantclick.min.js" data-no-instant></script>
276
+<script>
277
+    InstantClick.on('change', function() {
278
+        setTimeout(function() {
279
+            hljs.initHighlighting();
280
+        }, 100);
281
+    });
282
+</script>
283
+<script data-no-instant>InstantClick.init();</script>
286 284
 
287 285
 
288 286
 

+ 68
- 72
public/2015/06/14/locationpicker.js/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>locationpicker.js &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="locationpicker.js" />
25 23
 <meta property="og:description" content="locationpicker.js is a simple-to-use jQuery plugin that allows you to select a location on a map and receive the coordinates using a callback function. It also supports searching for a location based on an address.
@@ -35,6 +33,7 @@ Requirements locationpicker.js requires jQuery and the Google Maps API to work."
35 33
 
36 34
 
37 35
 <meta property="article:published_time" content="2015-06-14T16:40:00&#43;00:00"/>
36
+
38 37
 <meta property="article:modified_time" content="2015-06-14T16:40:00&#43;00:00"/>
39 38
 
40 39
 
@@ -59,20 +58,15 @@ Fullscreen
59 58
 Requirements locationpicker.js requires jQuery and the Google Maps API to work.">
60 59
 
61 60
 
61
+<meta itemprop="datePublished" content="2015-06-14T16:40:00&#43;00:00" />
62 62
 <meta itemprop="dateModified" content="2015-06-14T16:40:00&#43;00:00" />
63 63
 <meta itemprop="wordCount" content="728">
64 64
 
65 65
 
66 66
 
67
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
68
-
69
-	    
70
-
71
-  <meta name="twitter:card" content="summary"/>
72
-
73
-
67
+<meta itemprop="keywords" content="javascript,geodecoding," />
74 68
 
75
-<meta name="twitter:text:title" content="locationpicker.js"/>
69
+	    <meta name="twitter:card" content="summary"/>
76 70
 <meta name="twitter:title" content="locationpicker.js"/>
77 71
 <meta name="twitter:description" content="locationpicker.js is a simple-to-use jQuery plugin that allows you to select a location on a map and receive the coordinates using a callback function. It also supports searching for a location based on an address.
78 72
 Repository To download the latest version of locationpicker.js, visit the repository:
@@ -97,10 +91,9 @@ Requirements locationpicker.js requires jQuery and the Google Maps API to work."
97 91
 	
98 92
 
99 93
 	
100
-	<a class="cta" href="/index.xml">Subscribe</a>
101
-	
102 94
 </nav>
103 95
 
96
+
104 97
         <section id="wrapper">
105 98
             <article class="post">
106 99
                 <header>
@@ -146,61 +139,57 @@ Requirements locationpicker.js requires jQuery and the Google Maps API to work."
146 139
 
147 140
 <p>These are the scripts you need to include in your HTML file:</p>
148 141
 
149
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #f8f8f2">&lt;</span><span style="color: #f92672">script</span> <span style="color: #a6e22e">src</span><span style="color: #f92672">=</span><span style="color: #e6db74">&quot;//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js&quot;</span><span style="color: #f8f8f2">&gt;&lt;/</span><span style="color: #f92672">script</span><span style="color: #f8f8f2">&gt;</span>
150
-<span style="color: #f8f8f2">&lt;</span><span style="color: #f92672">script</span> <span style="color: #a6e22e">src</span><span style="color: #f92672">=</span><span style="color: #e6db74">&quot;//maps.google.com/maps/api/js?sensor=false&amp;libraries=places&quot;</span><span style="color: #f8f8f2">&gt;&lt;/</span><span style="color: #f92672">script</span><span style="color: #f8f8f2">&gt;</span>
151
-<span style="color: #f8f8f2">&lt;</span><span style="color: #f92672">script</span> <span style="color: #a6e22e">src</span><span style="color: #f92672">=</span><span style="color: #e6db74">&quot;js/locationpicker.js&quot;</span><span style="color: #f8f8f2">&gt;&lt;/</span><span style="color: #f92672">script</span><span style="color: #f8f8f2">&gt;</span>
152
-</pre></div>
153
-
142
+<pre><code class="language-html">&lt;script src=&quot;//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js&quot;&gt;&lt;/script&gt;
143
+&lt;script src=&quot;//maps.google.com/maps/api/js?sensor=false&amp;libraries=places&quot;&gt;&lt;/script&gt;
144
+&lt;script src=&quot;js/locationpicker.js&quot;&gt;&lt;/script&gt;
145
+</code></pre>
154 146
 
155 147
 <p>In addition, you&rsquo;ll need to insert a container that will hold the actual map from Google Maps:</p>
156 148
 
157
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #f8f8f2">&lt;</span><span style="color: #f92672">div</span> <span style="color: #a6e22e">id</span><span style="color: #f92672">=</span><span style="color: #e6db74">&quot;myMap&quot;</span><span style="color: #f8f8f2">&gt;&lt;/</span><span style="color: #f92672">div</span><span style="color: #f8f8f2">&gt;</span>
158
-</pre></div>
159
-
149
+<pre><code class="language-html">&lt;div id=&quot;myMap&quot;&gt;&lt;/div&gt;
150
+</code></pre>
160 151
 
161 152
 <p>The map container can be styled using CSS.</p>
162 153
 
163 154
 <p>The last thing you need to do is to load the locationpicker.js plugin:</p>
164 155
 
165
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #f8f8f2">&lt;</span><span style="color: #f92672">script</span><span style="color: #f8f8f2">&gt;</span>
166
-    <span style="color: #a6e22e">$</span><span style="color: #f8f8f2">(</span><span style="color: #e6db74">&#39;#myMap&#39;</span><span style="color: #f8f8f2">).</span><span style="color: #a6e22e">locationpicker</span><span style="color: #f8f8f2">({</span> <span style="color: #a6e22e">options</span> <span style="color: #f8f8f2">});</span>
167
-<span style="color: #f8f8f2">&lt;/</span><span style="color: #f92672">script</span><span style="color: #f8f8f2">&gt;</span>
168
-</pre></div>
169
-
156
+<pre><code class="language-html">&lt;script&gt;
157
+    $('#myMap').locationpicker({ options });
158
+&lt;/script&gt;
159
+</code></pre>
170 160
 
171 161
 <h2 id="options">Options</h2>
172 162
 
173 163
 <p>You can configure locationpicker.js with a few options. Here are the defaults:</p>
174 164
 
175
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #a6e22e">location</span><span style="color: #f92672">:</span> <span style="color: #f8f8f2">{</span>
176
-    <span style="color: #a6e22e">latitude</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">69.675366</span><span style="color: #f8f8f2">,</span>
177
-    <span style="color: #a6e22e">longitude</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">18.975428</span>
178
-<span style="color: #f8f8f2">},</span>
179
-<span style="color: #a6e22e">minRadius</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">15</span><span style="color: #f8f8f2">,</span>
180
-<span style="color: #a6e22e">maxRadius</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">300</span><span style="color: #f8f8f2">,</span>
181
-<span style="color: #a6e22e">radius</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">150</span><span style="color: #f8f8f2">,</span>
182
-<span style="color: #a6e22e">zoom</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">15</span><span style="color: #f8f8f2">,</span>
183
-<span style="color: #a6e22e">zoomLevelAfterAddressResult</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">15</span><span style="color: #f8f8f2">,</span>
184
-<span style="color: #a6e22e">markerTitle</span><span style="color: #f92672">:</span> <span style="color: #e6db74">&quot;Dra markøren til uteposten&quot;</span><span style="color: #f8f8f2">,</span>
185
-<span style="color: #a6e22e">draggable</span><span style="color: #f92672">:</span> <span style="color: #66d9ef">true</span><span style="color: #f8f8f2">,</span>
186
-<span style="color: #a6e22e">clickable</span><span style="color: #f92672">:</span> <span style="color: #66d9ef">true</span><span style="color: #f8f8f2">,</span>
187
-<span style="color: #a6e22e">mapType</span><span style="color: #f92672">:</span> <span style="color: #a6e22e">google</span><span style="color: #f8f8f2">.</span><span style="color: #a6e22e">maps</span><span style="color: #f8f8f2">.</span><span style="color: #a6e22e">MapTypeId</span><span style="color: #f8f8f2">.</span><span style="color: #a6e22e">NORMAL</span><span style="color: #f8f8f2">,</span>
188
-<span style="color: #a6e22e">mapTypeControl</span><span style="color: #f92672">:</span> <span style="color: #66d9ef">true</span><span style="color: #f8f8f2">,</span>
189
-<span style="color: #a6e22e">zoomControl</span><span style="color: #f92672">:</span> <span style="color: #66d9ef">true</span><span style="color: #f8f8f2">,</span>
190
-<span style="color: #a6e22e">panControl</span><span style="color: #f92672">:</span> <span style="color: #66d9ef">true</span><span style="color: #f8f8f2">,</span>
191
-<span style="color: #a6e22e">streetViewControl</span><span style="color: #f92672">:</span> <span style="color: #66d9ef">false</span><span style="color: #f8f8f2">,</span>
192
-<span style="color: #a6e22e">circleOptions</span><span style="color: #f92672">:</span> <span style="color: #f8f8f2">{</span>
193
-    <span style="color: #a6e22e">strokeColor</span><span style="color: #f92672">:</span> <span style="color: #e6db74">&quot;#0000FF&quot;</span><span style="color: #f8f8f2">,</span>
194
-    <span style="color: #a6e22e">strokeOpacity</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">0.45</span><span style="color: #f8f8f2">,</span>
195
-    <span style="color: #a6e22e">strokeWeight</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">2</span><span style="color: #f8f8f2">,</span>
196
-    <span style="color: #a6e22e">fillColor</span><span style="color: #f92672">:</span> <span style="color: #e6db74">&quot;#0000FF&quot;</span><span style="color: #f8f8f2">,</span>
197
-    <span style="color: #a6e22e">fillOpacity</span><span style="color: #f92672">:</span> <span style="color: #ae81ff">0.10</span><span style="color: #f8f8f2">,</span>
198
-    <span style="color: #a6e22e">editable</span><span style="color: #f92672">:</span> <span style="color: #66d9ef">true</span>
199
-<span style="color: #f8f8f2">},</span>
200
-<span style="color: #a6e22e">afterLoad</span><span style="color: #f92672">:</span> <span style="color: #66d9ef">function</span><span style="color: #f8f8f2">(</span><span style="color: #a6e22e">currentLocation</span><span style="color: #f8f8f2">,</span> <span style="color: #a6e22e">radius</span><span style="color: #f8f8f2">)</span> <span style="color: #f8f8f2">{},</span>
201
-<span style="color: #a6e22e">afterChange</span><span style="color: #f92672">:</span> <span style="color: #66d9ef">function</span><span style="color: #f8f8f2">(</span><span style="color: #a6e22e">currentLocation</span><span style="color: #f8f8f2">,</span> <span style="color: #a6e22e">radius</span><span style="color: #f8f8f2">)</span> <span style="color: #f8f8f2">{},</span>
202
-</pre></div>
203
-
165
+<pre><code class="language-js">location: {
166
+    latitude: 69.675366,
167
+    longitude: 18.975428
168
+},
169
+minRadius: 15,
170
+maxRadius: 300,
171
+radius: 150,
172
+zoom: 15,
173
+zoomLevelAfterAddressResult: 15,
174
+markerTitle: &quot;Dra markøren til uteposten&quot;,
175
+draggable: true,
176
+clickable: true,
177
+mapType: google.maps.MapTypeId.NORMAL,
178
+mapTypeControl: true,
179
+zoomControl: true,
180
+panControl: true,
181
+streetViewControl: false,
182
+circleOptions: {
183
+    strokeColor: &quot;#0000FF&quot;,
184
+    strokeOpacity: 0.45,
185
+    strokeWeight: 2,
186
+    fillColor: &quot;#0000FF&quot;,
187
+    fillOpacity: 0.10,
188
+    editable: true
189
+},
190
+afterLoad: function(currentLocation, radius) {},
191
+afterChange: function(currentLocation, radius) {},
192
+</code></pre>
204 193
 
205 194
 <p><strong>location { latitude, longitude }</strong> (default: 69.675366, 18.975428)
206 195
 The coordinates that will be loaded when the map is first displayed.</p>
@@ -270,13 +259,12 @@ A callback function that is called every time the location or radius changes. <c
270 259
 
271 260
 <p>The plugins also supports searching for a location by providing the address. Here&rsquo;s an example of how to do that:</p>
272 261
 
273
-<p><div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #a6e22e">$</span><span style="color: #f8f8f2">(</span><span style="color: #e6db74">&#39;#myMap&#39;</span><span style="color: #f8f8f2">).</span><span style="color: #a6e22e">locationpicker</span><span style="color: #f8f8f2">(</span><span style="color: #e6db74">&#39;address&#39;</span><span style="color: #f8f8f2">,</span> <span style="color: #e6db74">&#39;Karl Johans gate 1, Oslo, Norway&#39;</span><span style="color: #f8f8f2">,</span> <span style="color: #66d9ef">function</span><span style="color: #f8f8f2">(</span><span style="color: #a6e22e">e</span><span style="color: #f8f8f2">)</span> <span style="color: #f8f8f2">{</span>
274
-    <span style="color: #66d9ef">if</span> <span style="color: #f8f8f2">(</span><span style="color: #a6e22e">e</span><span style="color: #f8f8f2">.</span><span style="color: #a6e22e">noResults</span><span style="color: #f8f8f2">)</span> <span style="color: #f8f8f2">{</span>
275
-        <span style="color: #75715e">// No results found, alert the user.</span>
276
-    <span style="color: #f8f8f2">}</span>
277
-<span style="color: #f8f8f2">});</span>
278
-</pre></div>
279
-</p>
262
+<pre><code class="language-js">$('#myMap').locationpicker('address', 'Karl Johans gate 1, Oslo, Norway', function(e) {
263
+    if (e.noResults) {
264
+        // No results found, alert the user.
265
+    }
266
+});
267
+</code></pre>
280 268
 
281 269
 <p>If Google Maps&rsquo; geocoder is able to find a location, the first location returned from Google will be selected in the map. If not, the object <code>e</code> will have a property called <code>noResults</code> with the value <code>true</code>.</p>
282 270
 
@@ -315,6 +303,13 @@ A callback function that is called every time the location or radius changes. <c
315 303
     
316 304
     
317 305
         
306
+        <li>
307
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
308
+        </li>
309
+        
310
+   
311
+    
312
+        
318 313
         <li>
319 314
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
320 315
         </li>
@@ -376,13 +371,6 @@ A callback function that is called every time the location or radius changes. <c
376 371
         </li>
377 372
         
378 373
    
379
-    
380
-        
381
-        <li>
382
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
383
-        </li>
384
-        
385
-   
386 374
 </ul>
387 375
 
388 376
             <footer id="footer">
@@ -411,17 +399,25 @@ A callback function that is called every time the location or radius changes. <c
411 399
     
412 400
     <p class="small">
413 401
     
414
-        © Copyright 2017 Kim Grytøyr
402
+        © Copyright 2018 Kim Grytøyr
415 403
     
416 404
     </p>
417 405
 </footer>
418 406
 
419 407
         </section>
420 408
 
421
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
409
+        <script src="/js/jquery.min.js"></script>
422 410
 <script src="/js/main.js"></script>
423 411
 <script src="/js/highlight.js"></script>
424
-<script>hljs.initHighlightingOnLoad();</script>
412
+<script src="/js/instantclick.min.js" data-no-instant></script>
413
+<script>
414
+    InstantClick.on('change', function() {
415
+        setTimeout(function() {
416
+            hljs.initHighlighting();
417
+        }, 100);
418
+    });
419
+</script>
420
+<script data-no-instant>InstantClick.init();</script>
425 421
 
426 422
 
427 423
 

+ 41
- 41
public/2015/06/14/using-launchctl-on-mac-osx-10-10/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>Using launchctl on Mac OSX 10.10 to run a script periodically &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="Using launchctl on Mac OSX 10.10 to run a script periodically" />
25 23
 <meta property="og:description" content="Lately I&rsquo;ve been playing around with mutt, a &ldquo;small but powerful text-based email client for Unix operating systems&rdquo; and offlineimap, a software that downloads your mailbox as a local Maildir.
@@ -30,6 +28,7 @@ After I finally got everything set up (easier said than done), I needed a way to
30 28
 
31 29
 
32 30
 <meta property="article:published_time" content="2015-06-14T15:26:36&#43;00:00"/>
31
+
33 32
 <meta property="article:modified_time" content="2015-06-14T15:26:36&#43;00:00"/>
34 33
 
35 34
 
@@ -49,20 +48,15 @@ After I finally got everything set up (easier said than done), I needed a way to
49 48
 After I finally got everything set up (easier said than done), I needed a way to make offlineimap synchronize my mailbox periodically. Apple recommends using launchctl instead of crontab. The following example shows how to run offlineimap in quiet mode every two minutes:">
50 49
 
51 50
 
51
+<meta itemprop="datePublished" content="2015-06-14T15:26:36&#43;00:00" />
52 52
 <meta itemprop="dateModified" content="2015-06-14T15:26:36&#43;00:00" />
53 53
 <meta itemprop="wordCount" content="175">
54 54
 
55 55
 
56 56
 
57
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
58
-
59
-	    
60
-
61
-  <meta name="twitter:card" content="summary"/>
62
-
57
+<meta itemprop="keywords" content="mac,command line," />
63 58
 
64
-
65
-<meta name="twitter:text:title" content="Using launchctl on Mac OSX 10.10 to run a script periodically"/>
59
+	    <meta name="twitter:card" content="summary"/>
66 60
 <meta name="twitter:title" content="Using launchctl on Mac OSX 10.10 to run a script periodically"/>
67 61
 <meta name="twitter:description" content="Lately I&rsquo;ve been playing around with mutt, a &ldquo;small but powerful text-based email client for Unix operating systems&rdquo; and offlineimap, a software that downloads your mailbox as a local Maildir.
68 62
 After I finally got everything set up (easier said than done), I needed a way to make offlineimap synchronize my mailbox periodically. Apple recommends using launchctl instead of crontab. The following example shows how to run offlineimap in quiet mode every two minutes:"/>
@@ -82,10 +76,9 @@ After I finally got everything set up (easier said than done), I needed a way to
82 76
 	
83 77
 
84 78
 	
85
-	<a class="cta" href="/index.xml">Subscribe</a>
86
-	
87 79
 </nav>
88 80
 
81
+
89 82
         <section id="wrapper">
90 83
             <article class="post">
91 84
                 <header>
@@ -114,24 +107,23 @@ as a local Maildir.</p>
114 107
 make offlineimap synchronize my mailbox periodically. Apple recommends using <strong>launchctl</strong>
115 108
 instead of crontab. The following example shows how to run <strong>offlineimap</strong> in quiet mode every two minutes:</p>
116 109
 
117
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #75715e">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</span>
118
-<span style="color: #75715e">&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;</span>
119
-<span style="color: #f92672">&lt;plist</span> <span style="color: #a6e22e">version=</span><span style="color: #e6db74">&quot;1.0&quot;</span><span style="color: #f92672">&gt;</span>
120
-<span style="color: #f92672">&lt;dict&gt;</span>
121
-  <span style="color: #f92672">&lt;key&gt;</span>Label<span style="color: #f92672">&lt;/key&gt;</span>
122
-  <span style="color: #f92672">&lt;string&gt;</span>com.kimgrytoyr.offlineimap.plist<span style="color: #f92672">&lt;/string&gt;</span>
123
-  <span style="color: #f92672">&lt;key&gt;</span>ProgramArguments<span style="color: #f92672">&lt;/key&gt;</span>
124
-  <span style="color: #f92672">&lt;array&gt;</span>
125
-    <span style="color: #f92672">&lt;string&gt;</span>/usr/local/bin/offlineimap<span style="color: #f92672">&lt;/string&gt;</span>
126
-    <span style="color: #f92672">&lt;string&gt;</span>-u<span style="color: #f92672">&lt;/string&gt;</span>
127
-    <span style="color: #f92672">&lt;string&gt;</span>quiet<span style="color: #f92672">&lt;/string&gt;</span>
128
-  <span style="color: #f92672">&lt;/array&gt;</span>
129
-  <span style="color: #f92672">&lt;key&gt;</span>StartInterval<span style="color: #f92672">&lt;/key&gt;</span>
130
-  <span style="color: #f92672">&lt;integer&gt;</span>120<span style="color: #f92672">&lt;/integer&gt;</span>
131
-<span style="color: #f92672">&lt;/dict&gt;</span>
132
-<span style="color: #f92672">&lt;/plist&gt;</span>
133
-</pre></div>
134
-
110
+<pre><code class="language-xml">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
111
+&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
112
+&lt;plist version=&quot;1.0&quot;&gt;
113
+&lt;dict&gt;
114
+  &lt;key&gt;Label&lt;/key&gt;
115
+  &lt;string&gt;com.kimgrytoyr.offlineimap.plist&lt;/string&gt;
116
+  &lt;key&gt;ProgramArguments&lt;/key&gt;
117
+  &lt;array&gt;
118
+    &lt;string&gt;/usr/local/bin/offlineimap&lt;/string&gt;
119
+    &lt;string&gt;-u&lt;/string&gt;
120
+    &lt;string&gt;quiet&lt;/string&gt;
121
+  &lt;/array&gt;
122
+  &lt;key&gt;StartInterval&lt;/key&gt;
123
+  &lt;integer&gt;120&lt;/integer&gt;
124
+&lt;/dict&gt;
125
+&lt;/plist&gt;
126
+</code></pre>
135 127
 
136 128
 <p>This file is basically an XML file, but the extension you must use is <code>.plist</code>. You would typically call it something like <em>com.yourname.scriptname.plist</em>. Place it in the folder <code>~/Library/LaunchAgents/</code>, and make sure you replace <em>yourname</em> and <em>scriptname</em> with something relevant.</p>
137 129
 
@@ -176,6 +168,13 @@ instead of crontab. The following example shows how to run <strong>offlineimap</
176 168
     
177 169
     
178 170
         
171
+        <li>
172
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
173
+        </li>
174
+        
175
+   
176
+    
177
+        
179 178
         <li>
180 179
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
181 180
         </li>
@@ -237,13 +236,6 @@ instead of crontab. The following example shows how to run <strong>offlineimap</
237 236
         </li>
238 237
         
239 238
    
240
-    
241
-        
242
-        <li>
243
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
244
-        </li>
245
-        
246
-   
247 239
 </ul>
248 240
 
249 241
             <footer id="footer">
@@ -272,17 +264,25 @@ instead of crontab. The following example shows how to run <strong>offlineimap</
272 264
     
273 265
     <p class="small">
274 266
     
275
-        © Copyright 2017 Kim Grytøyr
267
+        © Copyright 2018 Kim Grytøyr
276 268
     
277 269
     </p>
278 270
 </footer>
279 271
 
280 272
         </section>
281 273
 
282
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
274
+        <script src="/js/jquery.min.js"></script>
283 275
 <script src="/js/main.js"></script>
284 276
 <script src="/js/highlight.js"></script>
285
-<script>hljs.initHighlightingOnLoad();</script>
277
+<script src="/js/instantclick.min.js" data-no-instant></script>
278
+<script>
279
+    InstantClick.on('change', function() {
280
+        setTimeout(function() {
281
+            hljs.initHighlighting();
282
+        }, 100);
283
+    });
284
+</script>
285
+<script data-no-instant>InstantClick.init();</script>
286 286
 
287 287
 
288 288
 

+ 34
- 36
public/2015/06/21/mutt-tips-and-tricks/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>mutt tips &amp; tricks &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="mutt tips &amp; tricks" />
25 23
 <meta property="og:description" content="I&rsquo;ve been using mutt with offlineimap and msmtp (dead link, coming soon.) for a while now, and I want to use this post to collect some features and tips that I&rsquo;ve found myself often searching for.
@@ -30,6 +28,7 @@
30 28
 
31 29
 
32 30
 <meta property="article:published_time" content="2015-06-21T00:10:00&#43;00:00"/>
31
+
33 32
 <meta property="article:modified_time" content="2015-06-21T00:10:00&#43;00:00"/>
34 33
 
35 34
 
@@ -49,20 +48,15 @@
49 48
  Finding messages in the current folder  Common flags  Tagging messages and doing bulk actions  Untagging messages  Changing the filename of the PGP signature attachment &ldquo;From&rdquo;-specific signatures   Finding messages in the current folder The default keybinding for searching the current folder is l.">
50 49
 
51 50
 
51
+<meta itemprop="datePublished" content="2015-06-21T00:10:00&#43;00:00" />
52 52
 <meta itemprop="dateModified" content="2015-06-21T00:10:00&#43;00:00" />
53 53
 <meta itemprop="wordCount" content="566">
54 54
 
55 55
 
56 56
 
57
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
58
-
59
-	    
60
-
61
-  <meta name="twitter:card" content="summary"/>
62
-
63
-
57
+<meta itemprop="keywords" content="mutt,email,tips," />
64 58
 
65
-<meta name="twitter:text:title" content="mutt tips &amp; tricks"/>
59
+	    <meta name="twitter:card" content="summary"/>
66 60
 <meta name="twitter:title" content="mutt tips &amp; tricks"/>
67 61
 <meta name="twitter:description" content="I&rsquo;ve been using mutt with offlineimap and msmtp (dead link, coming soon.) for a while now, and I want to use this post to collect some features and tips that I&rsquo;ve found myself often searching for.
68 62
  Finding messages in the current folder  Common flags  Tagging messages and doing bulk actions  Untagging messages  Changing the filename of the PGP signature attachment &ldquo;From&rdquo;-specific signatures   Finding messages in the current folder The default keybinding for searching the current folder is l."/>
@@ -82,10 +76,9 @@
82 76
 	
83 77
 
84 78
 	
85
-	<a class="cta" href="/index.xml">Subscribe</a>
86
-	
87 79
 </nav>
88 80
 
81
+
89 82
         <section id="wrapper">
90 83
             <article class="post">
91 84
                 <header>
@@ -167,13 +160,12 @@ to apply the next operation to all tagged messages. The default keybinding for
167 160
 
168 161
 <p>Here&rsquo;s an example of how to tag all unread messages and mark them as read:</p>
169 162
 
170
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>T <span style="color: #75715e"># Invokes the tag-pattern function</span>
171
-~N <span style="color: #75715e"># Tags all unread messages</span>
172
-<span style="color: #f8f8f2">;</span> <span style="color: #75715e"># tag-prefix operator, next operation will be applied to all tagged messages</span>
173
-W <span style="color: #75715e"># Clear flag</span>
174
-N <span style="color: #75715e"># Clear the N (unread) flag</span>
175
-</pre></div>
176
-
163
+<pre><code class="language-bash">T # Invokes the tag-pattern function
164
+~N # Tags all unread messages
165
+; # tag-prefix operator, next operation will be applied to all tagged messages
166
+W # Clear flag
167
+N # Clear the N (unread) flag
168
+</code></pre>
177 169
 
178 170
 <h1 id="a-name-untagging-a-untagging-messages"><a name="untagging"></a>Untagging messages</h1>
179 171
 
@@ -191,17 +183,15 @@ OS X with this patch in the post <a href="/posts/email/2015/06/20/my-mutt-setup.
191 183
 signature attachment&rsquo;s filename. All you have to do is add the following line to
192 184
 your <code>.muttrc</code>:</p>
193 185
 
194
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #f8f8f2">set</span> <span style="color: #f8f8f2">pgp_mime_signature_filename</span> <span style="color: #f92672">=</span> <span style="color: #e6db74">&#39;signature.asc&#39;</span>
195
-</pre></div>
196
-
186
+<pre><code class="language-bash">set pgp_mime_signature_filename = 'signature.asc'
187
+</code></pre>
197 188
 
198 189
 <h2 id="a-name-from-specific-signatures-a-from-specific-signatures"><a name="from-specific-signatures"></a>&ldquo;From&rdquo;-specific signatures</h2>
199 190
 
200 191
 <p>I have different email addresses based on what &ldquo;role&rdquo; I have. One (with several aliases) is for personal stuff, one is for work related stuff and one is for my freelance company. I&rsquo;d like <a href="http://www.mutt.org/">mutt</a> to change my signature based on which address I send the email from. This is also fairly easy to accomplish. Just add the following line to <code>.muttrc</code> for each account you would like a specific signature for:</p>
201 192
 
202
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>send-hook <span style="color: #e6db74">&quot;~f from@address1.com&quot;</span> <span style="color: #e6db74">&#39;set signature=~/.mutt/signature_for_address1&#39;</span>
203
-</pre></div>
204
-
193
+<pre><code class="language-bash">send-hook &quot;~f from@address1.com&quot; 'set signature=~/.mutt/signature_for_address1'
194
+</code></pre>
205 195
 
206 196
 <p>This will tell <a href="http://www.mutt.org/">mutt</a> that <em>&ldquo;whenever I send a message from
207 197
 <code>from@address1.com</code>, use the signature in the file
@@ -242,6 +232,13 @@ your <code>.muttrc</code>:</p>
242 232
     
243 233
     
244 234
         
235
+        <li>
236
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
237
+        </li>
238
+        
239
+   
240
+    
241
+        
245 242
         <li>
246 243
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
247 244
         </li>
@@ -303,13 +300,6 @@ your <code>.muttrc</code>:</p>
303 300
         </li>
304 301
         
305 302
    
306
-    
307
-        
308
-        <li>
309
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
310
-        </li>
311
-        
312
-   
313 303
 </ul>
314 304
 
315 305
             <footer id="footer">
@@ -338,17 +328,25 @@ your <code>.muttrc</code>:</p>
338 328
     
339 329
     <p class="small">
340 330
     
341
-        © Copyright 2017 Kim Grytøyr
331
+        © Copyright 2018 Kim Grytøyr
342 332
     
343 333
     </p>
344 334
 </footer>
345 335
 
346 336
         </section>
347 337
 
348
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
338
+        <script src="/js/jquery.min.js"></script>
349 339
 <script src="/js/main.js"></script>
350 340
 <script src="/js/highlight.js"></script>
351
-<script>hljs.initHighlightingOnLoad();</script>
341
+<script src="/js/instantclick.min.js" data-no-instant></script>
342
+<script>
343
+    InstantClick.on('change', function() {
344
+        setTimeout(function() {
345
+            hljs.initHighlighting();
346
+        }, 100);
347
+    });
348
+</script>
349
+<script data-no-instant>InstantClick.init();</script>
352 350
 
353 351
 
354 352
 

+ 43
- 46
public/2015/08/09/basic-usage-of-git-svn/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>Basic usage of git-svn &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="Basic usage of git-svn" />
25 23
 <meta property="og:description" content="This is a small guide I wrote for my own convenience when I recently was converting an SVN repository to a Git repository. I&rsquo;ve published it here so that I can easily look up the things I need to remember..
@@ -31,6 +29,7 @@ Cloning the SVN repository git svn clone &lt;repo-url&gt;  Adding another remote
31 29
 
32 30
 
33 31
 <meta property="article:published_time" content="2015-08-09T15:13:36&#43;00:00"/>
32
+
34 33
 <meta property="article:modified_time" content="2015-08-09T15:13:36&#43;00:00"/>
35 34
 
36 35
 
@@ -51,20 +50,15 @@ I&rsquo;ve found most of these examples in the excellent official git-svn docume
51 50
 Cloning the SVN repository git svn clone &lt;repo-url&gt;  Adding another remote git remote add &lt;remote-name&gt; &lt;remote-url&gt;  Fetching and rebasing changes from SVN git svn fetch &amp;&amp; git svn rebase  Note that the git-svn documentation has a section discussing rebase vs pull/merge:">
52 51
 
53 52
 
53
+<meta itemprop="datePublished" content="2015-08-09T15:13:36&#43;00:00" />
54 54
 <meta itemprop="dateModified" content="2015-08-09T15:13:36&#43;00:00" />
55 55
 <meta itemprop="wordCount" content="213">
56 56
 
57 57
 
58 58
 
59
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
60
-
61
-	    
62
-
63
-  <meta name="twitter:card" content="summary"/>
64
-
65
-
59
+<meta itemprop="keywords" content="git,svn,git-svn," />
66 60
 
67
-<meta name="twitter:text:title" content="Basic usage of git-svn"/>
61
+	    <meta name="twitter:card" content="summary"/>
68 62
 <meta name="twitter:title" content="Basic usage of git-svn"/>
69 63
 <meta name="twitter:description" content="This is a small guide I wrote for my own convenience when I recently was converting an SVN repository to a Git repository. I&rsquo;ve published it here so that I can easily look up the things I need to remember..
70 64
 I&rsquo;ve found most of these examples in the excellent official git-svn documentation.
@@ -85,10 +79,9 @@ Cloning the SVN repository git svn clone &lt;repo-url&gt;  Adding another remote
85 79
 	
86 80
 
87 81
 	
88
-	<a class="cta" href="/index.xml">Subscribe</a>
89
-	
90 82
 </nav>
91 83
 
84
+
92 85
         <section id="wrapper">
93 86
             <article class="post">
94 87
                 <header>
@@ -118,22 +111,20 @@ Cloning the SVN repository git svn clone &lt;repo-url&gt;  Adding another remote
118 111
 
119 112
 <h2 id="cloning-the-svn-repository">Cloning the SVN repository</h2>
120 113
 
121
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>git svn clone &lt;repo-url&gt;
122
-</pre></div>
123
-
114
+<pre><code class="language-shell">git svn clone &lt;repo-url&gt;
115
+</code></pre>
124 116
 
125 117
 <h2 id="adding-another-remote">Adding another remote</h2>
126 118
 
127
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>git remote add &lt;remote-name&gt; &lt;remote-url&gt;
128
-</pre></div>
129
-
119
+<pre><code class="language-shell">git remote add &lt;remote-name&gt; &lt;remote-url&gt;
120
+</code></pre>
130 121
 
131 122
 <h2 id="fetching-and-rebasing-changes-from-svn">Fetching and rebasing changes from SVN</h2>
132 123
 
133
-<p><div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>git svn fetch <span style="color: #f92672">&amp;&amp;</span> git svn rebase
134
-</pre></div>
124
+<pre><code class="language-shell">git svn fetch &amp;&amp; git svn rebase
125
+</code></pre>
135 126
 
136
-Note that the git-svn documentation has a section discussing rebase vs pull/merge:</p>
127
+<p>Note that the git-svn documentation has a section discussing rebase vs pull/merge:</p>
137 128
 
138 129
 <blockquote>
139 130
 <p>Prefer to use git svn rebase or git rebase, rather than git pull or git merge to synchronize unintegrated commits with a git svn branch. Doing so will keep the history of unintegrated commits linear with respect to the upstream SVN repository and allow the use of the preferred git svn dcommit subcommand to push unintegrated commits back into SVN.</p>
@@ -141,29 +132,27 @@ Note that the git-svn documentation has a section discussing rebase vs pull/merg
141 132
 
142 133
 <h2 id="doing-work-and-pushing-to-svn">Doing work and pushing to SVN</h2>
143 134
 
144
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>git add &lt;file&gt;
145
-git commit -m <span style="color: #e6db74">&quot;&lt;commit message&gt;&quot;</span>
146
-git svn dcommit <span style="color: #75715e"># This will push your changes to the SVN repository</span>
147
-</pre></div>
148
-
135
+<pre><code class="language-shell">git add &lt;file&gt;
136
+git commit -m &quot;&lt;commit message&gt;&quot;
137
+git svn dcommit # This will push your changes to the SVN repository
138
+</code></pre>
149 139
 
150 140
 <h2 id="pushing-to-other-remotes">Pushing to other remotes</h2>
151 141
 
152
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>git push &lt;remote-name&gt;
153
-</pre></div>
154
-
142
+<pre><code class="language-shell">git push &lt;remote-name&gt;
143
+</code></pre>
155 144
 
156 145
 <h2 id="see-what-will-be-pushed-to-svn">See what will be pushed to SVN</h2>
157 146
 
158
-<p><div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>git diff git-svn HEAD <span style="color: #75715e"># Assuming your remote SVN branch is called git-svn</span>
159
-</pre></div>
147
+<pre><code class="language-shell">git diff git-svn HEAD # Assuming your remote SVN branch is called git-svn
148
+</code></pre>
160 149
 
161
-<a href="http://stackoverflow.com/a/9776318/1094451">http://stackoverflow.com/a/9776318/1094451</a></p>
150
+<p><a href="http://stackoverflow.com/a/9776318/1094451">http://stackoverflow.com/a/9776318/1094451</a></p>
162 151
 
163
-<p><div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>git svn dcommit --dry-run
164
-</pre></div>
152
+<pre><code class="language-shell">git svn dcommit --dry-run
153
+</code></pre>
165 154
 
166
-<a href="http://stackoverflow.com/a/6040113/1094451">http://stackoverflow.com/a/6040113/1094451</a></p>
155
+<p><a href="http://stackoverflow.com/a/6040113/1094451">http://stackoverflow.com/a/6040113/1094451</a></p>
167 156
 
168 157
                 </section>
169 158
             </article>
@@ -198,6 +187,13 @@ git svn dcommit <span style="color: #75715e"># This will push your changes to th
198 187
     
199 188
     
200 189
         
190
+        <li>
191
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
192
+        </li>
193
+        
194
+   
195
+    
196
+        
201 197
         <li>
202 198
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
203 199
         </li>
@@ -259,13 +255,6 @@ git svn dcommit <span style="color: #75715e"># This will push your changes to th
259 255
         </li>
260 256
         
261 257
    
262
-    
263
-        
264
-        <li>
265
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
266
-        </li>
267
-        
268
-   
269 258
 </ul>
270 259
 
271 260
             <footer id="footer">
@@ -294,17 +283,25 @@ git svn dcommit <span style="color: #75715e"># This will push your changes to th
294 283
     
295 284
     <p class="small">
296 285
     
297
-        © Copyright 2017 Kim Grytøyr
286
+        © Copyright 2018 Kim Grytøyr
298 287
     
299 288
     </p>
300 289
 </footer>
301 290
 
302 291
         </section>
303 292
 
304
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
293
+        <script src="/js/jquery.min.js"></script>
305 294
 <script src="/js/main.js"></script>
306 295
 <script src="/js/highlight.js"></script>
307
-<script>hljs.initHighlightingOnLoad();</script>
296
+<script src="/js/instantclick.min.js" data-no-instant></script>
297
+<script>
298
+    InstantClick.on('change', function() {
299
+        setTimeout(function() {
300
+            hljs.initHighlighting();
301
+        }, 100);
302
+    });
303
+</script>
304
+<script data-no-instant>InstantClick.init();</script>
308 305
 
309 306
 
310 307
 

+ 30
- 29
public/2015/08/09/deleteing-rows-with-a-left-join-in-mysql/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>Deleting rows with a LEFT JOIN in MySQL &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="Deleting rows with a LEFT JOIN in MySQL" />
25 23
 <meta property="og:description" content="This is something I don&rsquo;t do that often, and I always forget the correct syntax. Thus this post.
@@ -32,6 +30,7 @@ SELECT i.* FROM images i LEFT JOIN users u ON i." />
32 30
 
33 31
 
34 32
 <meta property="article:published_time" content="2015-08-09T11:28:36&#43;00:00"/>
33
+
35 34
 <meta property="article:modified_time" content="2015-08-09T11:28:36&#43;00:00"/>
36 35
 
37 36
 
@@ -53,20 +52,15 @@ First, I usually do a visual inspection of the rows that will be deleted:
53 52
 SELECT i.* FROM images i LEFT JOIN users u ON i.">
54 53
 
55 54
 
55
+<meta itemprop="datePublished" content="2015-08-09T11:28:36&#43;00:00" />
56 56
 <meta itemprop="dateModified" content="2015-08-09T11:28:36&#43;00:00" />
57 57
 <meta itemprop="wordCount" content="146">
58 58
 
59 59
 
60 60
 
61
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
62
-
63
-	    
64
-
65
-  <meta name="twitter:card" content="summary"/>
66
-
67
-
61
+<meta itemprop="keywords" content="mysql,sql,database,reference," />
68 62
 
69
-<meta name="twitter:text:title" content="Deleting rows with a LEFT JOIN in MySQL"/>
63
+	    <meta name="twitter:card" content="summary"/>
70 64
 <meta name="twitter:title" content="Deleting rows with a LEFT JOIN in MySQL"/>
71 65
 <meta name="twitter:description" content="This is something I don&rsquo;t do that often, and I always forget the correct syntax. Thus this post.
72 66
 Let&rsquo;s say you have a table images and a table users. Now you want to delete all rows in table images that are associated with rows in the table users that are marked as deleted.
@@ -88,10 +82,9 @@ SELECT i.* FROM images i LEFT JOIN users u ON i."/>
88 82
 	
89 83
 
90 84
 	
91
-	<a class="cta" href="/index.xml">Subscribe</a>
92
-	
93 85
 </nav>
94 86
 
87
+
95 88
         <section id="wrapper">
96 89
             <article class="post">
97 90
                 <header>
@@ -108,6 +101,8 @@ SELECT i.* FROM images i LEFT JOIN users u ON i."/>
108 101
                         
109 102
                             <a href="/tags/database">database</a>
110 103
                         
104
+                            <a href="/tags/reference">reference</a>
105
+                        
111 106
                     
112 107
                     
113 108
                     </h2>
@@ -119,15 +114,13 @@ SELECT i.* FROM images i LEFT JOIN users u ON i."/>
119 114
 
120 115
 <p>First, I usually do a visual inspection of the rows that will be deleted:</p>
121 116
 
122
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #66d9ef">SELECT</span> <span style="color: #f8f8f2">i.</span><span style="color: #f92672">*</span> <span style="color: #66d9ef">FROM</span> <span style="color: #f8f8f2">images</span> <span style="color: #f8f8f2">i</span> <span style="color: #66d9ef">LEFT</span> <span style="color: #66d9ef">JOIN</span> <span style="color: #f8f8f2">users</span> <span style="color: #f8f8f2">u</span> <span style="color: #66d9ef">ON</span> <span style="color: #f8f8f2">i.user_id</span> <span style="color: #f92672">=</span> <span style="color: #f8f8f2">u.id</span> <span style="color: #66d9ef">WHERE</span> <span style="color: #f8f8f2">u.deleted</span> <span style="color: #f92672">=</span> <span style="color: #ae81ff">1</span><span style="color: #f8f8f2">;</span>
123
-</pre></div>
124
-
117
+<pre><code class="language-sql">SELECT i.* FROM images i LEFT JOIN users u ON i.user_id = u.id WHERE u.deleted = 1;
118
+</code></pre>
125 119
 
126 120
 <p>The rows returned by this query are the rows that will be deleted when you run the following query:</p>
127 121
 
128
-<p><div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span><span style="color: #66d9ef">DELETE</span> <span style="color: #f8f8f2">i</span> <span style="color: #66d9ef">FROM</span> <span style="color: #f8f8f2">images</span> <span style="color: #f8f8f2">i</span> <span style="color: #66d9ef">LEFT</span> <span style="color: #66d9ef">JOIN</span> <span style="color: #f8f8f2">users</span> <span style="color: #f8f8f2">u</span> <span style="color: #66d9ef">ON</span> <span style="color: #f8f8f2">i.user_id</span> <span style="color: #f92672">=</span> <span style="color: #f8f8f2">u.id</span> <span style="color: #66d9ef">WHERE</span> <span style="color: #f8f8f2">u.deleted</span> <span style="color: #f92672">=</span> <span style="color: #ae81ff">1</span><span style="color: #f8f8f2">;</span>
129
-</pre></div>
130
-</p>
122
+<pre><code class="language-sql">DELETE i FROM images i LEFT JOIN users u ON i.user_id = u.id WHERE u.deleted = 1;
123
+</code></pre>
131 124
 
132 125
 <p>They key part here is to specify which table you want to delete from. In this case it&rsquo;s the table <code>i</code>, which is the <code>images</code> table.</p>
133 126
 
@@ -164,6 +157,13 @@ SELECT i.* FROM images i LEFT JOIN users u ON i."/>
164 157
     
165 158
     
166 159
         
160
+        <li>
161
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
162
+        </li>
163
+        
164
+   
165
+    
166
+        
167 167
         <li>
168 168
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
169 169
         </li>
@@ -225,13 +225,6 @@ SELECT i.* FROM images i LEFT JOIN users u ON i."/>
225 225
         </li>
226 226
         
227 227
    
228
-    
229
-        
230
-        <li>
231
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
232
-        </li>
233
-        
234
-   
235 228
 </ul>
236 229
 
237 230
             <footer id="footer">
@@ -260,17 +253,25 @@ SELECT i.* FROM images i LEFT JOIN users u ON i."/>
260 253
     
261 254
     <p class="small">
262 255
     
263
-        © Copyright 2017 Kim Grytøyr
256
+        © Copyright 2018 Kim Grytøyr
264 257
     
265 258
     </p>
266 259
 </footer>
267 260
 
268 261
         </section>
269 262
 
270
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
263
+        <script src="/js/jquery.min.js"></script>
271 264
 <script src="/js/main.js"></script>
272 265
 <script src="/js/highlight.js"></script>
273
-<script>hljs.initHighlightingOnLoad();</script>
266
+<script src="/js/instantclick.min.js" data-no-instant></script>
267
+<script>
268
+    InstantClick.on('change', function() {
269
+        setTimeout(function() {
270
+            hljs.initHighlighting();
271
+        }, 100);
272
+    });
273
+</script>
274
+<script data-no-instant>InstantClick.init();</script>
274 275
 
275 276
 
276 277
 

+ 26
- 25
public/2015/08/09/useful-git-tips/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>Useful git tips &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="Useful git tips" />
25 23
 <meta property="og:description" content="This is a collection of useful git commands, aliases, tips and tricks that I&rsquo;ve come across or been using. Feel free to contribute to this collection by adding a comment below.
@@ -30,6 +28,7 @@ Aliases for ignoring files To prevent changes in already-commited files from bei
30 28
 
31 29
 
32 30
 <meta property="article:published_time" content="2015-08-09T17:03:00&#43;00:00"/>
31
+
33 32
 <meta property="article:modified_time" content="2015-08-09T17:03:00&#43;00:00"/>
34 33
 
35 34
 
@@ -49,20 +48,15 @@ Aliases for ignoring files To prevent changes in already-commited files from bei
49 48
 Aliases for ignoring files To prevent changes in already-commited files from being commited, you can update your index with the --assume-unchaged flag for the files that you don&rsquo;t want to commit. Here are a couple of useful aliases for dealing with this.">
50 49
 
51 50
 
51
+<meta itemprop="datePublished" content="2015-08-09T17:03:00&#43;00:00" />
52 52
 <meta itemprop="dateModified" content="2015-08-09T17:03:00&#43;00:00" />
53 53
 <meta itemprop="wordCount" content="166">
54 54
 
55 55
 
56 56
 
57
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
58
-
59
-	    
60
-
61
-  <meta name="twitter:card" content="summary"/>
62
-
57
+<meta itemprop="keywords" content="git,tips," />
63 58
 
64
-
65
-<meta name="twitter:text:title" content="Useful git tips"/>
59
+	    <meta name="twitter:card" content="summary"/>
66 60
 <meta name="twitter:title" content="Useful git tips"/>
67 61
 <meta name="twitter:description" content="This is a collection of useful git commands, aliases, tips and tricks that I&rsquo;ve come across or been using. Feel free to contribute to this collection by adding a comment below.
68 62
 Aliases for ignoring files To prevent changes in already-commited files from being commited, you can update your index with the --assume-unchaged flag for the files that you don&rsquo;t want to commit. Here are a couple of useful aliases for dealing with this."/>
@@ -82,10 +76,9 @@ Aliases for ignoring files To prevent changes in already-commited files from bei
82 76
 	
83 77
 
84 78
 	
85
-	<a class="cta" href="/index.xml">Subscribe</a>
86
-	
87 79
 </nav>
88 80
 
81
+
89 82
         <section id="wrapper">
90 83
             <article class="post">
91 84
                 <header>
@@ -113,7 +106,7 @@ Aliases for ignoring files To prevent changes in already-commited files from bei
113 106
 
114 107
 <p>To prevent changes in already-commited files from being commited, you can update your index with the <code>--assume-unchaged</code> flag for the files that you don&rsquo;t want to commit. Here are a couple of useful aliases for dealing with this.</p>
115 108
 
116
-<pre><code class="language-bash">ignore = !git update-index --assume-unchanged
109
+<pre><code class="language-shell">ignore = !git update-index --assume-unchanged
117 110
 unignore = !git update-index --no-assume-unchanged
118 111
 ignored = !git ls-files -v | grep ^[a-z]
119 112
 </code></pre>
@@ -128,7 +121,7 @@ ignored = !git ls-files -v | grep ^[a-z]
128 121
 
129 122
 <p>If you want to only commit certain changes in a file, you can use the following command:</p>
130 123
 
131
-<pre><code class="language-bash">git add -p &lt;files&gt;
124
+<pre><code class="language-shell">git add -p &lt;files&gt;
132 125
 </code></pre>
133 126
 
134 127
                 </section>
@@ -164,6 +157,13 @@ ignored = !git ls-files -v | grep ^[a-z]
164 157
     
165 158
     
166 159
         
160
+        <li>
161
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
162
+        </li>
163
+        
164
+   
165
+    
166
+        
167 167
         <li>
168 168
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
169 169
         </li>
@@ -225,13 +225,6 @@ ignored = !git ls-files -v | grep ^[a-z]
225 225
         </li>
226 226
         
227 227
    
228
-    
229
-        
230
-        <li>
231
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
232
-        </li>
233
-        
234
-   
235 228
 </ul>
236 229
 
237 230
             <footer id="footer">
@@ -260,17 +253,25 @@ ignored = !git ls-files -v | grep ^[a-z]
260 253
     
261 254
     <p class="small">
262 255
     
263
-        © Copyright 2017 Kim Grytøyr
256
+        © Copyright 2018 Kim Grytøyr
264 257
     
265 258
     </p>
266 259
 </footer>
267 260
 
268 261
         </section>
269 262
 
270
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
263
+        <script src="/js/jquery.min.js"></script>
271 264
 <script src="/js/main.js"></script>
272 265
 <script src="/js/highlight.js"></script>
273
-<script>hljs.initHighlightingOnLoad();</script>
266
+<script src="/js/instantclick.min.js" data-no-instant></script>
267
+<script>
268
+    InstantClick.on('change', function() {
269
+        setTimeout(function() {
270
+            hljs.initHighlighting();
271
+        }, 100);
272
+    });
273
+</script>
274
+<script data-no-instant>InstantClick.init();</script>
274 275
 
275 276
 
276 277
 

+ 36
- 39
public/2016/01/21/creating-a-bootable-usb-stick-on-os-x/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>Creating a bootable USB stick on OS X &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="Creating a bootable USB stick on OS X" />
25 23
 <meta property="og:description" content="Here&rsquo;s a simple way to create a bootable USB stick from a downloaded .ISO file on OS X.
@@ -27,13 +25,14 @@ Convert ISO to IMG Open the terminal and type the following command:
27 25
 hdiutil convert -format UDRW -o target.img source.iso  Remember to replace the paths in the previous example.
28 26
 Transfer to USB stick Warning: This will erase all data on your USB stick.
29 27
 First, find the correct device node:
30
- diskutil list  After you have successfully identified your USB stick, unmount the disk (replace N with the disk number):" />
28
+diskutil list  After you have successfully identified your USB stick, unmount the disk (replace N with the disk number):" />
31 29
 <meta property="og:type" content="article" />
32 30
 <meta property="og:url" content="/2016/01/21/creating-a-bootable-usb-stick-on-os-x/" />
33 31
 
34 32
 
35 33
 
36 34
 <meta property="article:published_time" content="2016-01-21T10:40:00&#43;00:00"/>
35
+
37 36
 <meta property="article:modified_time" content="2016-01-21T10:40:00&#43;00:00"/>
38 37
 
39 38
 
@@ -54,30 +53,25 @@ Convert ISO to IMG Open the terminal and type the following command:
54 53
 hdiutil convert -format UDRW -o target.img source.iso  Remember to replace the paths in the previous example.
55 54
 Transfer to USB stick Warning: This will erase all data on your USB stick.
56 55
 First, find the correct device node:
57
- diskutil list  After you have successfully identified your USB stick, unmount the disk (replace N with the disk number):">
56
+diskutil list  After you have successfully identified your USB stick, unmount the disk (replace N with the disk number):">
58 57
 
59 58
 
59
+<meta itemprop="datePublished" content="2016-01-21T10:40:00&#43;00:00" />
60 60
 <meta itemprop="dateModified" content="2016-01-21T10:40:00&#43;00:00" />
61 61
 <meta itemprop="wordCount" content="131">
62 62
 
63 63
 
64 64
 
65
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
66
-
67
-	    
68
-
69
-  <meta name="twitter:card" content="summary"/>
70
-
71
-
65
+<meta itemprop="keywords" content="usb,boot,mac,reference," />
72 66
 
73
-<meta name="twitter:text:title" content="Creating a bootable USB stick on OS X"/>
67
+	    <meta name="twitter:card" content="summary"/>
74 68
 <meta name="twitter:title" content="Creating a bootable USB stick on OS X"/>
75 69
 <meta name="twitter:description" content="Here&rsquo;s a simple way to create a bootable USB stick from a downloaded .ISO file on OS X.
76 70
 Convert ISO to IMG Open the terminal and type the following command:
77 71
 hdiutil convert -format UDRW -o target.img source.iso  Remember to replace the paths in the previous example.
78 72
 Transfer to USB stick Warning: This will erase all data on your USB stick.
79 73
 First, find the correct device node:
80
- diskutil list  After you have successfully identified your USB stick, unmount the disk (replace N with the disk number):"/>
74
+diskutil list  After you have successfully identified your USB stick, unmount the disk (replace N with the disk number):"/>
81 75
 <meta name="twitter:site" content="@https://www.twitter.com/kimgrytoyr"/>
82 76
 
83 77
 	</head>
@@ -94,10 +88,9 @@ First, find the correct device node:
94 88
 	
95 89
 
96 90
 	
97
-	<a class="cta" href="/index.xml">Subscribe</a>
98
-	
99 91
 </nav>
100 92
 
93
+
101 94
         <section id="wrapper">
102 95
             <article class="post">
103 96
                 <header>
@@ -114,7 +107,7 @@ First, find the correct device node:
114 107
                         
115 108
                             <a href="/tags/mac">mac</a>
116 109
                         
117
-                            <a href="/tags/tips">tips</a>
110
+                            <a href="/tags/reference">reference</a>
118 111
                         
119 112
                     
120 113
                     
@@ -129,9 +122,8 @@ First, find the correct device node:
129 122
 
130 123
 <p>Open the terminal and type the following command:</p>
131 124
 
132
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>hdiutil convert -format UDRW -o target.img source.iso
133
-</pre></div>
134
-
125
+<pre><code class="language-bash">hdiutil convert -format UDRW -o target.img source.iso
126
+</code></pre>
135 127
 
136 128
 <p>Remember to replace the paths in the previous example.</p>
137 129
 
@@ -141,21 +133,18 @@ First, find the correct device node:
141 133
 
142 134
 <p>First, find the correct device node:</p>
143 135
 
144
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>    diskutil list
145
-</pre></div>
146
-
136
+<pre><code class="language-shell">diskutil list
137
+</code></pre>
147 138
 
148 139
 <p>After you have successfully identified your USB stick, unmount the disk (replace <em>N</em> with the disk number):</p>
149 140
 
150
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>    diskutil unmountDisk /dev/diskN
151
-</pre></div>
152
-
141
+<pre><code class="language-shell">diskutil unmountDisk /dev/diskN
142
+</code></pre>
153 143
 
154 144
 <p>Finally, transfer the image to the USB stick (again, replace <em>N</em> with the disk number):</p>
155 145
 
156
-<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span></span>	sudo dd <span style="color: #66d9ef">if</span><span style="color: #f92672">=</span>target.img <span style="color: #f8f8f2">of</span><span style="color: #f92672">=</span>/dev/rdiskN <span style="color: #f8f8f2">bs</span><span style="color: #f92672">=</span>1m
157
-</pre></div>
158
-
146
+<pre><code class="language-shell">sudo dd if=target.img of=/dev/rdiskN bs=1m
147
+</code></pre>
159 148
 
160 149
 <p>After a short while, depending on the image size, your USB stick will be ready to use as a bootable media.</p>
161 150
 
@@ -194,6 +183,13 @@ First, find the correct device node:
194 183
     
195 184
     
196 185
         
186
+        <li>
187
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
188
+        </li>
189
+        
190
+   
191
+    
192
+        
197 193
         <li>
198 194
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
199 195
         </li>
@@ -255,13 +251,6 @@ First, find the correct device node:
255 251
         </li>
256 252
         
257 253
    
258
-    
259
-        
260
-        <li>
261
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
262
-        </li>
263
-        
264
-   
265 254
 </ul>
266 255
 
267 256
             <footer id="footer">
@@ -290,17 +279,25 @@ First, find the correct device node:
290 279
     
291 280
     <p class="small">
292 281
     
293
-        © Copyright 2017 Kim Grytøyr
282
+        © Copyright 2018 Kim Grytøyr
294 283
     
295 284
     </p>
296 285
 </footer>
297 286
 
298 287
         </section>
299 288
 
300
-        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
289
+        <script src="/js/jquery.min.js"></script>
301 290
 <script src="/js/main.js"></script>
302 291
 <script src="/js/highlight.js"></script>
303
-<script>hljs.initHighlightingOnLoad();</script>
292
+<script src="/js/instantclick.min.js" data-no-instant></script>
293
+<script>
294
+    InstantClick.on('change', function() {
295
+        setTimeout(function() {
296
+            hljs.initHighlighting();
297
+        }, 100);
298
+    });
299
+</script>
300
+<script data-no-instant>InstantClick.init();</script>
304 301
 
305 302
 
306 303
 

+ 24
- 23
public/2016/01/21/trouble-booting-newer-linux-kernels-on-asus-vivopc-vm42/index.html View File

@@ -6,7 +6,7 @@
6 6
 		<meta name="viewport" content="width=device-width, initial-scale=1">
7 7
 		<meta name="author" content="Kim Grytøyr">
8 8
 		<meta name="description" content="Personal website for Kim Grytøyr.">
9
-		<meta name="generator" content="Hugo 0.20" />
9
+		<meta name="generator" content="Hugo 0.36" />
10 10
 		<title>Trouble booting newer Linux kernels on Asus VivoPC VM42 &middot; Kim Grytøyr</title>
11 11
 		<link rel="shortcut icon" href="/favicon.png">
12 12
 		<link rel="stylesheet" href="/css/style.css">
@@ -18,8 +18,6 @@
18 18
 		
19 19
 
20 20
 		
21
-		<link href="/index.xml" rel="alternate" type="application/rss+xml" title="Kim Grytøyr" />
22
-		
23 21
 
24 22
 		<meta property="og:title" content="Trouble booting newer Linux kernels on Asus VivoPC VM42" />
25 23
 <meta property="og:description" content="I recently bought an Asus VivoPC VM42 because I wanted a small and simple desktop computer to play around with different Linux distros. I was able to install Ubuntu 14.04 without problems, but when booting it for the first time it got stuck with a message from NMI Watchdog saying that CPU#1 had been stuck for 22 seconds.
@@ -30,6 +28,7 @@ I also tried booting Linux Mint and Fedora from a Live USB, but the same thing h
30 28
 
31 29
 
32 30
 <meta property="article:published_time" content="2016-01-21T10:40:00&#43;00:00"/>
31
+
33 32
 <meta property="article:modified_time" content="2016-01-21T10:40:00&#43;00:00"/>
34 33
 
35 34
 
@@ -49,20 +48,15 @@ I also tried booting Linux Mint and Fedora from a Live USB, but the same thing h
49 48
 I also tried booting Linux Mint and Fedora from a Live USB, but the same thing happened.">
50 49
 
51 50
 
51
+<meta itemprop="datePublished" content="2016-01-21T10:40:00&#43;00:00" />
52 52
 <meta itemprop="dateModified" content="2016-01-21T10:40:00&#43;00:00" />
53 53
 <meta itemprop="wordCount" content="221">
54 54
 
55 55
 
56 56
 
57
-<meta itemprop="keywords" content="posts,posts-development,posts-email,posts-linux,projects,3d,3d-book,aws,blender,boot,case-sensitivity,cloudfront,command-lin,command-line,database,disk-image,email,gamedev,geodecoding,git,git-svn,hugo,javascript,jekyll,kernel,linux,ludum-dare,mac,mutt,mysql,quick-tip,s3,sql,static,sublime-text,svn,tips,unity,usb," />
58
-
59
-	    
60
-
61
-  <meta name="twitter:card" content="summary"/>
62
-
57
+<meta itemprop="keywords" content="linux,boot,kernel," />
63 58
 
64
-
65
-<meta name="twitter:text:title" content="Trouble booting newer Linux kernels on Asus VivoPC VM42"/>
59
+	    <meta name="twitter:card" content="summary"/>
66 60
 <meta name="twitter:title" content="Trouble booting newer Linux kernels on Asus VivoPC VM42"/>
67 61
 <meta name="twitter:description" content="I recently bought an Asus VivoPC VM42 because I wanted a small and simple desktop computer to play around with different Linux distros. I was able to install Ubuntu 14.04 without problems, but when booting it for the first time it got stuck with a message from NMI Watchdog saying that CPU#1 had been stuck for 22 seconds.
68 62
 I also tried booting Linux Mint and Fedora from a Live USB, but the same thing happened."/>
@@ -82,10 +76,9 @@ I also tried booting Linux Mint and Fedora from a Live USB, but the same thing h
82 76
 	
83 77
 
84 78
 	
85
-	<a class="cta" href="/index.xml">Subscribe</a>
86
-	
87 79
 </nav>
88 80
 
81
+
89 82
         <section id="wrapper">
90 83
             <article class="post">
91 84
                 <header>
@@ -180,6 +173,13 @@ of the kernel was working, I figured it couldn&rsquo;t be because of those BIOS
180 173
     
181 174
     
182 175
         
176
+        <li>
177
+            <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
178
+        </li>
179
+        
180
+   
181
+    
182
+        
183 183
         <li>
184 184
             <a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
185 185
         </li>
@@ -241,13 +241,6 @@ of the kernel was working, I figured it couldn&rsquo;t be because of those BIOS
241 241
         </li>
242 242
         
243 243
    
244
-    
245
-        
246
-        <li>
247
-            <a href="/2015/08/09/basic-usage-of-git-svn/">Basic usage of git-svn<aside class="dates">Aug 9</aside></a>
248
-        </li>