Skip to content

Instantly share code, notes, and snippets.

View bgulla's full-sized avatar
🦃
fast and loose is still fast.

Brandon bgulla

🦃
fast and loose is still fast.
  • Virginia
View GitHub Profile
@bgulla
bgulla / gist:ec28e7f9f8653bc6b8dd53dc003a9b07
Created November 29, 2016 03:37
LIRC config file for RGB LED light strips.
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Tue Nov 29 03:27:29 2016
#
# contributed by bgulla
#
# brand: /root/lircd.conf
# model no. of remote control: 5050 LED
@bgulla
bgulla / gist:49ed18b5c27f780733dfdb7b5731fc4e
Last active November 12, 2016 21:07
RaspberryPi Scripts needed to get a successful dev environment setup
#
apt-get update ; apt-get upgrade -y
# Install Docker
sudo apt-get install -y apt-transport-https
wget -q https://packagecloud.io/gpg.key -O - | sudo apt-key add -
echo 'deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ wheezy main' | sudo tee /etc/apt/sources.list.d/hypriot.list
sudo apt-get update
sudo apt-get install -y docker-hypriot
sudo systemctl enable docker
FROM lsiobase/xenial
MAINTAINER bgulla
# package version
ENV PLEX_INSTALL="https://downloads.plex.tv/plex-media-server/1.2.0.2765-2d034d4/plexmediaserver_1.2.0.2765-2d034d4_amd64.deb"
# global environment settings
ENV DEBIAN_FRONTEND="noninteractive"
ENV HOME="/config"
ENV PLEX_DOWNLOAD="https://downloads.plex.tv/plex-media-server"
@bgulla
bgulla / tx.ascii
Created September 12, 2016 13:21
state of texas ascii art
___
| |
| '._ _
| ``` '|
____| \
`-. |
\ _ /
` `\ /`
\ .'`
\ \
@bgulla
bgulla / mantl_dissection.txt
Last active July 19, 2016 22:26
Join me as I try to learn how to deploy Mantl.io via a tool that isn't Ansible
Yum repos
[ciscocloud-rpm]
name=ciscocloud-rpm
baseurl=https://dl.bintray.com/ciscocloud/rpm
gpgcheck=0
enabled=1
@bgulla
bgulla / mm_rest.py
Created July 18, 2016 17:09
Example REST webservice using python-flask
from flask import Flask
from flask import request
import json
app = Flask (__name__)
app.config['PROPOGATE_EXTENSIONS'] = True
@app.route('/')
def hello():
return "Hello World"
@bgulla
bgulla / ps1
Created March 30, 2016 13:03
blue/orange ps1 prompt
export PS1="\[\033[38;5;39m\]\u[\[$(tput sgr0)\]\[\033[38;5;81m\]\h\[$(tput sgr0)\]\[\033[38;5;39m\]]\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;208m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;39m\]>\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"
set -g mouse on
######################
### DESIGN CHANGES ###
######################
# panes
set -g pane-border-fg black
set -g pane-active-border-fg brightred
#!/usr/bin/python
from prettytable import PrettyTable
table = PrettyTable()
def btod(n):
return int(n,2)
hex1="0x62"
hex2="0x12"
multiplier = bin(int(hex1,0))
@bgulla
bgulla / bbb_boot_service_instructions.md
Created January 26, 2016 18:27 — forked from tstellanova/bbb_boot_service_instructions.md
How to setup a service to automatically run a python script when the BeagleBone Black (BBB) reboots. These instructions allow you to setup a python script to automatically start when the BeagleBone (running Angstrom linux with systemd) restarts.

Creating a service to startup at BeagleBone Black boot time:

  • Create a shell script such as /usr/bin/myFancyBash.sh:

      #!/bin/bash
    
      # this could be any runnable code or shell script, really
      /usr/bin/myFancyPython.py 
    

Note that the first line is critical.