Skip to content

Instantly share code, notes, and snippets.

View bradchesney79's full-sized avatar

BradChesney79 bradchesney79

View GitHub Profile
bradchesney79 / Dockerfile
Created May 24, 2021 12:07 — forked from lsena/Dockerfile
Python 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
bradchesney79 / 20200210-home-assistant-clepy-notes.txt
Created February 11, 2020 01:06
20200210 Home Assisttant CLEPy Demo Talk
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 /
Last active March 11, 2021 04:48 — forked from waleedahmad/
Ubuntu post installation script for installing software of your choice.
#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 /
Created December 4, 2016 23:25 — forked from virtualstaticvoid/
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# 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 / testResults.txt
Created December 29, 2015 16:02
node-sass output from meandering use
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
Cloning into 'node-sass'...
bradchesney79 /
Created July 20, 2015 02:17
Debian Jessie Multi-Virtual Host Setup
##### #####
bradchesney79 / Minimal commands to set up
Last active August 29, 2015 14:09
Debian 7 Wheezy Basic Install with SSL
# Debian Linux Apache MySQL and PHP with SSL
# 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 / A note
Last active December 14, 2015 01:19
EDIT: No linebreaks I put into this box while typing persist. Bah.
Android ZXing Demo
You can download Eclipse from here:
From top to bottom in Eclipse.
These are the changes I made to the cw-omnibus/Camera/ZXing project files
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 / Initial Notes
Last active December 12, 2015 00:48
Wall-o-text for Debian Wheezy (7.0/testing) Multi-user High Performance Web-server with High Security Features
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:
bradchesney79 / Debian Wheezy commands to run for super basic php-fpm
Last active November 12, 2019 23:11
Minimal commands to set up a working apache 2.2 httpd web server on Debian Wheezy (7.0).
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