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 |
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 | |
D=$(date "+%Y-%m-%d") | |
#D=$(date "+%s") | |
ifstat -t -n -i en0 \ | |
| sed -l '1d;2d' \ | |
| while read -A IFSTAT | |
do | |
echo -n "{" | |
echo -n "\"Time\": \"${D} ${IFSTAT[1]}\", " | |
#echo -n "\"Time\": \"${IFSTAT[1]}\", " |
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 python -u | |
from colorhash import ColorHash | |
from pprint import pprint as pp | |
from pcapng import FileScanner | |
import asyncio | |
import sys | |
import re | |
cmd = "tcpdump --immediate-mode -l -g -k -n -i pktap,en0 ip or udp" |
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
query ($owner: String!, $name: String!, $gazers: Int, $items: Int) { | |
repository(owner: $owner, name: $name) { | |
name | |
description | |
resourcePath | |
id | |
stargazers(last: $gazers, orderBy: {field: STARRED_AT, direction: DESC}) { | |
edges { | |
starredAt | |
node { |
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/ python | |
import requests | |
import fileinput | |
import sys | |
from humanfriendly import format_size | |
f = open("/Users/andre/Desktop/urls.txt", "r") | |
s = requests.session() |
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
<html> | |
<head> | |
<title>html5 video / audio playbackRate sandbox</title> | |
<style> | |
body { | |
height: 99%; | |
} | |
div { |
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/bash | |
set -x | |
set -e | |
# This script intends to compliment an automated LetEncrypt setup on | |
# OS X Server. After updating certs, the new files should be imported into | |
# Keychain, which Server will notice. Amusingly, we need to encrypt the | |
# certs for this to work, so this script does that (hard-coded password!) |
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
# Developed by Greg Miller, [email protected] | |
# Version 3.05 | |
# Last Updated April 13, 2020 | |
# Tweaks by Dre on 8/18/2020 to fix bad assumptions about file paths | |
# Purpose: To compile publicly-available CAISO system-wide electricity demand, supply, and emissions data into a csv file | |
# Currently configured to coninue downloading data until the most recent data has been downloaded. | |
# All directories and files will be created the first time you run the script | |
# Run in unbuffered mode to make sure time.sleep() works: $ python -u |