(base) andre@boom The-Powder-Toy % git remote -v
origin git@github.com:The-Powder-Toy/The-Powder-Toy.git (fetch)
origin git@github.com:The-Powder-Toy/The-Powder-Toy.git (push)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
TARGET=$1 | |
# to be used as an egrep pattern | |
SYMS='getprogname|NSGetArgv|NSGetArgc|optarg|optind|getopt|getopt_long' | |
sudo find ${TARGET} -type f -perm +111 \! -name "*.dylib" | \ | |
while read f ; do | |
sudo nm -u ${f} 2> /dev/null | \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import parselmouth | |
# import IPython | |
import os | |
import sys | |
import pandas as pd | |
# Feed me audio files as command line arguments | |
# uncomment this to stop pandas from being so coy in its repr()s | |
# pd.set_option("display.max_rows", None, "display.max_columns", None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Instructions: | |
# 1) install svgpathtools with the command: | |
# pip install svgpathtools | |
# 2) Run this script with no arguments: | |
# python keynote_shape_to_svg.py | |
from svgpathtools import parse_path, svg2paths, wsvg | |
import sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://git.hactrn.net/sra/Homebrew-Tap/raw/master/xplot.rb | |
# Updated by dre for macOS 11.5.3 | |
# - prepended `autoconf` and `autoupdate`, which are really living up | |
# to their names. The *newest* part of xplot is from 1996. | |
# Documentation: https://docs.brew.sh/Formula-Cookbook | |
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula | |
class Xplot < Formula | |
desc "xplot" | |
homepage "http://www.xplot.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# set -x | |
# Reference: https://dreness.com/blog/archives/155773 | |
usage() { | |
print "$1: Use histograms to explore os_log data. | |
Usage: $1 [-k logKey] [-l logtime] [-h] [predicate] | |
-k Calculate frequency of unique values of this log attribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<klxml v='16' a='MTL'> | |
<document><properties><creator><![CDATA[net.hexler.KodeLife]]></creator><creatorVersion><![CDATA[1.0.1.153]]></creatorVersion><versionMajor>1</versionMajor><versionMinor>1</versionMinor><versionPatch>1</versionPatch><author><![CDATA[]]></author><comment><![CDATA[]]></comment><enabled>1</enabled><size><x>500</x><y>500</y></size><clearColor><x>0</x><y>0</y><z>0</z><w>1</w></clearColor><selectedRenderPassIndex>1</selectedRenderPassIndex><selectedKontrolPanelIndex>0</selectedKontrolPanelIndex><uiExpandedPreviewDocument>0</uiExpandedPreviewDocument><uiExpandedPreviewRenderPass>1</uiExpandedPreviewRenderPass><uiExpandedProperties>1</uiExpandedProperties></properties><params><uiExpanded>1</uiExpanded><param type='CLOCK'><displayName><![CDATA[Clock]]></displayName><variableName><![CDATA[time]]></variableName><uiExpanded>0</uiExpanded><running>1</running><direction>1</direction><speed>1</speed><loop>0</loop><loopStart>0</loopStart><loopEnd>6.28319</loopEnd> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
andre@boop RadeonProRenderSDK % file tutorials/Bin/01_camera_setup64 | |
tutorials/Bin/01_camera_setup64: Mach-O 64-bit executable x86_64 | |
andre@boop RadeonProRenderSDK % ./tutorials/Bin/01_camera_setup64 | |
dyld: Library not loaded: @rpath/libRadeonProRender64.dylib | |
Referenced from: /Users/andre/work/RadeonProRenderSDK/./tutorials/Bin/01_camera_setup64 | |
Reason: image not found | |
zsh: abort ./tutorials/Bin/01_camera_setup64 | |
andre@boop RadeonProRenderSDK % otool -L tutorials/Bin/01_camera_setup64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# an image that looks like the background | |
WHITE=/Users/andre/Desktop/white.png | |
# output directory | |
OUT=/Users/andre/Pictures/mugshots_no_bg | |
# maybe run us like this: | |
# find ... -name '*.jpg' | xargs -n 100 -P 4 -J % ~/bin/bg_remove.sh % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
IMAGE_DIR=$1 | |
INK="/Applications/Inkscape.app/Contents/MacOS/inkscape" | |
SCRIPT="inkscript" | |
COUNT=0 | |
# If gdate is available (brew install coreutils), we can show precise timing info | |
type -a gdate &> /dev/null && HAS_GDATE=1 |