Skip to content

Instantly share code, notes, and snippets.

Avatar

Ada Leisner CoffeeFrame

View GitHub Profile
@CoffeeFrame
CoffeeFrame / hostsUpdate.sh
Created Nov 19, 2016
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.
View hostsUpdate.sh
#!/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`
View gist:7cbcfa548f80dd4a96c3
### 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:
@CoffeeFrame
CoffeeFrame / mksh.sh
Created Sep 16, 2014
Bash script quick-starter
View mksh.sh
#!/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"
View rifleburs.pl
#!/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"