This file contains 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 | |
iatest=$(expr index "$-" i) | |
####################################################### | |
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
####################################################### | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc |
This file contains 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 | |
# https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04 | |
# Download the Let’s Encrypt Client | |
cd /usr/local/sbin | |
sudo wget https://dl.eff.org/certbot-auto | |
sudo chmod a+x /usr/local/sbin/certbot-auto | |
# Set Up the SSL Certificate |
This file contains 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 OFF | |
SET "dgFolder=%UserProfile%\.DataGrip2016.1" | |
SET "evilFile=%dgFolder%\config\eval\DataGrip2.evaluation.key" | |
SET "evilBakFile=%dgFolder%\config\eval\DataGrip2.evaluation.key.bak" | |
echo exorcising evil spirit in key | |
if exist "%evilFile%" ( | |
move /y "%evilFile%" "%evilBakFile%" | |
) else ( |
This file contains 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 | |
# UFW blocks for Asian countries except Japan | |
# Based on http://www.wizcrafts.net/chinese-iptables-blocklist.html | |
# https://www.ip2location.com/free/visitor-blocker | |
# Cambodia (KH) | |
ufw deny from 114.134.184.0/21 | |
# Chinese (CN) IP addresses follow: | |
ufw deny from 1.68.0.0/14 | |
ufw deny from 1.80.0.0/13 |