Skip to content

Instantly share code, notes, and snippets.

[alias]
fixlock = ! git reset HEAD -- composer.lock && git checkout -- composer.lock && composer u
cleanup = ! git branch --merged | grep -vE '^(\\*|\\s*master\\s*$)' | xargs -n 1 git branc
up = ! git fetch --all --prune && git rebase && git cleanup¬
undo = ! git reset ^HEAD

Keybase proof

I hereby claim:

  • I am ameech on github.
  • I am ameech (https://keybase.io/ameech) on keybase.
  • I have a public key whose fingerprint is 7BE0 8E64 0932 8D1B 5720 2294 79E0 8FC2 26ED AF00

To claim this, I am signing this object:

@ameech
ameech / won
Created June 25, 2015 15:22
Post to WorkingOn from CLI
#!/usr/bin/env ruby
require 'net/http'
# Check if token is set
unless ENV['WON_TOKEN']
abort('ERROR: Missing working on token')
end
uri = URI("https://api.workingon.co/hooks/incoming?token=#{ENV['WON_TOKEN']}")
@ameech
ameech / Delete comments on Reddit account
Created February 5, 2014 15:39
Delete comments on Reddit account
jQuery('.comment').each(function() {
var uh = jQuery('input[name="uh"]').val();
var fullName = $(this).data('fullname');
console.log(uh, fullName);
jQuery.post( "http://www.reddit.com/api/del", {
id: fullName,
executed: 'deleted',
uh: uh,
renderstyle: 'html'