Skip to content

Instantly share code, notes, and snippets.

Jamie Wilkinson jamiew

Block or report user

Report or block jamiew

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View resilioScreenshot.py
#!/usr/bin/env python
import sys
import os
import subprocess
from datetime import date
import random
import string
year = str(date.today().year)
@jamiew
jamiew / brew-sync.sh
Created Jan 8, 2016 — forked from witt3rd/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox (including casks)
View brew-sync.sh
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@witt3rd
witt3rd / brew-sync.sh
Last active May 26, 2019 — forked from jpawlowski/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox
View brew-sync.sh
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@larsyencken
larsyencken / fetch_and_combine.py
Created Nov 15, 2012
Aggregating CloudFront logs
View fetch_and_combine.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# fetch_and_combine.py
#
"""
Scans CloudFront logs in an S3 bucket for any that are new. Combines log files
into a single local file per hour. If logs for multiple CloudFront
distributions are present, combines them all.
@ndbroadbent
ndbroadbent / deploy.rake
Created Sep 28, 2012
Rake task for precompiling assets locally before deploying to Heroku
View deploy.rake
require 'fileutils'
# Warning: The following deploy task will completely overwrite whatever is currently deployed to Heroku.
# The deploy branch is rebased onto master, so the push needs to be forced.
desc "Deploy app to Heroku after precompiling assets"
task :deploy do
deploy_branch = 'heroku'
remote = 'heroku'
deploy_repo_dir = "tmp/heroku_deploy"
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active Jul 22, 2019
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
View osx-for-hackers.sh
#!/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
@shunchu
shunchu / convert-seconds-into-hh-mm-ss-in-ruby.rb
Created Jul 25, 2012
Convert seconds into HH:MM:SS in Ruby
View convert-seconds-into-hh-mm-ss-in-ruby.rb
t = 236 # seconds
Time.at(t).utc.strftime("%H:%M:%S")
=> "00:03:56"
# Reference
# http://stackoverflow.com/questions/3963930/ruby-rails-how-to-convert-seconds-to-time
@apeckham
apeckham / gist:2886678
Created Jun 7, 2012
run Handbrake on a batch of files, listed as arguments
View gist:2886678
#!/bin/sh -e
for i in "$@"; do
HandBrakeCLI -i "$i" -o "${i%.*}-ipad.mp4" --preset="iPad"
done
@kylemcdonald
kylemcdonald / scratchml.xml
Created Jan 22, 2012 — forked from jamiew/scratchml.xml
ScratchML draft spec v3
View scratchml.xml
<sml>
<!--
# SCRATCH MARKUP LANGUAGE, WORKING DRAFT
http://scratchml.com
* version -- minor versions for small changes, major for incompatibilities
* info -- general file metadata: author info, client info etc.
* turntable - hardware metadata
* mixer -- hardware metadata
@apeckham
apeckham / .gitignore
Created Jan 18, 2012
node duplicating proxy
View .gitignore
node_modules
You can’t perform that action at this time.