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| // Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
| $('[placeholder]').focus(function() { | |
| var input = $(this); | |
| if (input.val() == input.attr('placeholder')) { | |
| input.val(''); | |
| input.removeClass('placeholder'); | |
| } | |
| }).blur(function() { | |
| var input = $(this); |
| # Optimized for writes, sort on read | |
| # LVC | |
| redis.hset("bonds|1", "bid_price", 96.01) | |
| redis.hset("bonds|1", "ask_price", 97.53) | |
| redis.hset("bonds|2", "bid_price", 95.50) | |
| redis.hset("bonds|2", "ask_price", 98.25) | |
| redis.sadd("bond_ids", 1) | |
| redis.sadd("bond_ids", 2) |
| Your name and email address were configured automatically based | |
| on your username and hostname. Please check that they are accurate. | |
| You can suppress this message by setting them explicitly: | |
| git config --global user.name "Your Name" | |
| git config --global user.email [email protected] | |
| After doing this, you may fix the identity used for this commit with: | |
| git commit --amend --reset-author |
| location /resize { | |
| alias /tmp/nginx/resize; | |
| set $width 150; | |
| set $height 100; | |
| set $dimens ""; | |
| if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) { | |
| set $width $1; | |
| set $height $2; | |
| set $image_path $3; |
| [Solarized Dark] | |
| text(bold)=839496 | |
| magenta(bold)=6c71c4 | |
| text=839496 | |
| white(bold)=fdf6e3 | |
| green=859900 | |
| red(bold)=cb4b16 | |
| green(bold)=586e75 | |
| black(bold)=073642 | |
| red=dc322f |
This gist assumes:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
If you love deploying websites using Github, but for some reason want to use your own server, this script might be exactly what you need.
github.php somewhere on your PHP-enabled web server, and make it
accessible for the outside world. Let's say for now the script lives
on http://example.com/github.php