Skip to content

Instantly share code, notes, and snippets.

@bharrisau
bharrisau / README.md
Last active April 8, 2019 02:15
A selection of compact split compound planetary gears

Conducted a search of gear configuations matching the below requirements:

  • Minimum module of 1mm
  • Maximum outer diameter of 55mm (ring dedenum plus a 1mm wall)
  • All meshing gears co-prime
  • Module values must be terminating decimals
  • Planetary gears must be similar size (planet addendums equal, ring dedendums equal, or somewhere between)
  • At least 11 teeth on all gears (minimise undercut)
  • Minimum of 4 planets (6 planet options indicated)

Found 7 gear configurations, 6 of which permit driving via sun gear in addition to planet carrier. (>=12 tooth options highlighted)

@bharrisau
bharrisau / README
Last active March 26, 2019 14:01
RancherOS on KVM and ZFS
zfs create poolname/images/rancher
zfs set recordsize=16K poolname/images/rancher
zfs set compression=lz4 poolname/images/rancher
qemu-img create -f qcow2 -ocluster_size=16K /poolname/images/rancher/rancher.qcow2 16G
mkdir -p /images/rancher/images/pxeboot
mkdir -p /images/rancher/config/openstack/latest/
wget https://releases.rancher.com/os/latest/vmlinuz -O /images/rancher/images/pxeboot/vmlinuz
wget https://releases.rancher.com/os/latest/initrd -O /images/rancher/images/pxeboot/initrd.img
### Keybase proof
I hereby claim:
* I am bharrisau on github.
* I am bharrisau (https://keybase.io/bharrisau) on keybase.
* I have a public key whose fingerprint is DAC2 245B C5C9 4E29 83E1 68C1 FFD7 5CAB ABCD ABCD
To claim this, I am signing this object:
@bharrisau
bharrisau / register.rs
Last active August 29, 2015 14:03 — forked from bgamari/register.rs
#![feature(unsafe_destructor)]
use std::ty::Unsafe;
use std::kinds::marker::InvariantType;
/// This represents a register
struct RegValue<Packed, Unpacked> {
value: Unsafe<Packed>,
}
@bharrisau
bharrisau / README
Created August 19, 2012 06:14
SMF Manifest to bring up IPv6 on SmartOS
Need to open /usbkey/config and add
admin_v6_ip=xx:xx:xx/xx
admin_v6_gateway=yy:yy:yy
place ipv6 in /opt/custom/smf
place ipv6.xml in /opt/custom/scripts