Skip to content

Instantly share code, notes, and snippets.

View k4kfh's full-sized avatar

Hampton k4kfh

View GitHub Profile
@roydq
roydq / ubuntu_unattended_upgrades_gmail.markdown
Last active February 2, 2024 17:01 — forked from dwilkie/ubuntu_unattended_upgrades_gmail.markdown
Unattended upgrades on Ubuntu 14.04 with email notifications

Getting Started

Do yourself a favor and login as root to save yourself some time and headaches:

$ sudo su -

Install unattended-upgrades:

@k4kfh
k4kfh / prototype.js
Last active November 28, 2015 05:49
ZephyrCab prototype Example
prototype: {
"builder": "EMD", //This is displayed to the client and can be anything
"name": "F7-A", //This is also displayed to the client and can be anything
"type": "locomotive", //This must be "locomotive"
"weight": 250000, //Weight of the locomotive in lbs
"maxHP": 1500, //Horsepower of the locomotive
"notchRPM": [300, 362, 425, 487, 550, 613, 675, 738, 800], //This is an array of RPMs for the notch values. Start with idle, end with RUN8, for a total of 9 array items.
"notchMaxSpeeds": [null, 7.5, 15, 22.5, 30, 37.5, 45, 52.5, 60], //This is an array of max speeds for the notch values. Set the first item to null. This is so we can look things up by just feeding the notch into it, but the max speed for IDLE is obviously zero.
"engineRunning": 0, //This is NOT A BOOLEAN! This is a binary value (0 is off, 1 is on). You should set this to 0, sim.js will redefine it as needed.
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 6, 2024 04:11
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@michaellindman
michaellindman / convertToMP3.sh
Last active March 22, 2016 23:05
Convert sound files to mp3 using lame
#!/bin/bash
# loop through files in the currently active directory
for f in *.$1
do
# case statement for arguments (you can convert wav, flac, and ogg to mp3)
case $1 in
wav)
# converts wav files to mp3 using lame
lame -b320 "$f" "${f%.*}".mp3