Skip to content

Instantly share code, notes, and snippets.

View jshbrntt's full-sized avatar
🏠
Working from home

Joshua Barnett jshbrntt

🏠
Working from home
View GitHub Profile
@jshbrntt
jshbrntt / docker-entrypoint.sh
Created September 28, 2017 14:10
Docker - Running multiple commands and logging uniformly
#!/bin/sh
touch /var/log/first.log
touch /var/log/second.log
./first /var/log/first.log 2>&1 | ./second /var/log/second.log 2>&1 | tail -f -n +1 /var/log/first.log /var/log/second.log
import { Model } from "engine/mvc";
import { Signal } from "org/osflash/signals";
import { SoundAS } from "treefortress/sound";
import { TileModel } from "tile";
import { CellModel } from "cell";
import { GDTAssets } from "assets";
class GridModel extends Model {
protected _width: number;
protected _height: number;
@jshbrntt
jshbrntt / generate-ssl.sh
Created May 2, 2017 11:22
Generate self-signed SSL certificate and key for HTTPS server
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
@jshbrntt
jshbrntt / atp217_clips_app.txt
Last active April 20, 2017 12:17
An automatically transcribed discussion on ATP about automatic transcription.
Your transcription for atp217_clips_app.mp3 is now available for download from http://app.speechmatics.com/dashboard
Transcriptions can be downloaded as plain text or in a structured JSON format.
=======================================
SPEAKER: M1
But clips came out today I played with it very very very briefly and it's pretty cool. I like the I don't know what the official term for it is but the transcribe what you're saying as you were saying it feature so you can turn on a like text mode or a little speech bubble. And as you record speech will or your speech will appear on screen. So you know you can hold the record and then as you talk you can make it show the words that you're speaking. I just did that as we were recording as I was saying those words. And it says Honda Accord instead of hold while you record.
SPEAKER: M3
So already going well I mean you know automated transcription is still a very very long way away from being good reliably. Like even you know we you know we can criticize Apple for li
@jshbrntt
jshbrntt / init.lua
Created February 2, 2017 14:27
Hammerspoon - Bind Scroll Wheel Left/Right to Ctrl+Left/Right (move spaces)
doKeyStroke = function(modifiers, character)
local event = require("hs.eventtap").event
event.newKeyEvent(modifiers, string.lower(character), true):post()
event.newKeyEvent(modifiers, string.lower(character), false):post()
end
hs.eventtap.new({hs.eventtap.event.types.scrollWheel}, function(e)
scrollWheelClick = e:getProperty(hs.eventtap.event.properties.scrollWheelEventDeltaAxis2)
if scrollWheelClick > 0 then
doKeyStroke({'ctrl'}, 'left')
@jshbrntt
jshbrntt / macos-bookmarks.md
Last active November 17, 2016 16:39
macOS - Bookmarks for Developers

macOS - Bookmarks for Developers

Package Managers

  • [Homebrew Cask][cask] - “To install, drag this icon…” no more!
  • [Homebrew][brew] - The missing package manager for macOS

Window Managers

  • [Amethyst][amethyst] - A tiling window manager for OS X
  • [kwm][kwm] - Tiling window manager with focus follows mouse for OSX
  • [Spectacle][spectacle] - Move and resize windows with ease
# Docker Shortcuts
alias harpoon='(docker stop $(docker ps -a -q); docker rm -f $(docker ps -a -q))'
alias flense='docker rmi $(docker images | grep "^<none>" | awk "{print $3}")'
function jonah() { docker exec -it $@ /bin/bash ;}
@jshbrntt
jshbrntt / web-designs.md
Created October 18, 2016 08:33
A collection of links and screenshots to examples of web design we like.

Stripe

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
/* jshint node: true */
'use strict';
const path = require('path');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
let config = {};
config.context = path.join(__dirname, 'src');