Skip to content

Instantly share code, notes, and snippets.

View Dids's full-sized avatar
🏠
Working from home

Pauli Jokela Dids

🏠
Working from home
View GitHub Profile
@Dids
Dids / readme.md
Created January 2, 2023 13:00 — forked from ChipCE/readme.md
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.
@Dids
Dids / README.md
Last active February 7, 2024 04:39
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.

How do I use it?

  1. Install Tampermonkey from the (Mac) App Store
  2. Configure Tampermonkey to your liking (optional, but recommend checking general update settings in particular)
@Dids
Dids / Change Xcode version in GitHub Actions
Created July 31, 2022 15:21 — forked from fabianfett/Change Xcode version in GitHub Actions
How to change the Xcode version in GitHub Actions
# Change Xcode version in GitHub Actions
As of today (2019-08-21) I haven't found any documentation on changing Xcode versions when
using GitHub actions. So I checked the applications folder and everything we need is
already there. 🤩
```
> ls -n /Applications/ | grep Xcode*
lrwxr-xr-x 1 0 80 30 Aug 2 19:31 Xcode.app -> /Applications/Xcode_10.2.1.app
drwxr-xr-x 3 501 20 96 Oct 20 2018 Xcode_10.1.app
@Dids
Dids / pinecil_flashing_firmware_guide.md
Last active December 20, 2023 13:17
Pinecil Flashing & Firmware Guide

Pinecil Flashing & Firmware Guide

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.

@Dids
Dids / NUT_ESXi_7.md
Last active November 27, 2022 16:12
Installing NUT for ESXi 7.x
  1. Set ESXi package acceptance level to community:
esxcli software acceptance set --level=CommunitySupported
  1. 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
@Dids
Dids / raw_img_gpt_efi.md
Last active January 11, 2024 12:25
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.


@Dids
Dids / Compile_Go_for_Apple_Silicon_M1.md
Last active September 25, 2023 01:55
Compile Go for Apple Silicon (M1)

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.

@Dids
Dids / IPA_Install_Apple_Silicon.md
Last active October 19, 2024 12:36
Installing IPAs on the M1

Installing IPAs on Apple Silicon (M1)

  1. Open Apple Configurator 2 and plug in your iPhone or iPad
  2. Click Add, login to the App Store and select the application you want to install
  3. Open up ~/Library/Group\ Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets and wait until the TemporaryItems directory appears
  4. Copy the application from the newly created temporary directory, but do note that it will disappear once Apple Configurator is done installing
  5. Double click the .ipa on your Apple Silicon (M1) device and install it
  6. 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.

@Dids
Dids / .hyper.js
Last active December 11, 2017 07:52
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
//updateChannel: 'stable',
updateChannel: 'canary',
@Dids
Dids / clover_info_plist_patching.md
Last active December 7, 2017 12:29
Clover Info.plist patching

Introduction

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.