diff --git a/harp.json b/harp.json index 15f46ac..f94d53d 100644 --- a/harp.json +++ b/harp.json @@ -3,6 +3,6 @@ "site": "samhuri.net", "author": "Sami Samhuri", "email": "sami@samhuri.net", - "url": "http://samhuri.net" + "url": "https://samhuri.net" } } diff --git a/public/_data.json b/public/_data.json index 52ccdce..5408aab 100644 --- a/public/_data.json +++ b/public/_data.json @@ -1,7 +1,7 @@ { "title": "samhuri.net", "subtitle": "words mean things", - "url": "http://samhuri.net", + "url": "https://samhuri.net", "styles": [ "/css/normalize.css", "/css/style.css" diff --git a/public/humans.txt b/public/humans.txt index b857923..fc464ef 100644 --- a/public/humans.txt +++ b/public/humans.txt @@ -1,7 +1,7 @@ /* SITE */ Site name: samhuri.net -Site URL: http://samhuri.net +Site URL: https://samhuri.net Contact: sami@samhuri.net Twitter: @_sjs Location: Victoria, British Columbia, Canada diff --git a/public/keybase.txt b/public/keybase.txt index 0f1def2..acda4b2 100644 --- a/public/keybase.txt +++ b/public/keybase.txt @@ -4,11 +4,11 @@ https://keybase.io/samsonjs I hereby claim: - * I am an admin of http://samhuri.net + * I am an admin of https://samhuri.net * I am samsonjs (https://keybase.io/samsonjs) on keybase. * I have a public key with fingerprint BBED 74DD 17DB 7C8F 7664 4FE2 0522 38DD 367F 2A76 -To claim this, I am signing this object: +To do so, I am signing this object: { "body": { @@ -16,45 +16,47 @@ To claim this, I am signing this object: "fingerprint": "bbed74dd17db7c8f76644fe2052238dd367f2a76", "host": "keybase.io", "key_id": "052238dd367f2a76", + "kid": "0101aac046bd370929210140a4ad115771b2474168ce5133dc0b7a0a580dccd2e9ac0a", "uid": "25b680ae659b316bdce367b13f236900", "username": "samsonjs" }, "service": { "hostname": "samhuri.net", - "protocol": "http:" + "protocol": "https:" }, "type": "web_service_binding", "version": 1 }, - "ctime": 1398721942, + "ctime": 1430693548, "expire_in": 157680000, - "prev": "b1e8262765e3cce79be1740d17ce3ce87119f7e4744c71a94f8875cb491969f2", - "seqno": 2, + "prev": "be101663b075e83d97d0d55140f36744fb167f5d3f8769c8aebb4947fcadb8a3", + "seqno": 9, "tag": "signature" } -with the aforementioned key, yielding the PGP signature: +which yields the signature: -----BEGIN PGP MESSAGE----- -Version: Keybase OpenPGP v0.1.12 +Version: Keybase OpenPGP v2.0.8 Comment: https://keybase.io/crypto -yMHmAnicbZFbSBRhFMd3NS03Q/FB6CGiT4OyRXdmZ+ebWcmXKFi1YtFIxVrm8s3u -VDuzzsxurcsGBV2g1dCwTe2iWUgQUlEmmJdki8g06cFAyHoIpUIw6ymI9Rspemle -hvmf3//855yT2pRpsVn3vi//XFtQMG2dHF8OW2qOTl2NAV4Vo8AdA8fR2kuSFT/S -QpqsGMANeB6JkBJFAoo8FBgJ0jRFSYh0uEjSyYiik4YSyUEa2EFA1U0HbsNzOiqV -VazhD58sYvU/fHitQLp4mnFwiHaxvJOgeVFAmOEJp0Q6adbhMEEdaQoXRJjWuaCu -Ksd0ELcDrEZkAauxteh/RCCsyaUKMrA1pKmGKqgncCFgGCG36TOiIRM8iXjfnxY+ -XlZEPDY2RJCmy6oC3AQmBUM2exJOloEkwVKkHaBTIVlDPtkkXBD/OX7MGBQxl0Ug -hqRJSLuQUxAQZHlEQMqBl4eHEhADCYKVIKIgRQmQ4FhKYhjoEniKJVialUicr6Mm -RQVunGRwfnMc2a9wRlhDID4x3rjOYrVZsrMyzMNZbDn5f8+59cz6dIBvbNnjzY9+ -fziW9kf7hkcS1smZmScNUlFydmV2Z5WyNNX6Icbm3htpmm5runCu9+vb5pa2Bz37 -QNbgEXdZ53J5g23b3e2HMsev5RRNXHzdWz8c7O+GO5iBsbqeoa7LBx/lDxXvfnPa -c6mresPt+p/dvXXz+vVk6UqqYvPH4gH5eWXVs6R3xmMZiosdanHOHeLpjcpoza5P -i3JJwPvN81tPPf6Rkepo0BMZrV3paIJNDi/NlbC+/njtr9qiA7cOZ6faz6bb8gYL -vwStRvv+K575xQGyzzr1YqPafHMhYO98V3H/5Xz5XKG3ZSGRV/GKGh3NbSXPi8FI -dRmxZRUO8hJq -=7TfG +yMIcAnicbVJrSBVBFL5qT0ML6SE9pBbMskvMPmf3ZhCVmkFiaQg9uM3szHo3dfd6 +715NTSQho4c/giQrIkoRISEKwjR/qCVUSkhdKyQiKQsiColEsLRZK/rT/BnmnO/7 +zjnfnIcJcZ74mMyXW94XJCU9jRno3Rbx7M9qba/msE0qOV81V0xnL8O0imgoGDIt +h/NxGFMCJUJ4SDDUVQMqiiQZVACyIIgqIaICDQFBhfNyATvsMpgMRmG62bRZjD38 +JmHR/+CLfyd4wCOkA0nBRIRAEzSBRSSAJER4XoaQx4IEJV5RdSrzokh0gCECSFYB +0XUiUI2REZOLzMoJMlZUgKgia1jkmaZOWUnMi4YgKhoALjBMQxYqpQwdRqVh2zoa +5mq8HIuWmzp1LXAn+YcIRELmZos6jBoM2Y6t2yUsEXCcYNjnEp3KoIusoNj/R8OP +TYswGxmjnIbCpm1xPp4hdcd0RXlJBIomypLq5eixoBmiftNFyJC1zo5bh5a75lNm +haKIGECZqiLRIAFElpk7BhuK/QPmmZ0yEQ0VKpquIoqxpEnQ0BHBKhI5d6oyy+Z8 +GmsTFbnzmEUWciIhytX09Rya44mJ98ybG+sugid+4ZK/69EcXeC5OJNfdTzd8njG +M85JYM9Yc0O/MaadmeKvlNXfccYX3V1+eE/VlluDjUkXmi6kX+38SN40vuhpr/eu +PBLbvab2S+HoCt+NK9vavg9/q8hu+NwCHsdkqcl9yz6MXF/9o3d88cnW8g2n+2+d +SH5QEin9eepsVqBp/t73adHU6cQOkNkxFb20dP2nxdtHXkwMXB8ce6V9nOyyW7hz ++QF4GePJrIJ3j4ZuvM4UJ/yf80a6RtvX595OvXYvuyajkd4szMkhKdO1TW11DWk5 +0aEva+Pg1oRFX43cro3Dz/d1Hhi+v7t7XUXd3NTo+YPGql0pecnPvDsSRxNzNo1U +vh3qmHlyu7lj5y+c8ipk +=BWBO -----END PGP MESSAGE----- And finally, I am proving ownership of this host by posting or @@ -63,3 +65,4 @@ appending to this document. View my publicly-auditable identity here: https://keybase.io/samsonjs ================================================================== + diff --git a/public/posts/2006/02/some-textmate-snippets-for-rails-migrations.md b/public/posts/2006/02/some-textmate-snippets-for-rails-migrations.md index 7529f0e..88967ca 100644 --- a/public/posts/2006/02/some-textmate-snippets-for-rails-migrations.md +++ b/public/posts/2006/02/some-textmate-snippets-for-rails-migrations.md @@ -64,7 +64,7 @@ I'll be adding more snippets and macros. There should be a central place where t
- Sami Samhuri + Sami Samhuri
Feb 19, 2006
diff --git a/public/posts/2008/03/project-euler-code-repo-in-arc.md b/public/posts/2008/03/project-euler-code-repo-in-arc.md index be72125..9df8e88 100644 --- a/public/posts/2008/03/project-euler-code-repo-in-arc.md +++ b/public/posts/2008/03/project-euler-code-repo-in-arc.md @@ -1,4 +1,4 @@ -Release early and often. This is a code repo web app for solutions to Project Euler problems. You can only see your own solutions so it's not that exciting yet (but it scratches my itch... once it highlights syntax). You can try it out or download the source. You'll need an up-to-date copy of Anarki to untar the source in. Just run arc.sh then enter this at the REPL: +Release early and often. This is a code repo web app for solutions to Project Euler problems. You can only see your own solutions so it's not that exciting yet (but it scratches my itch... once it highlights syntax). You can try it out or download the source. You'll need an up-to-date copy of Anarki to untar the source in. Just run arc.sh then enter this at the REPL:
arc> (load "euler.arc")
diff --git a/public/posts/2010/11/37signals-chalk-dissected.md b/public/posts/2010/11/37signals-chalk-dissected.md
index e12fed5..86ca8a1 100644
--- a/public/posts/2010/11/37signals-chalk-dissected.md
+++ b/public/posts/2010/11/37signals-chalk-dissected.md
@@ -54,7 +54,7 @@
 
 

 

-
+
background.jpg 1024x946px

The background is the blackboard itself, and is almost square at 1024x946. The cork border and light switch are there too. This is set as the background-image of the html element and is positioned at a negative x or y in order to centre it properly. CSS media queries are used to detect the screen's orientation. This way the same image is used for both orientations, clever.

@@ -75,7 +75,7 @@ background.jpg 1024x946px

 

-
+
chalk-sprites.png

Sprites are used for all the other elements: ledge, chalk, eraser, tool indicator, share button, instructions, and close button (to leave the sharing mode). Positioned using CSS, standard stuff. There is white text alongside those green arrows. If you want to see it we'll have to change the background to black.

@@ -183,7 +183,7 @@ chalk-sprites.png

 

That's it!

-

That about covers it. Don't have an iPad? Play around with it anyway, but be warned that you can't draw anything. You can select chalk and the eraser and hit the light switch. I instinctively tried touching my MacBook's display but alas it doesn't magically respond to touches, lame.

+

That about covers it. Don't have an iPad? Play around with it anyway, but be warned that you can't draw anything. You can select chalk and the eraser and hit the light switch. I instinctively tried touching my MacBook's display but alas it doesn't magically respond to touches, lame.

Have fun drawing. Thanks to 37signals for a beautiful (and useful) example of a few modern web technologies.

@@ -280,7 +280,7 @@ addLineNumbersToAllGists();
- sjs + sjs
Nov 05, 2010
diff --git a/server/spec/harp_blog_post_spec.rb b/server/spec/harp_blog_post_spec.rb index daef700..8beba54 100644 --- a/server/spec/harp_blog_post_spec.rb +++ b/server/spec/harp_blog_post_spec.rb @@ -8,7 +8,7 @@ RSpec.describe HarpBlog::Post do before :all do @post_fields = { title: 'samhuri.net', - link: 'http://samhuri.net', + link: 'https://samhuri.net', body: 'this site is sick', } @post_slug = 'samhuri-net' diff --git a/server/spec/harp_blog_spec.rb b/server/spec/harp_blog_spec.rb index 4caa528..0d64468 100644 --- a/server/spec/harp_blog_spec.rb +++ b/server/spec/harp_blog_spec.rb @@ -171,7 +171,7 @@ RSpec.describe HarpBlog do it "should create a link post when a link is given" do title = 'test post' body = 'check this out' - link = 'http://samhuri.net' + link = 'https://samhuri.net' post = @blog.create_post(title, body, link) expect(post).to be_truthy expect(post.link?).to be_truthy @@ -227,10 +227,10 @@ RSpec.describe HarpBlog do end it "should fetch titles if necessary" do - post = @blog.create_post(nil, nil, 'http://samhuri.net') + post = @blog.create_post(nil, nil, 'https://samhuri.net') expect(post.title).to eq(@mock_title) @blog.delete_post(post.time.year.to_s, post.padded_month, post.slug) - post = @blog.create_post(" \t\n", nil, 'http://samhuri.net') + post = @blog.create_post(" \t\n", nil, 'https://samhuri.net') expect(post.title).to eq(@mock_title) end end @@ -306,7 +306,7 @@ RSpec.describe HarpBlog do id = 'this-draft-is-a-keeper' title = 'a-shiny-new-post' body = 'blah blah blah' - link = 'http://samhuri.net' + link = 'https://samhuri.net' draft = @blog.create_post(title, body, link, id: id, draft: true) post = @blog.publish_post(draft) expect(post).to be_truthy @@ -350,7 +350,7 @@ RSpec.describe HarpBlog do it "should raise an error for drafts" do title = 'a-shiny-new-post' body = 'blah blah blah' - link = 'http://samhuri.net' + link = 'https://samhuri.net' post = @blog.create_post(title, body, link, draft: true) expect { @blog.unpublish_post(post) }.to raise_error end diff --git a/server/web_version_finder.rb b/server/web_version_finder.rb index cc8b177..db3e486 100644 --- a/server/web_version_finder.rb +++ b/server/web_version_finder.rb @@ -2,7 +2,7 @@ require 'open-uri' class WebVersionFinder - DEFAULT_URL = 'http://samhuri.net/version.txt' + DEFAULT_URL = 'https://samhuri.net/version.txt' def find_version(url = nil) open(url || DEFAULT_URL).read.strip