This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files.exclude": { | |
"**/__pycache__": true, | |
"**/.DS_Store": true, | |
"**/.git": true, | |
"**/.hg": true, | |
"**/.svn": true, | |
"**/CVS": true | |
}, | |
"editor.tabSize": 2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: /opt/dome/server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. | |
### END INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# basic | |
alias la="ls -a" | |
alias ch='cd ~' | |
alias c='clear' | |
alias ..='cd ..;' | |
alias untar='tar -zxvf' | |
alias grep='grep --color=auto' | |
alias sw='telnet towel.blinkenlights.nl' | |
# git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reload config file | |
bind-key r source-file ~/.tmux.conf | |
# Allow scroll automatically | |
# set -g mouse on | |
# https://medium.com/free-code-camp/tmux-in-practice-scrollback-buffer-47d5ffa71c93 | |
# trigger copy mode by with alt-up | |
bind -n M-Up copy-mode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
"""""""""""""""""""""""""""""""""""""""""""""" | |
"Vundle package manager | |
"""""""""""""""""""""""""""""""""""""""""""""" | |
"filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
"Add vundle plugins here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############## | |
$APP=template | |
$LOG=node.log | |
############## | |
$LOGPATH=/var/$APP/log/$LOG | |
touch $LOGPATH | |
tail -f $LOGPATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkill -f "node app.js" │ | |
pkill -f "python3 -u app.py" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP=apptemplate | |
# kill any running instance │ | |
~/$APP/kill.sh │ | |
# setup log ownership | |
sudo chown pi /var/$APP/log │ | |
sudo chown pi /var/$APP/tmp │ | |
touch /var/$APP/log/nod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"" F1 to run the latest | |
nmap <F1> :!~/run.sh<CR><CR> | |
"" F4 to kill | |
nmap <F4> :!~/kill.sh<CR><CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################## │ | |
# session name │ | |
sn=paddle | |
# starting directory | |
main_dir=~ | |
############################## | |
# Start the session and window 0 in │ | |
cd "$main_dir" |
NewerOlder