most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| echo "read 'icns' (-16455) \"Icon.icns\";" > Icon.r | |
| Rez -append -o File.ext Icon.r | |
| SetFile -a CE File.ext |
| <html> | |
| <head> | |
| <script type="text/javascript" src="./jquery-1.4.3.min.js"></script> | |
| <script type="text/javascript"> | |
| var baseURL = 'http://en.wiktionary.org'; | |
| function showPage(page,text) { | |
| var sourceurl = baseURL + '/wiki/' + page; | |
| $('#pagetitle').text(page); | |
| $('#wikiInfo').html(text); | |
| $('#sourceurl').attr('href',sourceurl); |
| REMOTE REQUESTS: | |
| com.sadun.airflick | |
| RequestType := show-photo | play-media | screenshot | |
| MediaLocation := | |
| <url string> | <local file path string> | <array of local file path strings for slideshow> | |
| Rotation := 0 | 1 | 2 | 3 (0 ^, 1 <, 2 v, 3 >) | |
| Transition := SlideRight | Dissolve | |
| SlideDuration := 2 | 3 | 5 | 8 | 10 (Use strings. Incorrect durations default to 5) | |
| // Single Slide |
| ############################################################################## | |
| # History Configuration | |
| ############################################################################## | |
| HISTSIZE=5000 #How many lines of history to keep in memory | |
| HISTFILE=~/.zsh_history #Where to save history to disk | |
| SAVEHIST=5000 #Number of history entries to save to disk | |
| #HISTDUP=erase #Erase duplicates in the history file | |
| setopt appendhistory #Append history to the history file (no overwriting) | |
| setopt sharehistory #Share history across terminals | |
| setopt incappendhistory #Immediately append to the history file, not just when a term is killed |
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
| #!/usr/bin/env bash | |
| # bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2013-07-11 | |
| # | |
| # _______________| netspeed : check download speed via command line. | |
| # | |
| # Usage: netspeed [tokyo, london, usw, use, east, west, URL] | |
| # ^default U.S. west coast. | |
| # [ -speed_KB/sec ] | |
| # ^negation activates the Mbps converter. | |
| # |
| #!/usr/bin/env python | |
| import re | |
| import sys | |
| from urllib import urlopen | |
| def isup(domain): | |
| resp = urlopen("http://www.isup.me/%s" % domain).read() | |
| return "%s: %s" % (domain, "UP" if re.search("It's just you.", resp, | |
| re.DOTALL) else "DOWN") |
| javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened'); |
| $ npm install -g ws | |
| $ wscat -c ws://echo.websocket.org -p 8 | |
| connected (press CTRL+C to quit) | |
| > hi there | |
| < hi there | |
| > are you a happy parrot? | |
| < are you a happy parrot? |