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.
🏠
Working from home
Pauli Jokela
Dids
🏠
Working from home
Senior software developer & engineer, entrepreneur, father and a jack of all trades, with over two decades worth of experience.
Klipper bed mesh on print area only macro install guide
Klipper mesh on print area only install guide
What this macro do
This macro will dymanic change the bed_mesh area based on the size of the printed part. The fw will only probe on the area that the part will be printed (plus mesh_area_offset value)
Setup guide
(1) Add the following macrro to your printer config, this will replace the default BED_MESH_CALIBRATE command.
Fix YouTube on Safari in a quick and easy manner, all with official and legit tools and steps!
SafariTube - Fix YouTube on Safari
What is this?
SafariTube is a simple userscript for Tampermonkey, which simply makes YouTube think it's running on Chrome, enabling a much better user experience, from features such as hover previews to improved video playback and an overall improved YouTube experience.
This file contains 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
This shows the bare minimum on how to flash your Pinecil with custom/new firmware, as well as changing things like the boot logo.
NOTE: This guide should work on both Linux and macOS as is, however it has only been tested on macOS Big Sur 11.6, so some steps might differ slightly on Linux, at least at the time of writing this.
Flashing & Requirements
The following dependencies are necessary for the entirety of the guide, however here we are only showing how to install them on macOS.
esxcli software acceptance set --level=CommunitySupported
Install the VIB:
cd /tmp
wget https://blog.rylander.io/2017/01/15/connect-a-esxi-6.5-host-to-a-ups-connected-to-a-synology-nas/NutClient-ESXi500-1.4.0.tar.gz
tar -xvzf NutClient-ESXi500-1.4.0.tar.gz
Working with raw disk images with GPT + EFI partition in linux
What is the purpose of this guide?
I originally wanted to create bootable disks for UEFI (i)PXE booting, meaning I could directly boot premade disk images over the network, no matter what they may contain.
While this guide serves my purpose well, it's also generic enough to be extended to almost any use case.
For example, you might use it as temporary or even portable storage, mountable across different operating systems, or you might use it as a disk image for a virtual machine.
DISCLAIMER: Be very careful with the commands listed below, as you could potentially not only cause data loss, but even prevent your operating system from booting, no matter how unlikely either of those may be. Pay attention to the commands, comments and differences between the guide and your local environment.
NOTICE: This guide is no longer relevant, as a lot has changed over time and Go supports Apple Silicon natively just fine now!
Compile Go for Apple Silicon (M1)
Follow these short instructions on how to compile Go for Apple Silicon (M1).
From here on out, we may simply refer to it as the "ARM device".
This entire process should only take about 5-10 minutes, but please read through everything carefully, in order to avoid any potential issues along the way.
Note that at the time of writing this, Go was not yet officially available for Apple's ARM.
Open Apple Configurator 2 and plug in your iPhone or iPad
Click Add, login to the App Store and select the application you want to install
Open up ~/Library/Group\ Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets and wait until the TemporaryItems directory appears
Copy the application from the newly created temporary directory, but do note that it will disappear once Apple Configurator is done installing
Double click the .ipa on your Apple Silicon (M1) device and install it
Fix permissions on the installed application by running sudo xattr -rd com.apple.quarantine /Applications/<your_app>.app (if you skip this step, you're unable to start the application)
Note that it's easier if you already have the application installed, as Apple Configurator will prompt you about overwriting the existing installation, at which point the temporary file (the .ipa) will still exist, until you choose an action in the prompt.
This file contains 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
In this example, we'll be patching /Library/Extensions/NVDAStartupWeb.kext/Contents/Info.plist, replacing any occurrences of <string>17B1003</string> with <string>17C88</string>, allowing us to enable the Nvidia Web Driver on "unsupported" versions of macOS, such as newly released updates, without having to wait for an updated driver to become available.
It's very important to note that there are actually two spaces in the replacement value (Markdown doesn't display them correctly), as the character lengths of both values must always match. In this case it made more sense to add the spaces before rather than after, as they're most likely to already exist in the original Info.plist.
Encoding
This shows how you can encode both values to a base64 encoded string, which is the format that'll end up in the patch itself.