Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am thecase on github.
  • I am thecase (https://keybase.io/thecase) on keybase.
  • I have a public key ASDFU2NtXS3GJMPwqPULkHzQr55UiS56StyToheWbz11rAo

To claim this, I am signing this object:

#!/usr/bin/expect
set cmd [lindex $argv 0]
eval spawn ssh admin@ap
set prompt ":|#|\\\$"
interact -o -nobuffer -re $prompt return
send "the-actual-passsword\r"
interact -o -nobuffer -re $prompt return
send "system led $cmd\r"
module group1(high){
cylinder(r1=2, r2=4, h=high, $fn=30, center=true);
cube([5,5,high], center=true);
}
group1(10);
translate([0,0,20]) group1(30);
cur = 1h;
translate([0,0,1h]) cylinder(d1=1d, d2=8.5, h=1Bh, $fn=40); //1B
cur = cur + 1Bh
translate([0,0,cur]) cylinder(d=2d, h=2h, $fn=30); //2
cur = cur + 2h;
translate([0,0,cur]) cylinder(d=3d, h=3h, $fn=15); //3
cur = cur + 3h
@TheCase
TheCase / gist:a1bbf8bf54b643c17b7d
Last active August 29, 2015 14:11
Mac OS X - AppleScript to auto-align Terminal windows
# Config Section
# columns, rows per window
set cols to 80
set rows to 50
# first window, pixels right and down from top left of screen
set left_margin to 20
set top_margin to 100