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
THIS_VERSION="9.3.0"; | |
THIS_PLATFORM="linux"; | |
echo "Downloading node.js tar..."; | |
wget https://nodejs.org/dist/v$THIS_VERSION/node-v$THIS_VERSION-$THIS_PLATFORM-x64.tar.xz -O node; | |
echo "Untarring node.js tar 'node'..."; | |
tar xf node; | |
echo "Deleting node.js tar 'node'..."; |
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
for i in $(/usr/bin/find $(pwd) -maxdepth 1 -type d); do | |
if [ $(pwd) != $i ] | |
then | |
cd "${i##*/}"; | |
git remote set-url origin "git@github.com:OrganisationName/${i##*/}.git" | |
git remote -v; | |
cd ..; | |
fi | |
done |
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
echo ".dump" | sqlite3 ~/Library/Messages/chat.db > $(date +"%y-%m-%d").sql |
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
mkdir tmp | |
cd tmp | |
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb -O x.deb | |
ar vx x.deb | |
tar xf data.tar.xz | |
mv usr/local/bin/* ../ | |
cd .. | |
rm -rf tmp |
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
apt-get update | |
apt-get install nodejs -y | |
apt-get install npm -y | |
ln -s /usr/bin/nodejs /usr/bin/node | |
npm install | |
npm install -g grunt-cli | |
npm install forever -g | |
apt-get install ruby -y | |
gem install sass --no-ri --no-rdoc | |
grunt |
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
var as = ""; var s = false; var t; var c = function() { var f = $("#f").contentWindow; var ts = ($(".fbLastActiveTimestamp", f.document).childNodes[0].data == "active now"); var cd = new Date(); var st = cd.getHours() + ":" + cd.getMinutes() + "," + (s ? "online" : "offline"); console.log(st); as += st + "\n"; f.location.reload(); }; var stop = function() { clearInterval(t); }; var start = function() { $("body").insertAdjacentHTML('afterbegin', '<iframe id="f" src="https://m.facebook.com/messages/read/?tid=id.289725077795063"></iframe>'); t = setInterval(c, 60 * 1000); }; start(); |
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
var as = ""; var s = false; var t; var f; var c = function() { f = $("#f").contentWindow; var ts = ($(".fbLastActiveTimestamp", f.document).childNodes[0].data == "active now"); if (s != ts) { s = ts; var cd = new Date(); var st = (s ? "online" : "offline") + "," + cd.getHours() + ":" + cd.getMinutes(); console.log(st); as += st + "\n"; } f.location.reload(); }; var stop = function() { clearInterval(t); }; var start = function() { $("body").insertAdjacentHTML('afterbegin', '<iframe id="f" src="https://m.facebook.com/messages/read/?tid=id.289725077795063"></iframe>'); t = setInterval(c, 30 * 1000); }; start(); |
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
apt-get update | |
apt-get install nodejs -y | |
apt-get install npm -y | |
npm install http-server -g | |
ln -s /usr/bin/nodejs /usr/bin/node | |
echo "Hello, World" > index.html | |
http-server -p 80 |
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
rm /usr/local/bin/subl; | |
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl; |
NewerOlder