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

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 / 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.
@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/
Verifying that +sillygwailo is my openname (Bitcoin username). https://onename.io/sillygwailo
@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
@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 / 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 / gist:20c18e877f1d0569e954
Last active August 29, 2015 14:15
Compiling a forked Node.js module written in CoffeeScript
  1. I have a fork of a Node.js module on GitHub that is a depenency of an app.
  2. That module is written in CoffeeScript. When 'npm install' downloads it, it doesn't compile the module. This is a problem when deploying the app to Heroku, because I can't compile it when deploying to Heroku.
  3. Furthermore, compiling the module has its own depenencies. The dependencies need to be installed before it can be installed.
  4. If I manually run 'npm install' in the forked module's directory inside node_modules, then 'grunt prepublish', everything will work.
  5. I need to automate step #4 when installing the app. How do I do that?

The app in question is https://github.com/sillygwailo/Slack-Twitter If you run npm install in that directory, the slack-client module will not get compiled.

A Solution?

@sillygwailo
sillygwailo / Gruntfile.js
Created March 3, 2015 21:14
questions.justagwailo.com Grunt deployment and notification
module.exports = function(grunt) {
grunt.initConfig({
notify: {
surge: {
options: {
title: 'questions.justagwailo.com',
message: 'Deployment complete.',
}
},
},

Custom Twitter Stylesheet

Craig Mod does a bigger overhaul with Twitter for Minimalists, but this will only do the following:

  • Hides promoted tweets and trends
  • Hides the useless “Expand” link that appears under every tweet
  • Tones down the blue conversation line to a barely-visible gray
  • Hides all numbers

You can add this CSS in Safari with this extension. The URL to target is twitter.com/*.