start new:
tmux
start new with session name:
tmux new -s myname
| <?php | |
| /** | |
| * @author @GabrielJMJ /twitter | |
| * @description Abstract class to define a interface of a converter | |
| * @link https://gist.github.com/GabrielJMJ/6977968 Gist on GitHub | |
| **/ | |
| abstract class Converter{ | |
| protected $valueWithCurrency; | |
| protected $toCurrency; |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| <?php | |
| # Fill our vars and run on cli | |
| # $ php -f db-connect-test.php | |
| $dbname = 'name'; | |
| $dbuser = 'user'; | |
| $dbpass = 'pass'; | |
| $dbhost = 'host'; | |
| $connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); |