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/env bash | |
# | |
# Run various nmap scans on a hostname and log all scans to a single file. | |
# | |
# Alternatively, nmap does support log-output arguments on it's own, but the problem is | |
# grouping various scans that often conflict during the same process, thus requiring | |
# a series of multiple scans and would create multiple logs. | |
# | |
# usage examples: | |
# default scan: |
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 | |
# | |
# /etc/init.d/nvload | |
# | |
# This script was used to ensure all new/existing NVIDIA GPU/CUDA devices | |
# are loaded properly on an AMAX Tesla K20/K20X GPU Clustering platform, | |
# running Red Hat Enterprise Linux (RHEL). | |
# | |
# Author: Sean O'Donnell <sean@seanodonnell.com> | |
# |
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
siege -A "SiegeStressTest/1.0 (pwnd;)" -c 100 -r 100 -v https://somerandomsite.com/ |
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
ab -n 1000 -c 100 -k -H "User-Agent: Kamakazi/1.0 (https://ww2.kamakazi.pilot.io/)" https://some.site.com/ |
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
<?php | |
require_once 'vendor/autoload.php'; | |
use Aws\Credentials\CredentialProvider; | |
use Aws\S3\S3Client; | |
$provider = CredentialProvider::instanceProfile(); | |
$mprovider = CredentialProvider::memoize($provider); | |
$s3 = new S3Client([ |
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/env bash | |
# | |
# There are many custom use cases that require | |
# assigning multiple 'virtual' IP addresses to | |
# a single network interface. | |
# | |
# One case in particular, is for developing web applications | |
# locally on a workstation, to support a project that has multiple | |
# sub-domains. In such a case, you would create virtual IP addresses | |
# to support virtul hosts in apache/nginx. You would then associate the |
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/env bash | |
for i in rc_*; do mv $i ${i/rc_/rc2_}; done |
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/env bash | |
# | |
# This script is a complete hack to work-around a crappy | |
# old Amazon EC2 instance running a custom CentOS AMI that | |
# was NOT provisioned by Amazon AWS engineers. | |
# | |
# This particular (bain of my existence) server uses | |
# Google's DNS servers in the /etc/resolv.conf file, but | |
# wreaks havoc on the PHP web application when trying to | |
# call mysqli_connect, and often times-out or takes far |
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/env bash | |
# install ntp service and sync w/ the pool | |
# why wasn't this done on these old servers. smh | |
yum -y install ntp; | |
chkconfig ntpd on; | |
service ntpd start; | |
date -R; ntpq -p; date -R; | |
ntpdate -q 0.ro.pool.ntp.org 1.ro.pool.ntp.org |
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/env bash | |
# | |
# Restore/Re-Deploy an Amazon RDS (MySQL) Database Instance from a specified snapshot. | |
# | |
# This script is intended to be run on an AWS EC2 instance | |
# within an isolated VPC infrastructure, to restore or re-deploy a | |
# test/staging database instance from a the latest | |
# 'production database' snapshot. | |
# | |
# This script requires the latest aws-cli program. |