This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
WITH table_scans as ( | |
SELECT relid, | |
tables.idx_scan + tables.seq_scan as all_scans, | |
( tables.n_tup_ins + tables.n_tup_upd + tables.n_tup_del ) as writes, | |
pg_relation_size(relid) as table_size | |
FROM pg_stat_user_tables as tables | |
), | |
all_writes as ( | |
SELECT sum(writes) as total_writes | |
FROM table_scans |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
LINT_IGNORES = ['rvm'] | |
namespace :lint do | |
desc "Check puppet module code style." | |
task :ci do | |
begin | |
require 'puppet-lint' | |
rescue LoadError | |
fail 'Cannot load puppet-lint, did you install it?' | |
end |
# hook setup | |
read oldrev newrev refname | |
job="MyJenkinsJob" | |
jenkins_url="http://jenkins/job" | |
jenkins_token="seeeeekrit" | |
# what branch are we building? | |
regex='refs/heads/(.*)' | |
if [[ $refname =~ $regex ]]; then | |
target_branch="${BASH_REMATCH[1]}" |
#!/bin/bash | |
# | |
# parse configuration options from a file in the current repository. | |
# Designed to be invoked from git hook scripts. | |
# | |
# Sample usage: toggle automatic branch building, per-branch | |
# | |
# config file looks like: | |
# BranchName=option1[,option2...] | |
# |