This is for Mac OS X and requires npm.
- Open a terminal
- Type
bitly http://www.somewebsite.com/needs/to/be/shortened/
The shortened link is now in your clipboard. Paste the shortened link wherever you need to!
Installation:
PLAY [nship] ****************************************************************** | |
GATHERING FACTS *************************************************************** | |
<127.0.0.1> ESTABLISH CONNECTION FOR USER: joemccann | |
<127.0.0.1> REMOTE_MODULE setup | |
<127.0.0.1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/Users/joemccann/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'StrictHostKeyChecking=no', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', '127.0.0.1', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1425681970.52-168315940879894 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1425681970.52-168315940879894 && echo $HOME/.ansible/tmp/ansible-tmp-1425681970.52-168315940879894'"] | |
fatal: [joe-mac-air] => SSH encountered an unknown error. The output was: | |
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 | |
debug1: |
(function ($) { | |
$.event.special.textchange = { | |
setup: function (data, namespaces) { | |
$(this).bind('keyup', $.event.special.textchange.handler); | |
$(this).bind('cut paste input', $.event.special.textchange.delayedHandler); | |
}, | |
teardown: function (namespaces) { |
#!/usr/bin/python2.4 | |
import httplib, urllib, sys | |
# ('code_url', sys.argv[1]) if we wanted to actually pass in a value from command line -> say u wanted to compress a different file... | |
params = urllib.urlencode([ | |
('code_url', 'http://github.com/getify/LABjs/raw/master/LAB.src.js'), | |
('compilation_level', 'SIMPLE_OPTIMIZATIONS'), | |
('output_format', 'text'), | |
('output_info', 'compiled_code'), |
#!/usr/bin/python2.4 | |
import httplib, urllib, sys | |
twitter_handle = 'joemccann' | |
params = urllib.urlencode([ | |
('screen_name', twitter_handle) | |
]) |
function coda | |
{ | |
codaPath='/Applications/Coda.app' | |
open -a $codaPath $1 | |
} |
svn st | grep "^?" | awk '{ print $2}' | while read f; do svn add "$f"; done |
android update project -p ./ |
This is for Mac OS X and requires npm.
bitly http://www.somewebsite.com/needs/to/be/shortened/
The shortened link is now in your clipboard. Paste the shortened link wherever you need to!
Installation:
for i in `git status | grep deleted | awk '{print $3}'`; do git rm $i; done |
// http://ralphwhitbeck.com/CommentView,guid,cd8e241c-11d1-43ff-9557-70fab698ea1f.aspx | |
String.prototype.linkify = function() { | |
return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/, function(m) { | |
return m.link(m); | |
}); | |
}; | |
String.prototype.atify = function() { | |
return this.replace(/@[\w]+/g, function(m) { |