View show-me-rita.sh
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
# ./show-me-rita.sh $DB | |
DB=$1 | |
COMMANDS="beacons beacons-fqdn exploded-dns long-connections strobes useragents" | |
for SHOWCOMMAND in $COMMANDS | |
do | |
echo "exporting show-$SHOWCOMMAND to $SHOWCOMMAND-$DB.txt" | |
docker-compose run --rm rita show-$SHOWCOMMAND $DB > $SHOWCOMMAND-$DB.txt | |
done | |
View uptime-kuma-docker-compose.yml
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
# Simple docker-compose.yml | |
# You can change your port or volume location | |
version: '3.3' | |
services: | |
uptime-kuma: | |
image: louislam/uptime-kuma:1 | |
container_name: uptime-kuma | |
volumes: |
View 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
############################################################################## | |
# 01. Shell | |
############################################################################## | |
function __setprompt | |
{ | |
local LAST_COMMAND=$? # Must come first! | |
# Define colors | |
local LIGHTGRAY="\033[0;37m" | |
local WHITE="\033[1;37m" |
View effPasswordGen.py
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
import sys | |
import argparse | |
import random | |
import re | |
argparser = argparse.ArgumentParser( | |
description='Arguments that may be parsed.', epilog="Use good passwords") | |
argparser.add_argument('--words', default=5, type=int, | |
help='Number of words to return. e.g. --words 5 (default)') | |
argparser.add_argument('--filename', default='eff_large_wordlist.txt', type=str, |
View check_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
#!/usr/bin/perl -w | |
# | |
# check_ssl_certificate | |
# Nagios script to check ssl certificate expirations | |
# | |
# Copyright (c) 2006-2008 David Alden <alden@math.ohio-state.edu> | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 |
View check_file_size.py
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
import argparse,os | |
#Return OK, Warning, or Critical for nagios to parse. | |
argparser = argparse.ArgumentParser(description='Nagios script to check file size with human readable input and output (in python). Similar to ./check_files.pl -F file.txt -s 5000000,10000000',epilog="Thanks, Hope you like it. -Ryan") | |
argparser.add_argument('--missingfileok','-m',action='store_true',help='If the file does not exist return OK.') | |
argparser.add_argument('--file','-f',type=str,required=True,help='Pass in full path and file name i.e. --file /test/123/filename.txt ') | |
argparser.add_argument('--critical','-c',type=str,required=True,help='K,M, or G, defaults to bytes') | |
argparser.add_argument('--warning','-w',type=str,required=True,help='K,M, or G, defaults to bytes') | |
args = argparser.parse_args() | |
suffixes = ['K', 'M', 'G', 'T'] |
View .screenrc.prettyping
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
startup_message off | |
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string "%{.bW}%-w%{..G}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a" | |
screen -t host0 0 /home/user/bin/prettyping host0 | |
screen -t host1 1 /home/user/bin/prettyping host1 | |
screen -t host2 2 /home/user/bin/prettyping host2 | |
screen -t host3 3 /home/user/bin/prettyping host3 | |
screen -t host4 4 /home/user/bin/prettyping host4 |
View .screenrc
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
startup_message off | |
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string "%{..B}%n %t %=%{..B} %H %{..B} %m/%d %C%a" | |
defscrollback 30000 | |
screen -t bash0 0 | |
screen -t bash1 1 | |
screen -t pypthon 2 python |
View gist:f850f734d68ab98e7059
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
#Tried this, It did not work: | |
# Put at bottom of /etc/sysctl.conf: | |
net.ipv6.conf.all.disable_ipv6 = 1 | |
net.ipv6.conf.default.disable_ipv6 = 1 | |
net.ipv6.conf.lo.disable_ipv6 = 1 | |
# Then run: | |
sudo sysctl -p |
View Grep History Function .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
# Add to ~/.bashrc, ~/.profile, or similar | |
# Usage: | |
# $gh nano | |
# Returns: | |
# 50 nano .bashrc | |
function gh { history | grep $1; } |
NewerOlder