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/lib/gems/2.5.0/gems/jekyll-3.8.1/exe/jekyll b --watch |
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
From blog folder: | |
./jekyll-post.py "NAME" -D _posts; rename 'y/A-Z/a-z/' _posts/* |
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
rename 'y/A-Z/a-z/' * |
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
curl -s https://repos.fedorapeople.org/repos/thl/kernel-vanilla.repo | sudo tee /etc/yum.repos.d/kernel-vanilla.repo | |
sudo dnf config-manager --set-enabled kernel-vanilla-stable |
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
# Update all the things on Ubuntu | |
alias dup="sudo apt clean all; sudo apt update; sudo apt -y full-upgrade; sudo flatpak update; sudo snap refresh; sudo apt autoremove" | |
# Check primary nvme drive status | |
alias nvmeck='sudo smartctl -a /dev/nvme0' | |
# Connect to my OpenVPN server | |
alias ovpn='sudo openvpn ~/openvpn_cert.ovpn' | |
# Fetch latest ISO for OpenSUSE Tumbleweed | |
alias tumbleweed='wget -N http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso' | |
# Fortune-telling rainbow cow. For fun. | |
fortune | cowsay | lolcat |
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
find . -name '*.zip' -exec mkdir -p "Unzipped/{}" \; | |
find . -name '*.zip' -exec unzip -o -d Unzipped/{}/ {} \; |
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
# echo 1 > /proc/sys/net/ipv4/ip_forward first | |
# 208.x.x.x is the host machine. 192.x.x.x is the guest machine | |
# This routes port 80 to the guest and back. | |
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.x.x.x6:80 | |
iptables -t nat -A POSTROUTING -p tcp -d 192.x.x.x6 --dport 80 -j SNAT --to-source 208.x.x.x | |
# This routes port 2222 on the host to 22 on the guest machine | |
iptables -t nat -A PREROUTING -p tcp --dport 2222 -j DNAT --to-destination 192.x.x.x6:22 | |
iptables -t nat -A POSTROUTING -p tcp -d 192.x.x.x6 --dport 22 -j SNAT --to-source 208.x.x.x |
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
*/1 * * * * su -s /bin/sh root -c 'cd /home/dylanmtaylor.com/public_html/ && /usr/bin/git pull origin master' &> /dev/null | |
*/15 * * * * su -s /bin/sh root -c 'cd /home/fwc.dylanmtaylor.com/public_html/ && /usr/bin/git pull origin master' &> /dev/null | |
00 00 * * * su -s /bin/sh root -c 'cd /home/dylanmtaylor.com/public_html/images/ && sh /home/dylanmtaylor.com/public_html/images/crushall.sh' &> /dev/null |
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
if grep -q 'Autokey' <(echo `gsettings get com.canonical.Unity.Panel systray-whitelist`); then echo "'Autokey' exists in Unity panel whitelist. Nothing to do here."; else echo "Adding 'Autokey' to Unity panel whitelist." && gsettings set com.canonical.Unity.Panel systray-whitelist "`echo \`gsettings get com.canonical.Unity.Panel systray-whitelist | tr -d ]\`,\'Autokey\']`"; fi |
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
//Written by Dylan Taylor | |
//has both a day and night mode built-in | |
//This program is open source software licensed under version 3 of the GNU General Public License. | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.awt.geom.*; | |
import javax.swing.*; | |
public class House extends JFrame { | |