This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#To install: add to .git/hooks/pre-commit file | |
# Redirect output to stderr. | |
exec 1>&2 | |
# enable user input | |
exec < /dev/tty | |
regexp='^\+.*console\.log(' | |
# CHECK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This requires nodejs to run | |
install | |
npm install terminal-kit | |
npm install superagent | |
run | |
node axidraw-manual-control.js | |
Keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mm: 15px; | |
@lm: 30px; | |
@xlm: @mm*5; | |
.mmt { | |
margin-top: @mm !important; | |
} | |
.mmr { | |
margin-right: @mm !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /Users/YOURUSER/Desktop | |
#get latest screenshot (change Captura de ecr to whatever your mac prefixes your screenshot filenames) | |
file=$(ls | grep "Captura de ecr" | tail -n1) | |
now=$(date +%s) | |
#copy to your server on a web accessible address | |
scp "$file" YOURSERVER:/SOME/WEB/ACCESSIBLE/ADDRESS/$now.png | |
#output link for sharing | |
echo "url: http://YOURSERVER/THE/PATH/$now.png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#you'll need xsend.py script from http://xmpppy.sourceforge.net/examples/xsend.py . it's easy enough to get the dependencies | |
#/etc/pam.d/sshd | |
session optional pam_exec.so seteuid /home/YOURUSER/sshlogincmd.sh | |
#~/sshlogincmd.sh | |
#!/bin/bash | |
if [ $PAM_TYPE = "open_session" ]; then | |
/usr/bin/python /home/YOURUSER/xsend/xsend.py [email protected] user $PAM_USER \($PAM_RHOST\) $PAM_TYPE logged in on $HOSTNAME & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).on('load', function() { | |
var el = 'img'; | |
getElSizes(el); | |
$(window).on('resize orientationChanged', function() { | |
$('.elSize').remove(); | |
getElSizes(el); | |
}); | |
}); | |
var getElSizes = function(el){ |