Skip to content

Instantly share code, notes, and snippets.

Joshua Barnett synthecypher

Block or report user

Report or block synthecypher

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 keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "shift+cmd+]",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "shift+cmd+[",
"command": "workbench.action.terminal.focusPrevious",
View settings.json
{
"html.format.wrapAttributes": "force",
"editor.tabSize": 2,
"editor.renderWhitespace": "all",
"terminal.integrated.fontFamily": "Meslo LG S DZ for Powerline",
"files.associations": {
"Dockerfile*": "dockerfile"
},
"terminal.integrated.scrollback": 5000,
"vsicons.dontShowNewVersionMessage": true,
View macos-setup.md

macOS Fixes

# Install Homebrew (https://brew.sh/#install)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Install Desktop Applications
brew cask install \
  docker \
  firefox \
@synthecypher
synthecypher / docker-entrypoint.sh
Created Sep 28, 2017
Docker - Running multiple commands and logging uniformly
View docker-entrypoint.sh
#!/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
View GridModel.ts
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;
@synthecypher
synthecypher / generate-ssl.sh
Created May 2, 2017
Generate self-signed SSL certificate and key for HTTPS server
View generate-ssl.sh
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
@synthecypher
synthecypher / atp217_clips_app.txt
Last active Apr 20, 2017
An automatically transcribed discussion on ATP about automatic transcription.
View atp217_clips_app.txt
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
@synthecypher
synthecypher / init.lua
Created Feb 2, 2017
Hammerspoon - Bind Scroll Wheel Left/Right to Ctrl+Left/Right (move spaces)
View init.lua
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')
@synthecypher
synthecypher / macos-bookmarks.md
Last active Nov 17, 2016
macOS - Bookmarks for Developers
View macos-bookmarks.md

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
View .zshrc
# 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 ;}
You can’t perform that action at this time.