mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
update keybase and use https for links to samhuri.net
This commit is contained in:
parent
b7e259402c
commit
5dbbb4037d
10 changed files with 43 additions and 40 deletions
|
|
@ -3,6 +3,6 @@
|
||||||
"site": "samhuri.net",
|
"site": "samhuri.net",
|
||||||
"author": "Sami Samhuri",
|
"author": "Sami Samhuri",
|
||||||
"email": "sami@samhuri.net",
|
"email": "sami@samhuri.net",
|
||||||
"url": "http://samhuri.net"
|
"url": "https://samhuri.net"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"title": "samhuri.net",
|
"title": "samhuri.net",
|
||||||
"subtitle": "words mean things",
|
"subtitle": "words mean things",
|
||||||
"url": "http://samhuri.net",
|
"url": "https://samhuri.net",
|
||||||
"styles": [
|
"styles": [
|
||||||
"/css/normalize.css",
|
"/css/normalize.css",
|
||||||
"/css/style.css"
|
"/css/style.css"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/* SITE */
|
/* SITE */
|
||||||
|
|
||||||
Site name: samhuri.net
|
Site name: samhuri.net
|
||||||
Site URL: http://samhuri.net
|
Site URL: https://samhuri.net
|
||||||
Contact: sami@samhuri.net
|
Contact: sami@samhuri.net
|
||||||
Twitter: @_sjs
|
Twitter: @_sjs
|
||||||
Location: Victoria, British Columbia, Canada
|
Location: Victoria, British Columbia, Canada
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ https://keybase.io/samsonjs
|
||||||
|
|
||||||
I hereby claim:
|
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 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
|
* 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": {
|
"body": {
|
||||||
|
|
@ -16,45 +16,47 @@ To claim this, I am signing this object:
|
||||||
"fingerprint": "bbed74dd17db7c8f76644fe2052238dd367f2a76",
|
"fingerprint": "bbed74dd17db7c8f76644fe2052238dd367f2a76",
|
||||||
"host": "keybase.io",
|
"host": "keybase.io",
|
||||||
"key_id": "052238dd367f2a76",
|
"key_id": "052238dd367f2a76",
|
||||||
|
"kid": "0101aac046bd370929210140a4ad115771b2474168ce5133dc0b7a0a580dccd2e9ac0a",
|
||||||
"uid": "25b680ae659b316bdce367b13f236900",
|
"uid": "25b680ae659b316bdce367b13f236900",
|
||||||
"username": "samsonjs"
|
"username": "samsonjs"
|
||||||
},
|
},
|
||||||
"service": {
|
"service": {
|
||||||
"hostname": "samhuri.net",
|
"hostname": "samhuri.net",
|
||||||
"protocol": "http:"
|
"protocol": "https:"
|
||||||
},
|
},
|
||||||
"type": "web_service_binding",
|
"type": "web_service_binding",
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
"ctime": 1398721942,
|
"ctime": 1430693548,
|
||||||
"expire_in": 157680000,
|
"expire_in": 157680000,
|
||||||
"prev": "b1e8262765e3cce79be1740d17ce3ce87119f7e4744c71a94f8875cb491969f2",
|
"prev": "be101663b075e83d97d0d55140f36744fb167f5d3f8769c8aebb4947fcadb8a3",
|
||||||
"seqno": 2,
|
"seqno": 9,
|
||||||
"tag": "signature"
|
"tag": "signature"
|
||||||
}
|
}
|
||||||
|
|
||||||
with the aforementioned key, yielding the PGP signature:
|
which yields the signature:
|
||||||
|
|
||||||
-----BEGIN PGP MESSAGE-----
|
-----BEGIN PGP MESSAGE-----
|
||||||
Version: Keybase OpenPGP v0.1.12
|
Version: Keybase OpenPGP v2.0.8
|
||||||
Comment: https://keybase.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|
TYswGxmjnIbCpm1xPp4hdcd0RXlJBIomypLq5eixoBmiftNFyJC1zo5bh5a75lNm
|
||||||
RQVunGRwfnMc2a9wRlhDID4x3rjOYrVZsrMyzMNZbDn5f8+59cz6dIBvbNnjzY9+
|
haKIGECZqiLRIAFElpk7BhuK/QPmmZ0yEQ0VKpquIoqxpEnQ0BHBKhI5d6oyy+Z8
|
||||||
fziW9kf7hkcS1smZmScNUlFydmV2Z5WyNNX6Icbm3htpmm5runCu9+vb5pa2Bz37
|
GmsTFbnzmEUWciIhytX09Rya44mJ98ybG+sugid+4ZK/69EcXeC5OJNfdTzd8njG
|
||||||
QNbgEXdZ53J5g23b3e2HMsev5RRNXHzdWz8c7O+GO5iBsbqeoa7LBx/lDxXvfnPa
|
M85JYM9Yc0O/MaadmeKvlNXfccYX3V1+eE/VlluDjUkXmi6kX+38SN40vuhpr/eu
|
||||||
c6mresPt+p/dvXXz+vVk6UqqYvPH4gH5eWXVs6R3xmMZiosdanHOHeLpjcpoza5P
|
PBLbvab2S+HoCt+NK9vavg9/q8hu+NwCHsdkqcl9yz6MXF/9o3d88cnW8g2n+2+d
|
||||||
i3JJwPvN81tPPf6Rkepo0BMZrV3paIJNDi/NlbC+/njtr9qiA7cOZ6faz6bb8gYL
|
SH5QEin9eepsVqBp/t73adHU6cQOkNkxFb20dP2nxdtHXkwMXB8ce6V9nOyyW7hz
|
||||||
vwStRvv+K575xQGyzzr1YqPafHMhYO98V3H/5Xz5XKG3ZSGRV/GKGh3NbSXPi8FI
|
+QF4GePJrIJ3j4ZuvM4UJ/yf80a6RtvX595OvXYvuyajkd4szMkhKdO1TW11DWk5
|
||||||
dRmxZRUO8hJq
|
0aEva+Pg1oRFX43cro3Dz/d1Hhi+v7t7XUXd3NTo+YPGql0pecnPvDsSRxNzNo1U
|
||||||
=7TfG
|
vh3qmHlyu7lj5y+c8ipk
|
||||||
|
=BWBO
|
||||||
-----END PGP MESSAGE-----
|
-----END PGP MESSAGE-----
|
||||||
|
|
||||||
And finally, I am proving ownership of this host by posting or
|
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
|
View my publicly-auditable identity here: https://keybase.io/samsonjs
|
||||||
|
|
||||||
==================================================================
|
==================================================================
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ I'll be adding more snippets and macros. There should be a central place where t
|
||||||
|
|
||||||
<div id="comment-2" class="comment">
|
<div id="comment-2" class="comment">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<a href="http://samhuri.net">Sami Samhuri</a>
|
<a href="https://samhuri.net">Sami Samhuri</a>
|
||||||
</div>
|
</div>
|
||||||
<span class="date" title="2006-02-19 18:48:00 -0800">Feb 19, 2006</span>
|
<span class="date" title="2006-02-19 18:48:00 -0800">Feb 19, 2006</span>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
Release early and often. This is a code repo web app for solutions to <a href="http://projecteuler.net/">Project Euler</a> 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 <a href="http://nofxwiki.net:3141/euler">try it out</a> or <a href="http://samhuri.net/euler.tgz">download the source</a>. You'll need an up-to-date copy of <a href="http://arcfn.com/2008/02/git-and-anarki-arc-repository-brief.html">Anarki</a> to untar the source in. Just run <strong>arc.sh</strong> then enter this at the REPL:
|
Release early and often. This is a code repo web app for solutions to <a href="http://projecteuler.net/">Project Euler</a> 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 <a href="http://nofxwiki.net:3141/euler">try it out</a> or <a href="https://samhuri.net/euler.tgz">download the source</a>. You'll need an up-to-date copy of <a href="http://arcfn.com/2008/02/git-and-anarki-arc-repository-brief.html">Anarki</a> to untar the source in. Just run <strong>arc.sh</strong> then enter this at the REPL:
|
||||||
|
|
||||||
|
|
||||||
<pre><code>arc> (load "euler.arc")
|
<pre><code>arc> (load "euler.arc")
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<a href="http://samhuri.net/Chalk/images/background.jpg"><img height="473" src="http://samhuri.net/Chalk/images/background.jpg" style="border: 0;" width="512" /></a><br />
|
<a href="https://samhuri.net/Chalk/images/background.jpg"><img height="473" src="https://samhuri.net/Chalk/images/background.jpg" style="border: 0;" width="512" /></a><br />
|
||||||
background.jpg 1024x946px</div>
|
background.jpg 1024x946px</div>
|
||||||
|
|
||||||
<p>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. <a href="https://developer.mozilla.org/En/CSS/Media_queries">CSS media queries</a> are used to detect the screen's orientation. This way the same image is used for both orientations, clever.</p>
|
<p>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. <a href="https://developer.mozilla.org/En/CSS/Media_queries">CSS media queries</a> are used to detect the screen's orientation. This way the same image is used for both orientations, clever.</p>
|
||||||
|
|
@ -75,7 +75,7 @@ background.jpg 1024x946px</div>
|
||||||
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<div align="center" id="sprites">
|
<div align="center" id="sprites">
|
||||||
<img height="534" src="http://samhuri.net/Chalk/images/chalk-sprites.png" width="502" /><br />
|
<img height="534" src="https://samhuri.net/Chalk/images/chalk-sprites.png" width="502" /><br />
|
||||||
chalk-sprites.png </div>
|
chalk-sprites.png </div>
|
||||||
|
|
||||||
<p>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 <a href="#" onclick="document.getElementById('sprites').style.backgroundColor = '#000'; return false">change the background to black</a>.</p>
|
<p>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 <a href="#" onclick="document.getElementById('sprites').style.backgroundColor = '#000'; return false">change the background to black</a>.</p>
|
||||||
|
|
@ -183,7 +183,7 @@ chalk-sprites.png </div>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<h2>That's it!</h2>
|
<h2>That's it!</h2>
|
||||||
|
|
||||||
<p>That about covers it. Don't have an iPad? <a href="http://samhuri.net/Chalk/index.html">Play around with it anyway</a>, 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.</p>
|
<p>That about covers it. Don't have an iPad? <a href="https://samhuri.net/Chalk/index.html">Play around with it anyway</a>, 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.</p>
|
||||||
|
|
||||||
<p>Have fun drawing. Thanks to 37signals for a beautiful (and useful) example of a few modern web technologies.</p>
|
<p>Have fun drawing. Thanks to 37signals for a beautiful (and useful) example of a few modern web technologies.</p>
|
||||||
|
|
||||||
|
|
@ -280,7 +280,7 @@ addLineNumbersToAllGists();
|
||||||
|
|
||||||
<div id="comment-6" class="comment">
|
<div id="comment-6" class="comment">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<a href="http://samhuri.net">sjs</a>
|
<a href="https://samhuri.net">sjs</a>
|
||||||
</div>
|
</div>
|
||||||
<span class="date" title="2010-11-05 11:35:27 -0700">Nov 05, 2010</span>
|
<span class="date" title="2010-11-05 11:35:27 -0700">Nov 05, 2010</span>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ RSpec.describe HarpBlog::Post do
|
||||||
before :all do
|
before :all do
|
||||||
@post_fields = {
|
@post_fields = {
|
||||||
title: 'samhuri.net',
|
title: 'samhuri.net',
|
||||||
link: 'http://samhuri.net',
|
link: 'https://samhuri.net',
|
||||||
body: 'this site is sick',
|
body: 'this site is sick',
|
||||||
}
|
}
|
||||||
@post_slug = 'samhuri-net'
|
@post_slug = 'samhuri-net'
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ RSpec.describe HarpBlog do
|
||||||
it "should create a link post when a link is given" do
|
it "should create a link post when a link is given" do
|
||||||
title = 'test post'
|
title = 'test post'
|
||||||
body = 'check this out'
|
body = 'check this out'
|
||||||
link = 'http://samhuri.net'
|
link = 'https://samhuri.net'
|
||||||
post = @blog.create_post(title, body, link)
|
post = @blog.create_post(title, body, link)
|
||||||
expect(post).to be_truthy
|
expect(post).to be_truthy
|
||||||
expect(post.link?).to be_truthy
|
expect(post.link?).to be_truthy
|
||||||
|
|
@ -227,10 +227,10 @@ RSpec.describe HarpBlog do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should fetch titles if necessary" do
|
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)
|
expect(post.title).to eq(@mock_title)
|
||||||
@blog.delete_post(post.time.year.to_s, post.padded_month, post.slug)
|
@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)
|
expect(post.title).to eq(@mock_title)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -306,7 +306,7 @@ RSpec.describe HarpBlog do
|
||||||
id = 'this-draft-is-a-keeper'
|
id = 'this-draft-is-a-keeper'
|
||||||
title = 'a-shiny-new-post'
|
title = 'a-shiny-new-post'
|
||||||
body = 'blah blah blah'
|
body = 'blah blah blah'
|
||||||
link = 'http://samhuri.net'
|
link = 'https://samhuri.net'
|
||||||
draft = @blog.create_post(title, body, link, id: id, draft: true)
|
draft = @blog.create_post(title, body, link, id: id, draft: true)
|
||||||
post = @blog.publish_post(draft)
|
post = @blog.publish_post(draft)
|
||||||
expect(post).to be_truthy
|
expect(post).to be_truthy
|
||||||
|
|
@ -350,7 +350,7 @@ RSpec.describe HarpBlog do
|
||||||
it "should raise an error for drafts" do
|
it "should raise an error for drafts" do
|
||||||
title = 'a-shiny-new-post'
|
title = 'a-shiny-new-post'
|
||||||
body = 'blah blah blah'
|
body = 'blah blah blah'
|
||||||
link = 'http://samhuri.net'
|
link = 'https://samhuri.net'
|
||||||
post = @blog.create_post(title, body, link, draft: true)
|
post = @blog.create_post(title, body, link, draft: true)
|
||||||
expect { @blog.unpublish_post(post) }.to raise_error
|
expect { @blog.unpublish_post(post) }.to raise_error
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ require 'open-uri'
|
||||||
|
|
||||||
class WebVersionFinder
|
class WebVersionFinder
|
||||||
|
|
||||||
DEFAULT_URL = 'http://samhuri.net/version.txt'
|
DEFAULT_URL = 'https://samhuri.net/version.txt'
|
||||||
|
|
||||||
def find_version(url = nil)
|
def find_version(url = nil)
|
||||||
open(url || DEFAULT_URL).read.strip
|
open(url || DEFAULT_URL).read.strip
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue