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
unless ARGV[0].nil? | |
File.open(ARGV[0],'r').each do |line| | |
line.gsub!(/\(|\)|,/,'') | |
versions = line.split | |
gem_name = versions.shift | |
versions.each do |version| | |
puts "gem install #{gem_name} -v=#{version} --ignore-dependencies" | |
system("gem install #{gem_name} -v=#{version} --ignore-dependencies") |
# =============================== | |
# Counters with Redis Sorted Sets | |
# =============================== | |
redis-cli DEL downloads:total downloads:total:today downloads:files:total downloads:files:2011-05-10 | |
# -------------- | |
# STORING COUNTS | |
# -------------- | |
# On each hit for file, do this: |
#! /usr/bin/ruby | |
# So you want to start developing an already "woking" project. No | |
# bundle, config.gem's not present or messing up dependencies. Fear | |
# not! | |
# Do a "gem list" wherever the project is already working | |
# (production?, some colleage machine?). Make a file with this format: | |
# | |
# chronic (0.2.3) | |
# colored (1.1) |
#!/bin/bash | |
# | |
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
# | |
# Must be run with root privileges | |
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5) | |
# | |
export BUILD_DIR="$PWD" |
When /^I drag a tree node somewhere that results in a lot of ajax calls$/ do | |
tree_node = page.find('#tree_node_1') | |
drop_spot = page.find('#drop_spot') | |
delay_capybara do | |
tree_node.drag_to(drop_spot) | |
end | |
end |
#!/bin/bash | |
# | |
# (Above line comes out when placing in Xcode scheme) | |
# | |
API_TOKEN=<TestFlight API token here> | |
TEAM_TOKEN=<TestFlight team token here> | |
SIGNING_IDENTITY="iPhone Distribution: Development Seed" | |
PROVISIONING_PROFILE="${HOME}/Library/MobileDevice/Provisioning Profiles/MapBox Ad Hoc.mobileprovision" | |
#LOG="/tmp/testflight.log" |
#!/bin/sh | |
##3.5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 | |
## | |
## Debian / Linux / Ubuntu / LSB | |
## Startup script for Express / Node.js application with the forever module | |
## | |
## | |
## A modification of "init.d.lsb.ex" by Nicolas Thouvenin | |
## | |
## |
Note: the original location of this article is on my blog, however, it is posted here too for better readability.
In this article, we will see how to use Core Data for accessing your API. We will use the Bandcamp API as our running example. I've only been experimenting with this code for a few days, so there might be mistakes in there.
#!/bin/sh | |
echo "Running..." | |
PROG=$0 | |
RSYNC="/usr/bin/rsync" | |
SCRIPT_MOUNTED='false' | |
MOUNT_VOLUME="/Volumes/Qdownload" | |
SRC="$MOUNT_VOLUME/transmission/completed/" | |
DST="/Users/tom/Dumping Ground/Qnap Downloads" |