Skip to content

Instantly share code, notes, and snippets.

View sillygwailo's full-sized avatar
💭
Looking for collaborators.

Richard Eriksson sillygwailo

💭
Looking for collaborators.
View GitHub Profile
@sillygwailo
sillygwailo / daringfireball-no-caps.css
Last active August 29, 2015 14:13
Sentence case in Linked List titles and Fireball sub-headings on Daring Fireball
/* If you know how to edit User CSS using a browser plugin, use http://daringfireball.net/* as the URLs for this CSS. */
dt {
text-transform: none !important;
font-family: Verdana, "Bitstream Vera Sans", sans-serif !important;
}
h2 {
font-size: 1.25em !important;
text-transform: none !important;
}
@sillygwailo
sillygwailo / slack-client-minimal-example.js
Created December 23, 2014 21:17
Slack Node.js Minimal Example
/*
1. npm install slack-client
2. Add a bot to Slack. https://YOURDOMAIN.slack.com/services/new/bot
3. Replace the YOUR_TOKEN_HERE with the token from the bot.
4. Invite the bot to a channel to monitor.
*/
var Slack = require('slack-client');
var options = {
@sillygwailo
sillygwailo / known-centos-7.txt
Last active August 29, 2015 14:10
Installing Known on Centos 7
yum install httpd mariadb mariadb-server mod_php php-xmlrpc unzip php-pdo php-mysql php-xml php-gd php-mbstring
systemctl start mariadb.service
systemctl enable mariadb.service
mysql_secure_installation
systemctl start httpd.service
systemctl enable httpd.service
Verifying that +sillygwailo is my openname (Bitcoin username). https://onename.io/sillygwailo
@sillygwailo
sillygwailo / gist:7a1868a5744f237edcce
Last active August 29, 2015 14:08
Pretty Git Logs
# Show current config in case you want to revert.
git config --get log.abbrevCommit
git config --get log.decorate
git config --get format.pretty
# Show abbreviated commit hashes.
git config --global log.abbrevCommit true
# Full decoration.
git config --global log.decorate full
# Format the display to show a yellow commit message, multicolored tags/branches, blue time ago, red committer (new line), white commit message.
git config --global format.pretty format:"%C(yellow)%h%Creset %C(auto)%d%Creset %Cblue%ar%Creset %Cred%an%Creset %n%w(72,1,2)%s" # http://git.gd/a-better-git-log/
@sillygwailo
sillygwailo / athletes-village-to-gastown.geojson
Created September 26, 2014 04:55
Athletes Village to Mole Hill via Gastown and English Bay
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am sillygwailo on github.
  • I am sillygwailo (https://keybase.io/sillygwailo) on keybase.
  • I have a public key whose fingerprint is CE23 A23A 2204 611D 016B A3DA 5835 D361 DC7C C8DB

To claim this, I am signing this object:

@sillygwailo
sillygwailo / vancouver-biennale-english-bay-tour.gpx
Created September 8, 2014 06:19
Vancouver Biennale Tours in GPX
<?xml version="1.0"?>
<gpx creator="GPS Visualizer http://www.gpsvisualizer.com/" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<wpt lat="49.27434" lon="-123.15394">
<name>49.27435,-123.15396</name>
</wpt>
<wpt lat="49.27871" lon="-123.14401">
<name>49.27872,-123.14401</name>
</wpt>
<wpt lat="49.28001" lon="-123.13944">
<name>49.28001,-123.13945</name>
@sillygwailo
sillygwailo / vancouver-biennale-english-bay-tour.json
Last active August 29, 2015 14:06
Vancouver Biennale Tours in GeoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sillygwailo
sillygwailo / metafilter.css
Last active August 29, 2015 14:04
User CSS to remove the static header from websites
/* If you know how to edit User CSS using a browser plugin, use http://*.metafilter.com/* as the URLs for this CSS. */
header.site-header.fixed.visible {
display: none !important;
}