Skip to content

Instantly share code, notes, and snippets.

View mattcannon's full-sized avatar

Matt Cannon mattcannon

View GitHub Profile
@mattcannon
mattcannon / add-estimate-labels.sh
Last active February 8, 2019 11:56
Script to add default labels to new repos.
USER=myuser
PASS=mypassword
REPO=myrepo
OTP=123456
curl -u $USER:$PASS --include --request POST --data '{"name":"s:1.hour","color":"0000ff"}' "https://api.github.com/repos/MethodClass/$REPO/labels"
curl -u $USER:$PASS --include --request POST --data '{"name":"s:2.half-day","color":"008800"}' "https://api.github.com/repos/MethodClass/$REPO/labels"
curl -u $USER:$PASS --include --request POST --data '{"name":"s:3.day","color":"eeee00"}' "https://api.github.com/repos/MethodClass/$REPO/labels"
curl -u $USER:$PASS --include --request POST --data '{"name":"s:4.half-week","color":"ffaa00"}' "https://api.github.com/repos/MethodClass/$REPO/labels"
curl -u $USER:$PASS --include --request POST --data '{"name":"s:5.week","color":"ff7700"}' "https://api.github.com/repos/MethodClass/$REPO/labels"
@mattcannon
mattcannon / gulpfile.js
Created November 22, 2014 21:37
working sourcemaps
var gulp = require('gulp'),
sass = require('gulp-sass');
var config = {
sass: {
includePaths: [],
sourceComments: 'map'
}
};
gulp.task('compile-sass', function() {
gulp.src('public/assets/css/*.scss')

Keybase proof

I hereby claim:

  • I am mattcannon on github.
  • I am mattcannon (https://keybase.io/mattcannon) on keybase.
  • I have a public key whose fingerprint is 9DF7 1180 6029 37C2 45A6 52F3 61FB FA71 3311 B98E

To claim this, I am signing this object:

@mattcannon
mattcannon / crontabs in Mavericks
Last active August 29, 2015 13:57
crontabs on mavericks
#to create a default crontab:
sudo touch /etc/crontab
#vi doesn't seem to work with crontab on mavericks, so set nano as the editor
export EDITOR=nano
#to edit the crontab for your user
crontab -e
#save the crontab, by pressing ctrl+x , it will then ask if you want to save the changes - press y to confirm.
@mattcannon
mattcannon / SassMeister-input.scss
Created February 11, 2014 19:27
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// ----
//Service Group Colours
$srv-grp-01-color: #542989;
$srv-grp-02-color: #0079c2;
$srv-grp-03-color: #50b948;
$srv-grp-04-color: #a41984;