Skip to content

Instantly share code, notes, and snippets.

View dmundt's full-sized avatar

Daniel Mundt dmundt

  • STRABAG Infrastructure & Safety Solutions GmbH
  • Germany, Berlin
View GitHub Profile
@bramtechs
bramtechs / upgrade-debian-wsl.md
Last active June 18, 2024 11:53
Upgrade Debian 9, (current WSL) to Debian 12 (bookworm testing)

Upgrade Debian 9 (current WSL) to Debian 12 (bookworm testing)

Note: I do not maintain this gist anymore, but people report that it still works. Please check the comments for any revisions or extra things you should take into consideration.

As of writing, the Debian distro for WSL (Windows Subsystem for Linux) is quite old.

You can get more up-to-date package managers, text-editors and compilers by upgrading WSL to Debian 12 (current testing).

  • Root required
  • Use at your own risk, preferably on a fresh installation.
@benpate
benpate / template-fragments.go
Last active May 2, 2024 04:31
Demonstration of Template Fragments using the standard Go template library
package main
import (
"html/template"
"net/http"
"strconv"
)
/***********************
This is a simple demonstration of how to use the built-in template package in Go to implement
@LordGhostX
LordGhostX / blockchain.go
Last active March 27, 2024 20:34
Blockchain POC with Golang
package main
import (
"crypto/sha256"
"encoding/json"
"fmt"
"strconv"
"strings"
"time"
)
@dmundt
dmundt / end
Last active September 8, 2021 00:14
Cura G-Code
M104 S0 ;Extruder heater off
M140 S0 ;Heated bed heater off (if you have it)
G91 ;Relative positioning
G1 E-1 F300 ;Retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;Move Z up a bit and retract filament even more
G28 X0 Y0 ;Move X/Y to min endstops, so the head is out of the way
M84 ;Steppers off
G90 ;Absolute positioning
;Put printing message on LCD screen
M117 Stopped printing...