Skip to content

Instantly share code, notes, and snippets.

@mtancoigne
mtancoigne / build123d-alternate-setup.md
Last active December 12, 2025 15:02
Alternate setup for build123d

Build123d alternate setup

The community recomends to use VSCode with the ocp_vscode plugin to use build123d. If you prefer not to use VSCode/Codium to develop, but keep using the awesome renderer from ocp_vscode, it's possible.

The general idea is to:

  • use ocp_vscode to preview the models (in a web browser)
  • use your favourite editor
  • optionally have the preview update when you save your work
@matthewdowney
matthewdowney / hack-captive-portal.bb
Created January 5, 2023 18:39
Script to bypass captive portals from https://miloserdov.org/?p=1088, ported to Babashka and improved
#!/usr/bin/env bb
; =========================================================================== ;
; FILE: hack-captive-portal.bb ;
; USAGE: sudo bb hack-captive-portal.bb ;
; ;
; DESCRIPTION: This script helps to pass through the captive portals in ;
; public Wi-Fi networks. It hijacks IP and MAC from somebody ;
; who is already connected and authorized on captive portal. ;
; Tested in Ubuntu 16.04 with different captive portals in ;
; airports and hotels all over the world. ;
@guidoism
guidoism / gist:523fd22f5e306042e01e4a906e03999b
Created September 6, 2022 22:39
Ergogen footprints people have made that aren't in the main repo
https://github.com/50an6xy06r6n/ergogen/blob/master/src/footprints/promicro_rev_routed.js
https://github.com/50an6xy06r6n/ergogen/blob/master/src/footprints/trrs_rev.js
https://github.com/AndrewCloete/ergogen/blob/master/src/footprints/airwire.js
https://github.com/AndrewCloete/ergogen/blob/master/src/footprints/b3u1000p.js
https://github.com/AndrewCloete/ergogen/blob/master/src/footprints/bat.js
https://github.com/AndrewCloete/ergogen/blob/master/src/footprints/frankendiode.js
https://github.com/AndrewCloete/ergogen/blob/master/src/footprints/offsetfrankendiode.js
https://github.com/AndrewCloete/ergogen/blob/master/src/footprints/pcm12.js
https://github.com/AndrewCloete/ergogen/blob/master/src/footprints/promicro_pretty.js
https://github.com/AndrewCloete/ergogen/blob/master/src/footprints/thru.js
@m-radzikowski
m-radzikowski / script-template.sh
Last active February 27, 2026 03:13
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@v-kolesnikov
v-kolesnikov / Gemfile
Last active April 3, 2023 11:31
Asynchronous files downloader.
# frozen_string_literal: true
source "https://rubygems.org"
gem 'down'
gem 'dry-monads'
gem 'http'
@ryboe
ryboe / .travis.yml
Last active June 11, 2025 03:12
Example .travis.yml for Golang
# use the latest ubuntu environment (18.04) available on travis
dist: bionic
language: go
# You don't need to test on very old versions of the Go compiler. It's the user's
# responsibility to keep their compiler up to date.
go:
- 1.16.x
@dysinger
dysinger / ocaml.org
Last active February 7, 2017 02:54
My OCaml/OPAM notes

OCaml

OCaml Setup

OPAM Bootstrap

One-Time Setup

sudo apt-get install -y build-essential 0install curl aspcud rsync git mercurial bzr
@itod
itod / split_keyboards.md
Last active March 11, 2026 10:58
Every "split" mechanical keyboard currently being sold that I know of
@marianogappa
marianogappa / ordered_parallel.go
Last active February 12, 2024 09:27
Parallel processing with ordered output in Go
/*
Parallel processing with ordered output in Go
(you can use this pattern by importing https://github.com/MarianoGappa/parseq)
This example implementation is useful when the following 3 conditions are true:
1) the rate of input is higher than the rate of output on the system (i.e. it queues up)
2) the processing of input can be parallelised, and overall throughput increases by doing so
3) the order of output of the system needs to respect order of input
- if 1 is false, KISS!