Skip to content

Instantly share code, notes, and snippets.

View AdaFrame's full-sized avatar

Ada AdaFrame

View GitHub Profile
@AdaFrame
AdaFrame / hostsUpdate.sh
Created November 19, 2016 08:47
Simple shell script that updates the /etc/hosts file with the newest version from someonewhocares.org/hosts, a hosts file configuration that redirects the URLs of many unwanted sites back to the localhost interface.
#!/bin/bash
## CoffeeFrame
## Coffeeframe(a)linux.com
## Update /etc/hosts file with version from someonewhocares.org/hosts/hosts and backs up old hosts file
## WARNING -- As of 2016-11-19 someonewhocares.org does not provide a valid SSL/TLS certificate, meaning the hosts file is retrieved over an unencrypted connection. This method is vulnerable to Man-in-the-Middle attacks, allowing an intermediary attacker to modify the hosts file as they see fit. For example, an attacker modify or add a line redirecting www.bankofamerica.com to a site designed to harvest bank credentials. Use at your own risk.
## I recommend backing up your current /etc/hosts file before running this script for the first time.
TEMPHOSTS=`mktemp -p /var/ tempHosts.XXXXXXX`
### Keybase proof
I hereby claim:
* I am coffeeframe on github.
* I am coffeeframe (https://keybase.io/coffeeframe) on keybase.
* I have a public key whose fingerprint is 5355 6D6A E479 4E27 5435 0E8D F25E 301C 460C 3055
To claim this, I am signing this object:
@AdaFrame
AdaFrame / mksh.sh
Created September 16, 2014 18:08
Bash script quick-starter
#!/bin/bash
#CoffeeFrame
#Generates Bash script file, sets permissions and generates boilerplate
#INPUT name of desired script file, similar to touch.
SCRIPT="$1.sh"
CODER=$USER #Default
BOILERPLATE="#!/bin/bash\n#$CODER"
@AdaFrame
AdaFrame / rifleburs.pl
Last active August 29, 2015 13:58
Rifle Burs
#!/usr/bin/perl
#CoffeeFrame
#Rifle Burs (Original Mix) - GMCFOSHO
#http://youtu.be/BrU_ef7DQgs
for($i = 0; $i < 3; $i++){
print "burs\n";
sleep(1);#Seconds
}
print "swag\n"