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
| sudo apt install gnome-tweak-tool curl htop glances git sky python-requests openjdk-11-jre-headless remmina remmina-plugin-rdp remmina-plugin-rdp unbound transmission-remote-cli gnome-todo feedreader ngrep awscli python3.7 oathtool keychain flac ffmpeg mediainfo secret-tool libsecret-tools ruby-full chrome-gnome-shell gnome-online-accounts mosh | |
| #!/bin/bash | |
| # Fix resolution lost during reboot | |
| # Laptop display | |
| # run on X start | |
| #xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
| #xrandr --addmode Virtual1 "1920x1080_60.00" | |
| #xrandr -s 1920x1080_60.00 | |
| # New external monitor version |
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
| alias p='/usr/bin/python3.7' | |
| alias auth='/usr/bin/oathtool --totp -b <private key> | pbcopy' | |
| alias auth2='/usr/bin/oathtool --totp -b <private key> | pbcopy' | |
| alias btc='curl https://rate.sx/btc' | |
| alias fw='/home/jason/auth.sh' | |
| alias weather='curl -s https://wttr.in/South_Jordan | head -n -2' | |
| alias rr='if [ -f /var/run/reboot-required ]; then echo "reboot required"; else echo "No reboot needed"; fi' | |
| alias gh='/home/jason/get_aws_host.sh' | |
| alias sshbast='fed up di && auth && ssh -A -i ~/.ssh/id_rsa -o VisualHostKey=yes $FED_USER@$FED_HOST' | |
| alias sshbastdi='fed up di && auth && ssh di' |
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
| # Python 2 - Requires: flac, lame | |
| # Usage: python transcode.py 320/V0/V2 inputfolder | |
| # By: TheSingularity | |
| python | |
| import sys, os, shutil | |
| from subprocess import call | |
| convertTo = sys.argv[1] | |
| folderPath = sys.argv[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/bash | |
| SECONDS=0 | |
| CMD=/usr/local/bin/transmission-remote | |
| TR=$(/usr/local/bin/transmission-remote) | |
| # Your announce key for the new tracker (keep secret) | |
| KEY="key" | |
| # Transmission daemon host | |
| HOST="localhost:9091" | |
| # Authentication to transmission-daemon; 1 = True, 0 = False |
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
| [Unit] | |
| Description=Tomcat 8.5 servlet container | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| User=ws | |
| Group=ws |
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 | |
| # mount remote filesystems | |
| HOST='nas1' | |
| OPTS='guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,soft,user,noperm' | |
| LOCAL_PATH='/mnt' | |
| CMD='sudo mount' | |
| DIR=${1} | |
| NC='\e[0m' | |
| WHITE='\e[1;37m' |
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
| { | |
| "alt-speed-down": 50, | |
| "alt-speed-enabled": false, | |
| "alt-speed-time-begin": 540, | |
| "alt-speed-time-day": 127, | |
| "alt-speed-time-enabled": false, | |
| "alt-speed-time-end": 1020, | |
| "alt-speed-up": 50, | |
| "bind-address-ipv4": "192.168.1.53", | |
| "bind-address-ipv6": "::", |
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
| /var/log/transmission/transmission.log { | |
| daily | |
| rotate 7 | |
| delaycompress | |
| compress | |
| notifempty | |
| missingok | |
| postrotate | |
| invoke-rc.d transmission-daemon reload | |
| endscript |
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
| [Unit] | |
| Description=Transmission BitTorrent Daemon | |
| After=network.target | |
| [Service] | |
| Environment=TRANSMISSION_HOME=/home/jason/.config/transmission-daemon/ | |
| User=jason | |
| Type=notify | |
| ExecStart=/usr/bin/transmission-daemon -f --log-debug --logfile /var/log/transmission/transmission.log -g /home/jason/.config/transmission-daemon/ | |
| ExecStop=/bin/kill -s STOP $MAINPID |
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 | |
| clear | |
| sExternalMACALService="http://dns.kittell.net/macaltext.php?address=" | |
| # List all Network ports | |
| NetworkPorts=$(ifconfig -uv | grep '^[a-z0-9]' | awk -F : '{print $1}') | |
| #echo $NetworkPorts | |
| # Function to convert IP Subnet Mask to CIDR |