I hereby claim:
- I am jamesgecko on github.
- I am jamesgecko (https://keybase.io/jamesgecko) on keybase.
- I have a public key ASD4BgjKFTTy4-vz9nmAuD9YjuA9ej80xVJ71J6mM_B3Gwo
To claim this, I am signing this object:
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| $script = <<SCRIPT | |
| sudo apt-get -y update | |
| sudo apt-get -y install curl git-core python-software-properties ruby-dev libpq-dev build-essential nginx libsqlite3-0 libsqlite3-dev libxml2 libxml2-dev libxslt1-dev nodejs postgresql postgresql-contrib imagemagick autoconf bison libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev | |
| git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.bashrc |
| local sendEscape = true | |
| local ctrlKeyTimer = hs.timer.delayed.new(0.15, function() | |
| sendEscape = false | |
| end) | |
| local lastMods = {} | |
| local flagsChangedHandler = function(event) | |
| local newMods = event:getFlags() | |
| if lastMods.ctrl == newMods.ctrl then return false end |
I hereby claim:
To claim this, I am signing this object:
| from PIL import Image | |
| PALETTE = ((0,0,0), (29, 43, 83), (128, 37, 83), (0, 135, 81), | |
| (171,82,54), (95,87,79), (194,195,199), (255,241,232), | |
| (255,0,77), (255,163,0), (255,255,39), (0,231,86), | |
| (41,173,255), (131,118,156), (255,119,168), (255,204,170)) | |
| def main(): | |
| im = Image.open('tilesetP8.png') | |
| px = im.load() |
| #!/bin/sh | |
| interface=$(route get 0.0.0.0 2>/dev/null | awk '/interface: / {print $2}') | |
| domain="http://$(ipconfig getifaddr $interface):3000" | |
| echo $domain |
| set mySSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'" | |
| if mySSID is "HomeNetwork" then | |
| set message to "Working from home" | |
| end if | |
| if mySSID is "WorkNetwork" then | |
| set message to "Working from the office" | |
| end if | |
| tell application "System Events" | |
| if exists process "Adium" then tell application "Adium" to set status message of every account to message | |
| end tell |
| // ==UserScript== | |
| // @name Disable interceptions of Cmd+t, Cmd+w, Cmd+shift+] and Cmd+shift+[ | |
| // @namespace http://userscripts.org/users/642403 | |
| // @description Stop websites from hijacking keyboard shortcuts | |
| // | |
| // @run-at document-start | |
| // @include * | |
| // @grant none | |
| // ==/UserScript== |
| <link rel="import" href="../paper-button/paper-button.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
| <link rel="import" href="../components/polymer/polymer.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |