Skip to content

Instantly share code, notes, and snippets.

View benfairless's full-sized avatar

Ben Fairless benfairless

View GitHub Profile
@benfairless
benfairless / SETUP.sh
Last active March 7, 2024 20:28
Fedora development environment setup
#!/usr/bin/env bash
# Sets up a workstation environment with all the tools necessary to get crackin!
NAME='Fedora development setup'
VERSION='0.5.5'
AUTHOR='Ben Fairless'
################################################################################
#################################### CHECKS ####################################
################################################################################
@benfairless
benfairless / pretty_output.sh
Last active August 29, 2015 14:15
Pretty bash output
# Purely cosmetic function to prettify output
# Set OUTPUT_LABEL to change the label
# Supports ERROR, SUCCESS, and WARN as arguments
output() {
local label=${OUTPUT_LABEL:-$0}
local timestamp=$(date +%H:%M)
local colour='\033[34m' # Blue
local reset='\033[0m' # Standard
case $1 in
ERROR) local colour='\033[31m' ;; # Red
@benfairless
benfairless / kiosk.py
Last active May 15, 2021 15:45
Python GTK kiosk web browser
#!/usr/bin/env python
import pygtk
import gtk
import webkit
import sys
class Browser:
def __init__(self):