start new:
tmux
start new with session name:
tmux new -s myname
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| export PS1="\[\e[1;32m\][\u\[\e[1;33m\]@\[\e[1;31m\]\h]\[\e[1;33m\]: \[\e[1;37m\]\w\[\e[1;33m\] \$(parse_git_branch)\n\[\e[1;33m\]-> \[\e[0m\]" |
| [ | |
| {name: 'Afghanistan', code: 'AF'}, | |
| {name: 'Åland Islands', code: 'AX'}, | |
| {name: 'Albania', code: 'AL'}, | |
| {name: 'Algeria', code: 'DZ'}, | |
| {name: 'American Samoa', code: 'AS'}, | |
| {name: 'AndorrA', code: 'AD'}, | |
| {name: 'Angola', code: 'AO'}, | |
| {name: 'Anguilla', code: 'AI'}, | |
| {name: 'Antarctica', code: 'AQ'}, |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = '2' | |
| @script = <<SCRIPT | |
| # Script Configuration | |
| WEBSITENAME="WEBSITE_NAME_HERE" | |
| MYSQL_PASSWORD="MYSQL_ROOT_USER_PASSWORD" |
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master |
| # remap prefix from 'C-b' to 'C-a' | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # reload config file (change file location to your the tmux.conf you want to use) | |
| bind r source-file ~/.tmux.conf | |
| # split panes using | and - | |
| bind | split-window -h |
| import ... | |
| @NgModule({ | |
| ... | |
| providers: [ TitleService ], | |
| }) | |
| export class AppModule { | |
| constructor(titleService: TitleService) { | |
| titleService.init(); | |
| } |
| #!/bin/bash | |
| sudo mount -o remount,size=10G,noatime /tmp | |
| echo "Done. Please use 'df -h' to make sure folder size is increased." |
| .next | |
| out |
| #!/bin/bash | |
| scrot /tmp/screen.png | |
| xwobf -s 11 /tmp/screen.png | |
| i3lock -i /tmp/screen.png | |
| rm /tmp/screen.png |