Changes

Jump to navigation Jump to search
m
Line 45: Line 45:  
TUN0=$(ifconfig | grep -A 1 tun0 | grep inet | awk '{print $2}')
 
TUN0=$(ifconfig | grep -A 1 tun0 | grep inet | awk '{print $2}')
 
alias foxy="ssh -ND 127.0.0.1:1080  -i ~/.ssh/DNC-FKY.pem ubuntu@ec2-52-57-220-220.eu-central-1.compute.amazonaws.com"
 
alias foxy="ssh -ND 127.0.0.1:1080  -i ~/.ssh/DNC-FKY.pem ubuntu@ec2-52-57-220-220.eu-central-1.compute.amazonaws.com"
alias proxy_mossad="ssh -ND 127.0.0.1:1080 mossad@rra.lan"
+
alias proxy_mossad="ssh -ND 127.0.0.1:1080 mossad.rra.lan"
 
alias proxy_vpn="echo 'Opening SOCKS5 @$TUN0:1080' && ssh -ND $TUN0:1080 rafa@localhost"
 
alias proxy_vpn="echo 'Opening SOCKS5 @$TUN0:1080' && ssh -ND $TUN0:1080 rafa@localhost"
 
alias proxy_15="echo 'Opening SOCKS5 @$ETH0:1080' && ssh -ND $BR0:1080 rafa@localhost"
 
alias proxy_15="echo 'Opening SOCKS5 @$ETH0:1080' && ssh -ND $BR0:1080 rafa@localhost"
Line 136: Line 136:  
==Morpheus==
 
==Morpheus==
 
  <nowiki>function tr_move() {
 
  <nowiki>function tr_move() {
            if [ -z $TR_AUTH ]; then
+
              if [ -z $TR_AUTH ]; then
                echo "Must export TR_AUTH=username:password  (leave a space before the comand so it doesn't get recorded at .bash_history"
+
                  echo "Must export TR_AUTH=username:password  (leave a space before the comand so it doesn't get recorded at .bash_history"
            elif [ -z $1 ]; then
+
              elif [ -z $1 ]; then
                echo "Must provide a torrent id"
+
                  echo "Must provide a torrent id"
            else
+
              else
                transmission-remote -n ${TR_AUTH} -t ${1} --move /var/lib/transmission-daemon/downloads/porn/
+
                  transmission-remote -n ${TR_AUTH} -t ${1} --move /var/lib/transmission-daemon/downloads/porn/
            fi
+
              fi
        }
+
          }
       
+
         
        function tr_list() {
+
          function tr_list() {
            if [ -z $TR_AUTH ]; then
+
              if [ -z $TR_AUTH ]; then
                echo "Must export TR_AUTH=username:password  (leave a space before the comand so it doesn't get recorded at .bash_history"
+
                  echo "Must export TR_AUTH=username:password  (leave a space before the comand so it doesn't get recorded at .bash_history"
            else
+
              else
                transmission-remote -n ${TR_AUTH} -l
+
                  transmission-remote -n ${TR_AUTH} -l
            fi
+
              fi
        }
+
          }
       
+
         
        function tr_find() {
+
          function tr_find() {
            if [ -z $TR_AUTH ]; then
+
              if [ -z $TR_AUTH ]; then
                echo "Must export TR_AUTH=username:password  (leave a space before the comand so it doesn't get recorded at .bash_history"
+
                  echo "Must export TR_AUTH=username:password  (leave a space before the comand so it doesn't get recorded at .bash_history"
            elif [ -z "${1}" ]; then
+
              elif [ -z "${1}" ]; then
                echo "Must provide a search string"
+
                  echo "Must provide a search string"
            else
+
              else
                transmission-remote -n ${TR_AUTH} -l | grep -i "${1}"
+
                  transmission-remote -n ${TR_AUTH} -l | grep -i "${1}"
            fi
+
              fi
        }
+
          }
        alias upgrade="sudo apt update && sudo apt upgrade"</nowiki>
+
          alias upgrade="sudo apt update && sudo apt upgrade"</nowiki>
    
==Some usefull alias==
 
==Some usefull alias==
 
  <nowiki>alias h="history" # quick access to command history
 
  <nowiki>alias h="history" # quick access to command history
        alias c="clear" # quick way to clear terminal screen
+
          alias c="clear" # quick way to clear terminal screen
        alias grep="grep —color -n" # colorize matches; show line numbers
+
          alias grep="grep —color -n" # colorize matches; show line numbers
        alias df="df -h" # show free space using human readable units
+
          alias df="df -h" # show free space using human readable units
        alias du="du -sh" # show disk usage using human readable units
+
          alias du="du -sh" # show disk usage using human readable units
        alias sc="source $HOME/.cshrc"
+
          alias sc="source $HOME/.cshrc"
        alias gousb="cd $USBDRIVE_PATH"</nowiki>
+
          alias gousb="cd $USBDRIVE_PATH"</nowiki>

Navigation menu