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
if [ ! -f "/usr/local/bin/pflogsumm" ]; then | |
cd /tmp | |
wget https://jimsun.linxnet.com/downloads/pflogsumm-1.1.3.tar.gz | |
tar xvf pflogsumm-1.1.3.tar.gz | |
cd pflogsumm-1.1.3/ | |
cp pflogsumm.pl /usr/local/bin/pflogsumm | |
fi | |
cat /var/log/mail.log | pflogsumm "$@" |
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 | |
## STAMPS - @@ VALUES SET LATER | |
NOW=$(date +%y%m%d%H%M) | |
DOW=$(date +"%a") | |
S3="/usr/bin/s3cmd"; | |
SRC="/usr/share/nodejs/sites/" | |
S3DIR="s3://sg-180222/pure/sites/" | |
# /usr/bin/s3cmd sync $SRC $S3DIR |
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 | |
## bash <(curl -Ls https://gist.github.com/diginfo/6e8b19e3cd4d88798296a33768d632ee/raw/) | |
### | |
apt -y update; | |
apt -y install git; | |
mkdir /usr/share/dis; | |
cd /usr/share/dis; | |
git clone https://github.com/diginfo/pure3-bin.git; | |
cd pure3-bin; |
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 | |
## bash <(curl -Ls https://gist.github.com/diginfo/68261e9709eb05046d473f9fc646389f/raw/) | |
### | |
if [ "$#" -lt 2 ]; then | |
echo "keyadd repo path/to/rsa/file" | |
exit 1; | |
fi | |
REPO=$1; |
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
module.exports = {} | |
const mex = module.exports; | |
const cl = console.log; | |
mex.cl = cl; | |
mex._rl = require('readline'); | |
mex._os = require('os'); | |
mex._path = require('path'); | |
mex._fs = require('fs'); |
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 | |
# | |
# bash <(curl -Ls https://gist.github.com/diginfo/73f6eff45a714c856582855c6be4aba0/raw/) | |
# | |
## /etc/fstab | |
## NFS MOUNTS | |
# 192.168.42.35:/mnt/DroboFS/Shares/Public /nfs/drobo/Public nfs auto,_netdev,noatime,nolock,bg,intr,tcp,actimeo=1800 0 0 | |
# 192.168.42.35:/mnt/DroboFS/Shares/FTPusers /nfs/drobo/FTPusers nfs auto,_netdev,noatime,nolock,bg,intr,tcp,actimeo=1800 0 0 | |
# 192.168.42.35:/mnt/DroboFS/Shares/Backups /nfs/drobo/Backups nfs auto,_netdev,noatime,nolock,bg,intr,tcp,actimeo=1800 0 0 |
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 | |
## bash <(curl -Ls https://gist.github.com/diginfo/62fa8ccc4277d80d9bbb4aee89d9e900/raw/) | |
## | |
## Requires private key with repo-name.key:i.e. pure3-bin.key, pure3.key | |
_ROOT="/usr/share/dis"; | |
echo "This will clone the repository into your current folder."; | |
echo "You require a deploy key file in order to proceed."; | |
echo "If you are a DIS ADMIN you can use pure-keygen to generate the keys"; |
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 | |
## bash <(curl -Ls https://gist.github.com/diginfo/f8ff1025d256613913ea20835f921c88/raw/) | |
## | |
apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) \ |
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 | |
# | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi | |
if [[ $# -lt 2 ]]; | |
echo "Usage:" |
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 | |
HOSTNAME="$1" | |
LOGDIR="$HOME/.ufw"; | |
LOGFILE=$LOGDIR/$HOSTNAME | |
if [ ! -d "$LOGDIR" ];then | |
mkdir $LOGDIR | |
fi | |
function _alert { |