You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Thomas Lockney
tlockney
Engineering platforms and products. Leader and coach. Systems thinker.
you wil need proxmox kernel 6.2.16-14-pve or higher.
Load Kernel Modules
add thunderbolt and thunderbolt-net kernel modules (this must be done all nodes - yes i know it can sometimes work withoutm but the thuderbolt-net one has interesting behaviou' so do as i say - add both ;-)
nano /etc/modules add modules at bottom of file, one on each line
This is my recommended Python setup, as of Fall 2022. The Python landscape can be a confusing mess of overlapping tools that sometimes don't work well together. This is an effort to standardize our approach and environments.
*/constview=app.workspace.activeLeaf.view;consteditor=view.editor;constcurLineNum=editor.getCursor().line;constcurLineText=editor.getLine(curLineNum);consttitle=tp.file.title;consttoday=title.match(/\d{4}\-\d{2}\-\d{2}.+/)//are we on the DNP?
Add tailscale to an EdgeRouter and surviving system upgrade
Adding tailscale to an EdgeRouter (and surviving system upgrades)
I suggest you run sudo bash on all of these so you're the root user.
Installing
Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
Here are some terms to mute on Twitter to clean your timeline up a bit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A post mortem of writing a kernel in Jupyter notebook with metakernel
Writing a custom kernel for Jupyter
Introduction / movitation
Already, Jupyter notebook system is great for sharing course content, and does it in a way that I can constantly write and improve it. However, there was one drawback in the course that I'm offering (IB Diploma Computer Science) and it's that it teaches Pseudocode, and not any official language. That means that I can't just ask them to open the terminal, or use a text editor and execute.
However, like all Open Source tools, Jupyter is very customizable. So I set to work. This is what I wanted:
students can input pseudocode from scratch
student can play with and improve code provided to them
The following is a list of resources for learning Rust as well as tips and tricks for learning the language faster.
Warning
Rust is not C or C++ so the way your accustomed to do things in those languages might not work in Rust. The best way to learn Rust is to embrace its best practices and see where that takes you.
The generally recommended path is to start by reading the books, and doing small coding exercises until the rules around borrow checking become intuitive. Once this happens, then you can expand to more real world projects. If you find yourself struggling hard with the borrow checker, seek help. It very well could be that you're trying to solve your problem in a way that goes against how Rust wants you to work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using cloud-init for cloudless provisioning of Raspberry Pi
Installing cloud-init on a fresh Raspbian Lite image
This is a work in Progress!
Purpose
This mainly demonstrates my goal of preparing a Raspberry Pi to be provisioned prior to its first boot. To do this I have chosen to use the same cloud-init that is the standard for provisioning servers at Amazon EC2, Microsoft Azure, OpenStack, etc.
I found this to be quite challenging because there is little information available for using cloud-init without a cloud. So, this project also servers as a demonstration for anyone on any version of Linux who may want to install from source, and/or use without a cloud. If you fall into that later group, you probably just want to read the code. It's bash so everything I do, you could also do at the command line. (Even the for loop.)