Skip to content

Instantly share code, notes, and snippets.

BradChesney79 bradchesney79

Block or report user

Report or block bradchesney79

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bradchesney79
bradchesney79 / post_install.sh
Last active Dec 12, 2016 — forked from waleedahmad/post_install.sh
Ubuntu post installation script for installing software of your choice.
View post_install.sh
#!/bin/bash
#Become master of the everything within this host
[ `whoami` = root ] || exec su -c $0 root
#Update and Upgrade
echo "Updating and Upgrading"
apt-get update && sudo apt-get upgrade -y
sudo apt-get install dialog
@bradchesney79
bradchesney79 / iptables_rules.sh
Created Dec 4, 2016 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
View iptables_rules.sh
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@bradchesney79
bradchesney79 / testResults.txt
Created Dec 29, 2015
node-sass output from meandering use
View testResults.txt
brad@E530 should prefix all the commands I ran.
I don't know enough about sass, node-sass, or gulp-sass to know if the output to the stderr of:
brad@E530:~/Desktop/node-sass$ npm test > testResults.txt
is inportant or not. But, I wanted to mention it. (The stderr messages are posted between the command and the tail of the document created below.)
<<abridged yet unformatted barf of stdout>>
brad@E530:~/Desktop$ git clone --recursive git@github.com:bradchesney79/node-sass.git
Cloning into 'node-sass'...
@bradchesney79
bradchesney79 / setup.sh
Created Jul 20, 2015
Debian Jessie Multi-Virtual Host Setup
View setup.sh
#!/bin/bash
HOSTNAME="www"
DOMAIN="rustbeltrebellion.com"
IPV4="45.33.112.226"
IPV6="2600:3c00::f03c:91ff:fe26:42cf"
##### #####
##### CONFIGURE THE HOSTNAME #####
@bradchesney79
bradchesney79 / Minimal commands to set up
Last active Aug 29, 2015
Debian 7 Wheezy Basic Install with SSL
View Minimal commands to set up
# Debian Linux Apache MySQL and PHP with SSL
# http://youtu.be/0bUo7mg2ZFw
# First things first-- update the system.
apt-get update
apt-get upgrade
# add the IP address, the fully qualified domain name, and the machine
# name
@bradchesney79
bradchesney79 / A note
Last active Dec 14, 2015
EDIT: No linebreaks I put into this box while typing persist. Bah.
View A note
Android ZXing Demo
You can download Eclipse from here:
http://developer.android.com/sdk/index.html
From top to bottom in Eclipse.
These are the changes I made to the cw-omnibus/Camera/ZXing project files
https://github.com/commonsguy/cw-omnibus
I did change the names of the package files by right clicking on them-- those changes are reflected in the text below (ex com.launchhouse.demo.zxing.ZXingDemo). The original names of the resources do not match the source material provided here. Right-click to make it so by renaming them in the file hierarchy pane.
@bradchesney79
bradchesney79 / Initial Notes
Last active Dec 12, 2015
Wall-o-text for Debian Wheezy (7.0/testing) Multi-user High Performance Web-server with High Security Features
View Initial Notes
My updated notes follow:
Many thanks to the patient souls in #debian, #php-fpm, and #httpd on Freenode
Many commands and much info stolen from these locations:
http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/
http://www.debian.org/releases/testing/amd64/release-notes/ch-upgrading.en.html#newkernel
https://sites.google.com/site/mydebiansourceslist/
http://linux.justinhartman.com/Setting_up_a_LAMP_Server
http://www.debian-administration.org/articles/349
http://www.lavluda.com/2008/02/02/install-imagemagick-support-to-your-debianubuntu-server/
@bradchesney79
bradchesney79 / Debian Wheezy commands to run for super basic php-fpm
Last active Dec 11, 2015
Minimal commands to set up a working apache 2.2 httpd web server on Debian Wheezy (7.0).
View Debian Wheezy commands to run for super basic php-fpm
apt-get install libapache2-mod-fastcgi apache2-mpm-worker php5-fpm
a2enmod actions
vi /etc/apache2/mods-available/fastcgi.conf
vi /etc/apache2/sites-available/default
vi /etc/php5/fpm/pool.d/www.conf
You can’t perform that action at this time.