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
private string getShortcutPath() | |
{ | |
string startupPath = Environment.GetFolderPath(Environment.SpecialFolder.Startup); | |
return System.IO.Path.Combine(startupPath, "myApp.lnk"); | |
} | |
private void createStartupShortcut() | |
{ | |
WshShell shell = new WshShell(); | |
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(getShortcutPath()); |
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
# options | |
MAX_CAMS = 4 | |
WIDTH_PIXELS = 1280 | |
HEIGHT_PIXELS = 720 | |
VIDEO_FORMAT = 'MJPG' | |
# connect to all available webcams | |
cams = [] | |
for i in range(0, MAX_CAMS): | |
next_cam = cv2.VideoCapture(i) |
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 │ | |
│ | |
bind-key J resize-pane -D 20 │ | |
bind-key K resize-pane - |
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" |
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
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
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=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
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
# 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 |
OlderNewer