As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/sh | |
| # Setup a work space called `work` with four windows | |
| session="work" | |
| # set up tmux | |
| tmux start-server | |
| # create a new tmux session with <NAME> |
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/text/encoding/charmap" | |
| ) | |
| func main() { | |
| for i := 0; i <= 255; i++ { | |
| charnum := uint8(i) |
| <?php | |
| /* | |
| * /path/to/migrations/directory/Version20121011141021.php | |
| */ | |
| namespace ExampleMigrations; | |
| use Doctrine\DBAL\Migrations\AbstractMigration; | |
| use Doctrine\DBAL\Schema\Schema; | |
| class Version20121011141021 extends AbstractMigration |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| ## Install Golang 1.10 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS) | |
| ## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html | |
| ## Run as root (sudo su) | |
| ## Thank's @geosoft1 | @gwmoura | |
| GO_URL="https://storage.googleapis.com/golang" | |
| GO_VERSION=${1:-"1.10"} | |
| GO_FILE="go$GO_VERSION.linux-amd64.tar.gz" |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)