Skip to content

Instantly share code, notes, and snippets.

View danbucholtz's full-sized avatar

Dan Bucholtz danbucholtz

View GitHub Profile
@danbucholtz
danbucholtz / dev.js
Created June 3, 2020 04:34
Script to make TSC Watch and Nodemon play together swimmingly
const { spawn } = require('child_process');
const { join } = require('path');
const chalk = require('chalk');
let tsc = null;
let nodemon = null;
function getTscPath() {
return join(process.cwd(), 'node_modules', '.bin', 'tsc');
}
@danbucholtz
danbucholtz / keybase.md
Created July 25, 2019 16:58
keybase.md

Keybase proof

I hereby claim:

  • I am danbucholtz on github.
  • I am danbucholtz (https://keybase.io/danbucholtz) on keybase.
  • I have a public key whose fingerprint is 4ECB 2B39 A25E 2961 871E B6F3 31D7 41CC 9FF4 312A

To claim this, I am signing this object:

@danbucholtz
danbucholtz / serverless.yml
Created July 14, 2018 04:32 — forked from DavidWells/serverless.yml
DynamoDB custom index serverless.yml example
service: service-name
provider:
name: aws
runtime: nodejs6.10
functions:
myfunc:
handler: handler.myfunc
@danbucholtz
danbucholtz / variable.css
Created April 27, 2018 14:45
CSS Media Query With Variable
For example, if a responsive site uses a particular breakpoint in several places, it can alias that with a reasonable name:
@custom-media --narrow-window (max-width: 30em);
@media (--narrow-window) {
/* narrow window styles */
}
@media (--narrow-window) and (script) {
/* special styles for when script is allowed */
@danbucholtz
danbucholtz / commands.sh
Created November 1, 2017 15:18
Helpful Unix Commands
# Print out easily copyable list of file names
ls -A1 /path/to/folder
@danbucholtz
danbucholtz / android-record.md
Last active April 25, 2016 18:44
Record Android Device Screen (for development)

To start recording:

adb shell screenrecord sdcard/my-cool-video.mp4

To view the recording on computer

adb pull sdcard/my-cool-video.mp4
@danbucholtz
danbucholtz / gist:31750f1eee6b382898da
Last active December 12, 2016 06:38
New Mac Set-up 2016

Mac OS Clean Install

These are the settings you (Dan) like to use on a development Mac. Otherwise, the keyboard is just too slow and infuriating.

Inspired By https://gist.github.com/saetia/1623487

Enable character repeat on keydown

defaults write -g ApplePressAndHoldEnabled -bool false
@danbucholtz
danbucholtz / gist:901f88b081783dd1f001
Created May 14, 2015 21:12
Recursive find and replace of a path using Sed on a Mac
find . -type f -name '*.js' -print0 | xargs -0 sed -i -e 's|path/to/replace|new/path/of/doom|g'