Skip to content

Instantly share code, notes, and snippets.

Avatar

BradChesney79 bradchesney79

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 / Debian Wheezy commands to run for super basic php-fpm
Last active Nov 12, 2019
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
@bradchesney79
bradchesney79 / 20200210-home-assistant-clepy-notes.txt
Created Feb 11, 2020
20200210 Home Assisttant CLEPy Demo Talk
View 20200210-home-assistant-clepy-notes.txt
Home Assistant Demo
Hi, my name is Brad.
When someone said, "I have a nephew that does websites." or "I know a guy that could hook that thing up." That was and still is me. Sorry about that.
At the ripe age of 16, I got B's or better in high school so I got to go to college for Information Systems and my insignificant remaining High School education requirements.
I worked in construction to pay the bills for a spell when the Department of Education stopped footing my post secondary education bills.
I graduated just in time for the huge recession and bubble bursting when nobody was hiring and I was competing for entry level jobs against people with decades of experience. Not great.
I became a marine mechanic installing all kinds of weird analog equipment, on boats... Not marine as in military, marine as in watercraft. Radar, sonar, motors, auxillary systems...
I did wind up getting back into development. A lot of PHP and jQuery.
But, I am "fixing stuff" legacy. And I found my way into an Instrumentation Depa
@bradchesney79
bradchesney79 / post_install.sh
Last active Mar 11, 2021 — 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 / Dockerfile
Created May 24, 2021 — forked from lsena/Dockerfile
Python Dockerfile
View Dockerfile
# using ubuntu LTS version
FROM ubuntu:20.04 AS builder-image
# avoid stuck build due to user prompt
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install --no-install-recommends -y python3.9 python3.9-dev python3.9-venv python3-pip python3-wheel build-essential && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# create and activate virtual environment