As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| function flask-boilerplate-tmux | |
| { | |
| # https://github.com/swaroopch/flask-boilerplate | |
| BASE="$HOME/code/flask-boilerplate" | |
| cd $BASE | |
| tmux start-server | |
| tmux new-session -d -s flaskboilerplate -n model |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
| import javax.crypto.spec.SecretKeySpec | |
| import javax.crypto.Cipher | |
| import org.apache.commons.codec.binary.Base64 | |
| def encrypt(encrypt,en_key) { | |
| if(encrypt.size() % 8 != 0){ //not a multiple of 8 | |
| byte[] padded = new byte[encrypt.length + 8 - (encrypt.length % 8)]; | |
| //copy the old array into it |
| #!/bin/bash | |
| # Adicione um novo remote; pode chamá-lo de "upstream": | |
| git remote add upstream https://github.com/usuario/projeto.git | |
| # Obtenha todos os branches deste novo remote, | |
| # como o upstream/master por exemplo: | |
| git fetch upstream |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # THIS DOCKERFILE TRIES TO COMPILE CURL/OPENSSL FOR ANDROID | |
| # | |
| # 5 july 2015 | |
| # | |
| # More detals could be found here: | |
| # http://vitiy.info/dockerfile-example-to-compile-libcurl-for-android-inside-docker-container/ | |
| FROM ubuntu | |
| MAINTAINER Victor Laskin "[email protected]" |
| # This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
| # See https://www.byte.nl/blog/magento-cacheleak-issue | |
| # !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!! | |
| user app; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { |