Skip to content

Instantly share code, notes, and snippets.

@8secz-johndpope
8secz-johndpope / .apsisrc
Created November 4, 2020 08:46 — forked from wkirby/.apsisrc
Apsis OSX Setup
# Node
nodesize() {
find . -name "node_modules" -type d -prune -print | xargs du -chs
}
nodenuke() {
echo "This command will recursively delete node_modules from your current directory."
echo "Continue (y/n)?"
read CONT
@8secz-johndpope
8secz-johndpope / ColladaAnimationForXcode.py
Created May 29, 2020 11:27 — forked from joncardasis/ColladaAnimationForXcode.py
Convert Collada (.DAE) animation files for Xcode Scenekit Animation use by removing unnecessary data.
#!/usr/local/bin/python
# Jonathan Cardasis, 2018
#
# Cleans up a collada `dae` file removing all unnessasary data
# only leaving animations and bone structures behind.
# Combines multiple animation sequences into a single animation
# sequence for Xcode to use.
import sys
import os
import re

Setup Mac OS X

Edit: I've done the same process every couple years since 2013 (Mountain Lion, Mavericks and High Sierra).

I just replaced the hard drive of my mbp and decided to do a clean install of Mountain Lion (10.8.5) since I was still using Snow Leopard (10.6.8).

I kinda regret for not using Boxen to automate the process, but TBH I have this laptop for almost 3yrs and this is the first

@8secz-johndpope
8secz-johndpope / jslint-watch.sh
Created January 10, 2020 05:30 — forked from cristianobecker/jslint-watch.sh
JSLint watch without gulp or grunt
# Ubuntu: apt-get intall entr
jslint-watch() {
local folder=$(test "x$1" != x && echo "$1" || echo .)
local files="find $folder -type f -name '*.js'"
local modified='$('"$files"' -printf "%T+ %p\n" | sort -r | head -1 | cut -d" " -f2)'
eval $files | entr sh -c 'jslint '"$modified"' --color'
}
# MacOS: brew install entr