This file contains 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
(function (window) { | |
function _registerEvent(target, eventType, cb) { | |
if (target.addEventListener) { | |
target.addEventListener(eventType, cb); | |
return { | |
remove: function () { | |
target.removeEventListener(eventType, cb); | |
} | |
}; |
This file contains 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
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
This file contains 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
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
This file contains 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
touch script | |
chmod 777 script | |
nano script | |
Put this to script “ | |
#!/bin/bash | |
export PATH="/usr/local/bin:/usr/bin:/bin" | |
cd `dirname $0` | |
exec "$@" | |
“ | |
env EDITOR=nano crontab -e |