Skip to content

Instantly share code, notes, and snippets.

@munroebot
munroebot / keybase.md
Created May 20, 2021 18:50
keybase.md

Keybase proof

I hereby claim:

  • I am munroebot on github.
  • I am munroebot (https://keybase.io/munroebot) on keybase.
  • I have a public key ASAOF-mPK6y9nOyvxPgPzozKM1RS7SegAtM0W1PrgaQ_Mwo

To claim this, I am signing this object:

@munroebot
munroebot / goprofilemodel.py
Last active December 9, 2020 23:23
GoProFileModel class
import math, sys
import json
from goprocam import GoProCamera, constants
# files look like: GH010041.mp4, GH020041.mp4
class GoProFileModel:
def __init__(self, filename):
@munroebot
munroebot / fetch-artifact.sh
Created January 8, 2019 17:09
Nexus Pro Repo, fetch artifact via API
#!/bin/bash
version="1.0.0"
curl -s -o BerylProtosBuild-1.0.HADOOP-SNAPSHOT.war "http://blah.domain.net/nexus/service/local/artifact/maven/content?r=public&g=com.zappos.datascience.beryl&a=BerylProtosBuild&v=${version}&p=jar"
@munroebot
munroebot / maven-version.sh
Created January 8, 2019 17:07
Grab Maven Version from pom.xml
v=`echo '${project.version}' | mvn help:evaluate | grep -v '^[[]'`
@munroebot
munroebot / split-arrays.sh
Created January 8, 2019 17:06
BASH Split / Arrays
IN="[email protected];[email protected]"
arr=(${V//-/ })
@munroebot
munroebot / FireUtility.bat
Created December 1, 2018 03:29
FireUtility.bat
bmunroe@feh MINGW64 ~/Downloads/Updated Utility/Edited Fire Utilitiy - Copy
$ ./FireUtility.bat
AIO Fire Utility
-------------------------------------------------------------------------------- ----
Please type which generation of tablet are you using this script on and press en ter.
4 = 4
5 = 5
6 = 6
7 = 7
Press a key to continue.
@munroebot
munroebot / create.sql
Created April 21, 2016 18:01
Teh SQL
create table shopidentifyer.badges (
badge_serial varchar (255) unique,
stripe_id varchar(255),
badge_status ENUM('ACTIVE','INACTIVE','LOST','BROKEN') DEFAULT 'ACTIVE',
created_on TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
changed_on TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
)
@munroebot
munroebot / EnergyBill.R
Created May 16, 2015 19:40
NV Energy Bill 13 Month Analysis
library(dplyr)
# Read in the data from a comma seperated value file.
data <- read.csv("BillHistory.csv", stringsAsFactors=TRUE,skip=6)
# transform it into a data.table
data <- tbl_df(data)
# print the data table
data
@munroebot
munroebot / gist:09add51aabc095c4455a
Created April 26, 2015 14:56
File Test for assignment
#
# First make sure the datasets are available
#
if (!file.exists(file.path(getwd(),"UCI HAR Dataset/test/X2_test.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/test/y_test.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/test/subject_test.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/train/X_train.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/train/y_train.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/train/subject_train.txt"))) {
@munroebot
munroebot / gist:038cca8aca25db827109
Created April 26, 2015 14:52
File Test for assignment
#
# First make sure the datasets are available
#
if (!file.exists(file.path(getwd(),"UCI HAR Dataset/test/X2_test.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/test/y_test.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/test/subject_test.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/train/X_train.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/train/y_train.txt")) |
!file.exists(file.path(getwd(),"UCI HAR Dataset/train/subject_train.txt"))) {