Skip to content

Instantly share code, notes, and snippets.

View don-smith's full-sized avatar
🧘

Don Smith don-smith

🧘
  • HYPR
  • Tākaka, NZ
View GitHub Profile
{
"extends": ["standard", "eslint:recommended", "plugin:react/recommended"],
"plugins": [
"standard",
"promise"
],
"globals": {
"fetch": true,
"localStorage": true
},
@don-smith
don-smith / curriculum-overview.md
Last active May 22, 2017 03:52
The gist of the EDA curriculum. Haha, see what I did there? 😆
@don-smith
don-smith / interviewing.md
Last active June 5, 2025 03:11
Considerations for EDA grads

Technical interviews

Perspectives

  • Passion speaks volumes!
  • Tell me about your current side-project.
  • Skill of the interviewer - have empathy - this is a partnership
  • Whiteboarding. Try to use your PC.
    • Use Yeoman generators for quickly creating a test harness.
  • Scope the problem!!!!! (by asking questions)
@don-smith
don-smith / add-gh-ssh-key
Created March 17, 2017 02:51
Creates an SSH key to use on GitHub
#!/bin/sh
# This script creates an SSH key for use on GitHub
# Step 1: Copy and paste this github() function into the ~/.zshrc file
github() {
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/$1
email=`cat ~/.ssh/$1.email`
git config --global user.name $1
@don-smith
don-smith / makewavs
Last active February 25, 2017 04:41
File conversion and clean up for SampleSwap library
#!/usr/bin/env sh
echo "Converting all aif files to wav ..."
find . -type f -name "*.aif" -exec bash -c 'ffmpeg -i "$0" "${0%.*}.wav"' "{}" \;
echo "Converting all mp3 files to wav ..."
find . -type f -name "*.mp3" -exec bash -c 'ffmpeg -i "$0" "${0%.*}.wav"' "{}" \;
echo "Renaming all *.WAV files to *.wav"
find . -type f -iname "*.WAV" -exec bash -c 'mv "$0" "${0%.*}.wav"' "{}" \;
@don-smith
don-smith / arch-setup.md
Last active August 9, 2022 06:20
How I setup my Arch Linux installs

My Arch Linux Setup Guide

This guide assumes the drive has already been partitioned and the EFI bootloader is already in place. I'll include these detailed steps the next time I need to do it. As I'm writing up these steps, I'm performing them on a machine that's already had it done, and I can't spend the time to start from scratch this time.

Arch Installation

  • Start with a bootable thumb drive that includes the latest version
@don-smith
don-smith / github.sh
Last active December 1, 2016 09:01
Allows multiple GitHub users to use the same computers using individual SSH keys
#!/bin/sh
# This script creates an SSH key for use on GitHub
# Step 1: Copy and paste this github() function into the ~/.zshrc file
github() {
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/$1
email=`cat ~/.ssh/$1.email`
git config --global user.name $1
// constructor function implementation
function Test (args) {
// explicit internal state without using `this`
const state = {
op: args.op,
missing: args.missing
}
return { // explicit return
// explicit binding of function
// parameters with internal state
@don-smith
don-smith / coffee.js
Created September 18, 2016 03:14
Some code for an EDA advertisement. It has been superimposed onto the foam of a latte.
#!/usr/bin/env node
const ids = [4, 9, 1],
o = 'caffeine drink',
e = (r='', n=0) => ids[n] ?
e(r + o[ids[n]], ++n) : r
console.info(e())
@don-smith
don-smith / linux-setup.md
Last active August 24, 2016 05:11
How I treat each new Linux box I appropriate

My Debian Setup Guide

Config

  • su
  • adduser sudo don
  • Log out and back in

Install