Skip to content

Instantly share code, notes, and snippets.

View jatkins's full-sized avatar

Jess Atkins jatkins

View GitHub Profile
switch switch0 {
mtu 1500
switch-port {
interface eth1 {
vlan {
pvid 1
vid 999
}
}
interface eth2 {
// This code was writen for a Grad-Students Art Project at ETSU
// The concept for the project was a set of motion sencors connected
// to an arduino would trigger a change of LEDs
//
// Date: 2014-09-15
// Author: Jacob Atkins (http://jatkins.us
// Writen For: Ricky Bump (http://www.rickeybump.com/)
//
// EDIT AS NEEDED
int pirPin[] = {5,6,7,8,9,10}; // Pins that the PIR Sensors are connected to
@jatkins
jatkins / compile.rb
Last active June 13, 2018 16:40
UBNT Camera Grab
require 'net/http'
require 'uri'
require 'json'
require 'fileutils'
path = "/home/cam/" # Location of files
prefix = "cam1" # File name prefix
############################################################################################################
@jatkins
jatkins / wow
Last active February 10, 2017 16:44
RAID 10 - Build
root@rick:/data/VMS# time sh -c "dd if=/dev/zero of=ddfile bs=8k count=250000 && sync"; rm ddfile
250000+0 records in
250000+0 records out
2048000000 bytes (2.0 GB) copied, 4.50179 s, 455 MB/s
real 0m13.294s
user 0m0.068s
sys 0m1.532s
//Name: square cube charted
//Copyleft: Jacob Atkins 2006
//Author: Jacob Atkins
//Date: 11/10/06 09:56
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
@jatkins
jatkins / test.sh
Created September 18, 2015 05:03
timelapse
mencoder -nosound -ovc copy -o 26a402322190ba0b90dc91a2ce3d26e1add1f32a_raw.mkv -mf type=jpeg:fps=15 mf://@stills.txt
#!/bin/bash
# Add keys for external APT sources
wget -O- http://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/jessie/apt/pub.key | apt-key add -
wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add -
# Add external APT source list
echo deb http://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.3/Debian/jessie/apt jessie main > /etc/apt/sources.list.d/gluster.list
echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list

Please publicly post the following Gist, and name it keybase.md:

Keybase proof

I hereby claim:

  • I am jatkins on github.
  • I am jatkins (https://keybase.io/jatkins) on keybase.
  • I have a public key whose fingerprint is 2443 D04C ED3B 6E23 F567 595B 1101 21A9 02F1 ED4D
@jatkins
jatkins / mask.rb
Created September 12, 2014 20:54
OCR
#!/usr/local/bin/ruby
require 'fileutils'
PATH="/mnt/data/working/old_format"
COLORS=["green", "yellow", "red", "blue", "turquoise1", "DarkBlue", "DeepPink", "pink", "purple", "crimson"]
sections = File.open("#{PATH}/../master_old.uzn").read.split("\n")
c = 0
boxes = ""
$(document).ready(initPage);
var url = "http://namai.timesdigitalgroup.com/api/v1/";
var host = "http://namai.timesdigitalgroup.com";
$(window).load(function() {
initImages();
initAnimateLogo();
});
function initNav() {
var effectBox;