Add UglifyJS to the project:
npm install --save-dev uglify-js
Run it through a source file, wich name mangling and compression:
node_modules/uglify-js/bin/uglifyjs input-file.js \Add UglifyJS to the project:
npm install --save-dev uglify-js
Run it through a source file, wich name mangling and compression:
node_modules/uglify-js/bin/uglifyjs input-file.js \| # Download source | |
| cd /usr/local/src/ | |
| wget http://fr2.php.net/get/php-5.5.28.tar.bz2/from/this/mirror --output-document="php-5.5.28.tar.bz2" | |
| # Untar to php-5.5.28/ | |
| tar xjvf php-5.5.28.tar.bz2 | |
| yum install libxml2-devel openssl-devel bzip2-devel curl-devel libjpeg-devel \ | |
| libpng-devel freetype-devel gmp-devel mysql-devel ncurses-devel unixODBC-devel \ |
| #!/bin/sh | |
| PROXY_INTERFACE="Wi-Fi" | |
| PROXY_HOST=127.0.0.1 | |
| PROXY_PORT=1080 | |
| # A host where ssh can login without interaction, with a key-based | |
| # authentication. | |
| SOCKS_PROC_USER="username" | |
| SOCKS_PROC_HOST="example.com" |
| # See: https://coderwall.com/p/dlithw/use-osx-finder-quicklook-to-preview-all-plain-text-files | |
| # download last release from https://github.com/whomwah/qlstephen/downloads | |
| wget https://github.com/downloads/whomwah/qlstephen/QLStephen.qlgenerator.zip | |
| # copy the plugin to /Library/QuickLook/ | |
| unzip QLStephen.qlgenerator.zip | |
| sudo mv QLStephen.qlgenerator /Library/QuickLook/ | |
| # enable text selection |
| #https://gorails.com/setup/ubuntu/14.04 | |
| sudo apt-get update | |
| sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
| sudo apt-get install -y libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
| curl -L https://get.rvm.io | bash -s stable | |
| source ~/.rvm/scripts/rvm | |
| echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
| rvm install 2.3.1 | |
| rvm use 2.3.1 --default |
Installation:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"Once installed, to toggle betwen zsh and bash (default shell in OSX) without uninstalling oh-my-zsh (uninstall_oh_my_zsh), just run the appropriate:
chsh -s /bin/zsh
chsh -s /bin/bash| #!/bin/sh | |
| VERSION=0.8.6 | |
| PLATFORM=darwin | |
| ARCH=x64 | |
| PREFIX="$HOME/node-v$VERSION-$PLATFORM-$ARCH" | |
| mkdir -p "$PREFIX" && \ | |
| curl http://nodejs.org/dist/v$VERSION/node-v$VERSION-$PLATFORM-$ARCH.tar.gz \ | |
| | tar xzvf - --strip-components=1 -C "$PREFIX" |
:w !sudo tee %
| var readline = require('readline'); | |
| var rl = readline.createInterface({ | |
| input: proc.stdout, | |
| terminal: false | |
| }); | |
| rl.on('line', function(line) { | |
| console.log('new line: '+line); | |
| }); |
Add the folllowing lines on /etc/network/interfaces for the appropriate interface (e.g. wlan0).
auto wlan0
dns-nameservers X.X.X.X Y.Y.Y.Y
And run: