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:
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%; |
#!/bin/bash | |
unzip ./RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip | |
cd ./RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/ | |
tar -xvf ./rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz | |
cd ./rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105/ | |
patch -p1 < ../../../rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105_patch.txt | |
make | |
make install | |
insmod ./8192cu.ko |