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 | |
SESSIONNAME="lionel" | |
STARTDIR="/home/augbooth/catkin_ws/src/boothbot" | |
tmux has-session -t apr &> /dev/null | |
# start detached session with session name and directory | |
tmux new-session -s $SESSIONNAME -c $STARTDIR -d | |
# send command/keys to session | |
tmux send-keys -t $SESSIONNAME "roscore" C-m |
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 | |
SESSIONNAME="gs" | |
STARTDIR="/home/augbooth/catkin_ws/src/boothbot" | |
tmux has-session -t apr &> /dev/null | |
# start detached session with session name and directory | |
tmux new-session -s $SESSIONNAME -c $STARTDIR -d | |
# send command/keys to session | |
tmux send-keys -t $SESSIONNAME "roscore" C-m |
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 | |
SESSIONNAME="lionel" | |
STARTDIR="/home/augbooth/catkin_ws/src/boothbot" | |
tmux has-session -t apr &> /dev/null | |
# start detached session with session name and directory | |
tmux new-session -s $SESSIONNAME -c $STARTDIR -d | |
# send command/keys to session | |
tmux send-keys -t $SESSIONNAME "roscore" C-m |
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
# generate keys. Press [ENTER] at every prompt | |
ssh-keygen | |
# add keys | |
curl https://github.com/indra4837.keys >> ~/.ssh/authorized_keys | |
# change to pubkeys only | |
ssh vim /etc/ssh/sshd_config | |
# uncomment and change password authentication |
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
# open gitconfig | |
vim ~/.gitconfig | |
# paste the following inside gitconfig | |
[alias] | |
tree = log --graph --all --pretty=format:'%C(magenta)%h%C(auto)%d %s %C(green)(%cr) %C(bold blue)%an%C(white)/%C(cyan)%cn' | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
parent = "!git show-branch | grep '*' | grep -v \"$(git rev-parse --abbrev-ref HEAD)\" | head -n1 | sed 's/.*\\[\\(.*\\)\\].*/\\1/' | sed 's/[\\^~].*//' #" |
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
#! /usr/bin/env bash | |
sudo vim /etc/ssh/ssh_config | |
# Uncomment and change the following lines | |
ForwardX11 yes | |
ForwardX11Trusted yes | |
sudo vim /etc/ssh/sshd_config |