Skip to content

Instantly share code, notes, and snippets.

View zanppa's full-sized avatar

zanppa

  • Finland
View GitHub Profile
@zanppa
zanppa / ender3neo_end_gcode.md
Last active October 25, 2025 11:09
My start and end G-codes for Creality Ender 3 Neo used with Ultimaker Cura slicer
G91 ; Relative positioning
G1 E-2 F2700 ; Retract a bit
G1 E-2 Z0.2 F2400 ; Retract and raise Z
G1 X5 Y5 F3000 ; Wipe out
G1 Z10 ; Raise Z more
G90 ; Absolute positioning

G1 X0 Y0 ; Present print
M104 S0 ; Turn-off hotend
@zanppa
zanppa / fgfs_cardboard_vr.md
Last active June 26, 2020 20:46
FlightGear headtrack + mirroring for cardboard virtual reality

This is a list of how I got FlightGear to (somehow) work on cardboard VR glasses.

Done on windows 10 and Android 9 phone.

It should work if PC and phone are on the same wifi, but update rate is most likely better with USB connection, USB network sharing on the phone, and phone (and PC) set to airplane mode...

Note that the software I used are ones I found to work, I have no other connection to them. Also, you do everything on your own risk!

@zanppa
zanppa / README.md
Last active March 11, 2020 21:28 — forked from tcg/README.md
Raspberry Pi Zero W as Internet connected Access Point *and* Wireless Client

I wanted this capability for various reasons. It's not necessarily stable, because uap0 has to use the same channel as wlan0, and if you're traveling/mobile, wifi channels aren't necessarily predictable.

This is not a guide. This is just so I remember how to get back where I started, in case I wipe this thing. =)

Extremely helpful guides that got me here:

@zanppa
zanppa / dhcpd.conf
Created March 11, 2020 21:06
Convert Raspberry PI Zero W to an USB wifi adapter gadget
# /etc/dhcp/dhcpd.conf
# Very basic dhcp daemon configuration for the USB interface
default-lease-time 600;
max-lease-time 7200;
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)