Skip to content

Instantly share code, notes, and snippets.

Micah Walter micahwalter

Block or report user

Report or block micahwalter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tessitura_rest.py
### code to make rest calls to the Tessitura API
import requests
import json
import base64
import os
## Tessitura API
hostName = os.environ['TESSITURA_API']
View emoji.js
const http = require('http');
const path = require('path');
const express = require('express');
const translate = require('moji-translate');
const app = express();
app.use(express.static(path.join(__dirname, '')));
app.set('views', './views')
app.set('view engine', 'pug')
View README-TEMPLATE.md

Project Title

Project description goes here. This should include:

  • Is this project currently being used in production?
  • If not, what was its purpose? Is it an ongoing experiment or deprecated code?

How this Fits

  • What's the role this code plays in the org's ecosystem?

Getting Started

View move-to-lfs.sh
git filter-branch --prune-empty --tree-filter '
git lfs track "*.csv"
git add .gitattributes .gitconfig
for file in $(git ls-files | xargs git check-attr filter | grep "filter: lfs" | sed -r "s/(.*): filter: lfs/\1/"); do
echo "Processing ${file}"
git rm -f --cached ${file}
echo "Adding $file lfs style"
git add ${file}
@micahwalter
micahwalter / gist:45c0202032c8c0d9146972862661b0c8
Created Jul 16, 2016
one-line git command to pull all branches
View gist:45c0202032c8c0d9146972862661b0c8
git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs
View git-lfs-error
micah@ubuntu:~/Data$ git clone git@github.com:cooperhewitt/the-pen-data.git
Cloning into 'the-pen-data'...
remote: Counting objects: 42, done.
remote: Total 42 (delta 0), reused 0 (delta 0), pack-reused 42
Receiving objects: 100% (42/42), 11.93 KiB | 0 bytes/s, done.
Resolving deltas: 100% (17/17), done.
Checking connectivity... done.
Downloading data/pen-collected-items.csv (159.08 MB)
Error downloading object: data/pen-collected-items.csv (f0a5de8f675eb5152d1d79778adb8f92b4d202e05437fcdab409221cbedf2219)
View .emacs
;; micah's .emacs file
;; package manager stuff
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
;; hide menu bar
(menu-bar-mode -1)
;; linum
View ViewController.h
//
// ViewController.h
// Hello AppleTV
//
// Created by Micah Walter on 9/18/15.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
View sync-objects.sh
#!/bin/bash
DATESTRING="$(date -I)"
DATADIR="data/"
DATAFILE="${DATESTRING}_objects.csv"
DUMPFILE="${DATADIR}${DATESTRING}_objects.csv"
AWS_ACCESS_KEY="$(cat aws_access_key)"
AWS_SECRET_ACCESS_KEY="$(cat aws_secret_access_key)"
export PGPASSWORD="$(cat redshift_pass)"
View Rotary Phone Hack Arduino (work in progress)
/*
Rotary Phone Dial Reader
This sketch reads out the number dialed on a rotary phone dial.
The rotary dial has two signals:
1) turns ON when the wheel is turning
2) pulses a count based on the number dialed.
The results are printed to the serial monitor.
You can’t perform that action at this time.