View setHostname.sh
#!/bin/bash
echo '### Setting Hostname ###'
OLD_HOSTNAME=`hostname`
if [[ $OLD_HOSTNAME != "master" || "node" || "etcd" || "ansible" ]]; then
# Change first field here depending on section of UserData for 'master|ectd|node|ansible'
NEW_HOSTNAME=ansible-`hostname | cut -d- -f4,5`
# Set hostname on ec2 instance
hostnamectl set-hostname "$NEW_HOSTNAME"
# Set hostname in /etc/sysconfig/network config
View alarmClock.py
#!/usr/bin/env python
# coded by Brady [r3dact3d]
# set days of week to run alarm in days list
# set song you want to wakeup to in song
# set hour and minute in h, m
# make sure mpg123 is installed on your linux
import time, datetime, os
def alarm(h, m, song):
View nagiosNotifs.py
#!/usr/bin/env python
# written by Brady r3dact3d
#
import sys, os, time
try:
hostList = sys.argv[1]
action = sys.argv[2]
except:
print("[-] Please pass txt file with hostnames and either enable/disable")
View offenderSearch.py
#!/usr/bin/env python
# written by Brady r3dact3d
# put zipcode as argument
#
import bs4 as bs
import requests
from sys import argv
script, zipCode = argv
url = "https://records.txdps.state.tx.us/SexOffender/PublicSite/Application/Search/Results.aspx"
View fortuneTwitBot.py
#!/usr/bin/env python
import tweepy, os
from config import *
# Set up OAuth and integrate with API
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)
api = tweepy.API(auth)
View space.py
#!/usr/bin/env python
# [r3dact3d]
import requests
url = 'http://api.open-notify.org/astros.json'
j = requests.get(url).json()
number = j['number']
people = j['people']
print "=================================="
View ipinfo.py
#!/usr/bin/env python
# coded by brady [r3dact3d]
# limit 1000 per day
import requests
import json
from sys import argv
script, ip = argv
url = 'http://ipinfo.io/' + ip
data = requests.get(url).json()
View freegeoIP.py
#!/usr/bin/env python
# coded by brady [r3dact3d]
# limit is 10,000 per hour
import requests
import json
from sys import argv
script, ip = argv
url = 'http://freegeoip.net/json/' + ip
data = requests.get(url).json()
View geoCodeIP.py
#!/usr/bin/env python
# coded by brady [r3dact3d]
import requests
import json
from sys import argv
script, ip = argv
url = 'http://ip-api.com/json/' + ip
data = requests.get(url).json()
if data['status'] == 'fail':
View translator.py
#!/usr/bin/env python
# written by brady [r3dact3d]
import requests
from sys import argv
argv.pop(0)
s = " "
myText = s.join(argv)
myParams = { 'text' : myText }
langList = 'ermahgerd brooklyn uk2us us2uk morse cockney fudd dolan jive vulcan shakespeare oldenglish chef huttese mandalorian gungan cheunh sith quenya sindarin valyrian dothraki piglatin ferblatin minion valspeak pirate yoda'
print langList