Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
the_dir=$1
the_proj=$the_dir/*.xcodeproj
mkdir -p bin
rsync -avz $the_dir/bin/data/ bin/data
cp $the_dir/run.command . || :
xcodebuild -project $the_proj CONFIGURATION_BUILD_DIR=`pwd`/bin && sshpass -p 2bc rsync -avz --exclude=bin/data/ofxRemoteUISettings.xml ./ $2
"""
quick and dirty rhino script to "hole-out" an inner convex angle so an end-mill can carve it
see:
http://www.kontraptionist.com/post/45218053861/slotted-construction-its-a-pretty-nice-thing-to
for the technique it implements
to use it:
- choose a cplane orthogonal to the face
- run the script
- select the object
@egradman
egradman / # gazebo9 - 2020-09-12_22-50-48.txt
Created September 13, 2020 06:15
gazebo9 (osrf/simulation/gazebo9) on macOS 10.14.6 - Homebrew build logs
Homebrew build logs for osrf/simulation/gazebo9 on macOS 10.14.6
Build date: 2020-09-12 22:50:48
@egradman
egradman / # gazebo9 - 2020-09-14_21-57-47.txt
Created September 15, 2020 05:20
gazebo9 (osrf/simulation/gazebo9) on macOS 10.14.6 - Homebrew build logs
Homebrew build logs for osrf/simulation/gazebo9 on macOS 10.14.6
Build date: 2020-09-14 21:57:47
@egradman
egradman / gist:1d42a5a826fa6339fa1ab7af27b3309d
Created August 17, 2021 00:08
generate LAUSD daily_pass
# create a file named .env containing:
#username=<username>
#password=<password>
#student_id=<student_id>
#facility_id=<facility_id>
#find the facility id by inspecting the page once you've selected your school
from selenium import webdriver
from selenium.webdriver.common.by import By
@egradman
egradman / copy_rich_text
Created January 31, 2023 00:51
Copies the current document to the Mac clipboard. It preserves formatting, because it uses pandoc/HTML as an intermediate step.I use https://github.com/Taitava/obsidian-shellcommands
#!/usr/bin/env python3
import sys
import re
import os
import tempfile
import shutil
import uuid
from subprocess import Popen, PIPE, STDOUT