This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export DOT_PORT=1738 | |
function changeDot() { | |
echo -n $1 | nc -4u -w0 localhost $DOT_PORT | |
} | |
changeDot "white" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# opening and closing windows and popovers | |
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false | |
# smooth scrolling | |
defaults write -g NSScrollAnimationEnabled -bool false | |
# showing and hiding sheets, resizing preference windows, zooming windows | |
# float 0 doesn't work | |
defaults write -g NSWindowResizeTime -float 0.001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# (1) copy to: ~/bin/ssh-host-color | |
# (2) set: alias ssh=~/bin/ssh-host-color | |
# | |
# Inspired from http://talkfast.org/2011/01/10/ssh-host-color | |
# Fork from https://gist.github.com/773849 | |
# | |
set_term_bgcolor(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* h5bp clearfix */ | |
.clearfix:before, | |
.clearfix:after { | |
content: " "; | |
display: table; | |
} | |
.clearfix:after { | |
clear: both; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake paperclip:refresh CLASS=Spree::Product | |
rake aborted! | |
undefined method `keys' for nil:NilClass | |
/Users/tjlahr/.rvm/gems/ruby-1.9.3-p392/gems/paperclip-2.8.0/lib/tasks/paperclip.rake:16:in `obtain_attachments' | |
/Users/tjlahr/.rvm/gems/ruby-1.9.3-p392/gems/paperclip-2.8.0/lib/tasks/paperclip.rake:45:in `block (3 levels) in <top (required)>' | |
/Users/tjlahr/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval' | |
/Users/tjlahr/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>' | |
Tasks: TOP => paperclip:refresh => paperclip:refresh:metadata | |
(See full trace by running task with --trace) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.serializeObject = function() | |
{ | |
var o = {}; | |
var a = this.serializeArray(); | |
$.each(a, function() { | |
if (o[this.name]) { | |
if (!o[this.name].push) { | |
o[this.name] = [o[this.name]]; | |
} | |
o[this.name].push(this.value || ''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ========================================================================== | |
Helper classes | |
pulled from HTML5 Boilerplate's main.css file | |
https://github.com/h5bp/html5-boilerplate | |
========================================================================== */ | |
/* | |
* Image replacement | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OS generated files # | |
###################### | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
Icon? | |
ehthumbs.db | |
Thumbs.db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AAA1234AAS AASS ABADBCH ABADME ABADMF ABAD6T9 ABAD69 ABCHNZ ABDMF ABICH ABIGIO ABIGONE ABIG14U ABIM2GO ABITCH ABM ABOXDOC ABOY69 ABTCHN AB1TCH ACDCNO1 ACDC4U ACDC5I ACECOCK ACEDYOU ACEHOLE ACEKISS ACEMF ACEU ACID ACKKILR ACLIMAX ACOCKYI ACOCKY1 ACTAA55 ACW1763 AC69DC ADCRAP ADDICT1 ADEGOADICKO ADIOSMF ADOOKY ADR3801 ADT3818 ADUST AERO69 AET1 AEZ69 AFAQ2 AFASI AFASMF AFASTI AFASTMFAFATMF AFA69 AFCKN10 AFETUS AFINE69 AFMUCK AFOKGQN AFOKU AFONGOO AFOOT AFRTS AFU AFUCK AGAYLAYAGENO AGGLO AGINA AGOOD69 AGTIHS AHABHO AHARD AHARDN AHARDO AHCHIT AHCRAP AHEDJB AHEDJOB AHFARTAHFRRT AHHELL AHHELNO AHHHHSO AHHOLA AHHSOL AHLE AHMERDE AHOLE AHOOKER AHOTBOX AHOT14U AHOT69 AHPATAHSHEET AHSHIT AHSHITA AHSHT ABM16 ACES ABNORML AGELEX1 ADAWMS ABBAFTR ABD88 AGLBGL ABAZA AAROMEA ABLKMND ACTLS1Z ADCALLS ABC123 ABIRD AFOLA1 AD ANETA ACCOMAC ALFA73 AFAAX4 ADM AEWEBBACCRITE ADELAB1 AHSIT AHSOUL AHS69 AHTITI AHUG69 AHYUKFU AID AIDS4U AIFAM AIFAM1 AIM2KIL AINOFUAINOKEA AIRGAZM AISHT AISIA AITAMA AJAYI AJAY7I AJESUSO AJUJU AKADSHT AKAKI |
NewerOlder