Skip to content

Instantly share code, notes, and snippets.

View JasonMillward's full-sized avatar
🐝
I may be slow to respond.

Jason JasonMillward

🐝
I may be slow to respond.
View GitHub Profile
@JasonMillward
JasonMillward / importer.sh
Created October 15, 2012 02:28
For cloning individual repos from Bitbucket into Github. Dirty, but it works.
#!/bin/bash
#
# Stupid script for importing Bitbucket changes into Github
# Because seriously, who uses Bitbucket when you have Github?
#
#
# Define the URLs and the paths and the things
GIT_CLONE_URL=""
BIT_CLONE_URL=""
@JasonMillward
JasonMillward / git_svn_bash_prompt.sh
Created October 8, 2012 01:42 — forked from woods/git_svn_bash_prompt.sh
Set color bash prompt according to git/svn branch, and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE:
@JasonMillward
JasonMillward / coffeeButtons.coffee
Created April 14, 2012 07:04
CSS3+jQuery Buttons
$ = jQuery
###
formatBytes function
Takes in bytes as an int, does some maths
Spits out bytes converted to the proper ammount and suffix
###
formatBytes = (bytes) ->
sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']
@JasonMillward
JasonMillward / latlong.pl
Created April 12, 2012 06:28
Perl - Latlong
#!/usr/bin/perl
### THINGS THAT GO AT THE TOP. NOTHING IMPORTANT
use Image::ExifTool qw(:Public);
use warnings;
use strict;
sub ConvertLatLong
{
my $var = shift(@_);
@JasonMillward
JasonMillward / linkFollower.js
Created March 14, 2012 23:42
jQuery link follower (Simulates browsing through links on your website)
/**
* jQuery Link follower
*
*
* Used to simulate browsing a website.
* Can be used in conjunction with Tor to falsify hits and visitors.
*
* Place in header of template and view page in normal browser.
* Watch console for information
*