Skip to content

Instantly share code, notes, and snippets.


Evan Callicoat Apsu

View GitHub Profile
Apsu /
Created Oct 24, 2020
TNCC Python 2 Pulse Secure
# -*- coding: utf-8 -*-
import sys
import mechanize
import cookielib
import struct
import ssl
import base64
import collections


Keep track of

  • Camera look direction
    • Use to calculate relative rotation to transform.rotation
  • Move direction
    • Use to calculate relative rotation to transform.forward


Apsu / HeadLook.cs
Created Mar 10, 2020
Unity HeadLook
View HeadLook.cs
using UnityEngine;
public class HeadLook : MonoBehaviour
[Range(0.0f, 1.0f)]
public float headLookWeight;
private Animator animator;
private Vector3 lookAtPosition;
Apsu / modaledit.json
Created Mar 4, 2020
ModalEdit Bindings
View modaledit.json
"modaledit.keybindings": {
"\n": [
" ": "modaledit.enterInsert",
"y": "removeSecondaryCursors",
// Selection mode on/off
"s": "modaledit.toggleSelection",
View Starting


M140 S{material_bed_temperature} ; set bed temp
M104 S{material_print_temperature} ; set hotend temp

G28 ; home
G1 X0 Y0 Z0.5 F6000 ; park head

M190 S{material_bed_temperature} ; wait for bed temp
Apsu /
Last active Feb 14, 2019
Coplanar Tripteron Inverse Kinematics
#!/usr/bin/env python
from __future__ import print_function
import math
angle = math.radians(35) # Arm offset angle
t = math.tan(angle) # Store tangent
Apsu /
Last active Nov 20, 2016
Tripteron RC1 Bill of Materials

Hardware prices from McMaster-Carr

2020 brackets, rails, belt, and pulleys from AnyCubic/Uxcel/similar on Amazon

Motors from StepperOnline

Bearings from VXB or similar

Qty Item Unit Cost Total Cost
Apsu /
Last active Nov 18, 2016
Metric PLA Hole Sizes
  • M3 - 2.8mm tight threaded, 3.0mm threaded, 3.3mm clearance
  • M5 - 5.5mm threaded
  • M8 - 8.0mm threaded, 8.5mm shoulder
  • 608 - 22.3mm
  • 2020 - 20.3mm
Apsu /
Last active Oct 29, 2016
Inverse Kinematics for Inverted Cantilever Delta printer
#!/usr/bin/env python
from __future__ import print_function
import math
Motor= ["X", "Y", "Z"] # Motor axes
class Vector:
Apsu /
Last active Aug 26, 2016
Fix jumbo frame MTUs
#!/usr/bin/env bash
while read line
iface=$(cut -d':' -f2 <<< $line | tr -d '[[:space:]]')
mtu=$(sed -nr 's/^.* mtu ([^ ]+) .*$/\1/p' <<< $line)
echo $iface: $mtu
if [[ "$mtu" -eq "8950" ]]