Skip to content

Instantly share code, notes, and snippets.

View miuirussia's full-sized avatar
☺️
Working

Kirill Kuznetsov miuirussia

☺️
Working
View GitHub Profile
@sinceohsix
sinceohsix / Installing LiveContainer+Sidestore.md
Last active January 1, 2026 14:06
Installing LiveContainer+SideStore from start to finish.

A full rewrite of this guide is coming verrrry soon.

This guide was written as a fast way to help people get back some of their sideloaded apps after the mass revocation wave a few months back. Thanks to some new software this process has gotten a LOT simpler and faster. This guide was still being shared around which was causing confusion that I was unaware of (I'm sorry about that 😥), to try and fix this, I have written a completely new guide that is much easier to read and follow.

I am proof-reading it and adding final touches then it will be ready to be released again here so you can continue to share it with people, and I will try my best to keep it up to date as new software is released.

Thank you everyone for actually using this and sharing it, I was unaware of how "popular" it had gotten, so I hope this new guide can help you all out even more than the last one.

NOTE: Over time, old comments will be deleted as they will no longer apply here at all, they will simply cause confusion.

⚠️ I have written a newer, simpler guide. This gist will not be updated anymore. See https://gist.github.com/fuzmish/df9eabf711c3f452ca19cce0621fc84e.

Running multi-arch images with Docker on Lima

Docker on Lima is one of the alternative solutions to Docker Desktop for Mac. Many people have already described the steps to set up for that. In addition to such a standard setup, this guide describes how to set up a Docker environment which can run multi-arch images. For example, you will be able to run linux/amd64 images on your M1 Mac.

Step 1. Install Lima

# Instructions for fresh install
$ sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon
# reboot
$ source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
$ echo 'export NIX_PATH=darwin-config=$HOME/.nixpkgs/darwin-configuration.nix:$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH' | tee -a ~/.zshrc
$ echo 'source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh' | tee -a ~/.zshrc
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable
$ nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
@angerman
angerman / Installation.md
Last active February 1, 2024 11:38
Installing nix on macOS BigSur

The nixos.org website suggests to use:

sh <(curl -L https://nixos.org/nix/install)

For macOS on Intel (x86_64) or Apple Silicon (arm64) based macs, we need to use

sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active December 29, 2025 04:33
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.
#!/bin/bash
# Unlock the directory, we need the unencrypted versions of the files
git crypt unlock
# Re-initialize git crypt, generating a new key
rm .git/git-crypt/keys/default
git crypt init
# Make the key available to the current users
@retyui
retyui / example.md
Last active October 27, 2020 08:07
HOW USE FLOW.JS WITH REDUX-SAGA

These examples for:

Install or update typings

flow-typed install # for initial run
@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active January 1, 2026 00:05
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active December 22, 2025 07:20
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@joshcox
joshcox / compose.ts
Created September 19, 2018 18:10
Type Safe Function Composition in TypeScript
// Get the type of the first argument of a function
type ArgumentType<T> = T extends (a: infer U) => any ? U : any;
// Get the head type from a tuple of types
type Head<T extends any[]> = T extends [infer H, ...any[]] ? H : never;
// Get the tail type from a tuple of types
type Tail<T extends any[]> = ((...t: T) => void) extends ((h: any, ...rest: infer R) => void) ? R : never;
// Get the Last type from a tuple of types