Skip to content

Instantly share code, notes, and snippets.

@akrylysov
akrylysov / README.md
Last active October 2, 2024 17:32
Fast Intel-on-ARM Docker on macOS with Lima and Rosetta

macOS 13 Ventura introduced support of running amd64 binaries with Rosetta inside of arm64 Linux VMs when using Apple Virtualization framework.

Lima VM v0.14.0 and later support the new feature.

Setup:

# Install Docker client and Lima
brew install docker docker-compose docker-credential-helper lima

yt-dlp termux full installation guide.md

Prepare

  1. Install Termux from Github: https://github.com/termux/termux-app/releases
  2. Download the apk and install it -> Note that installing termux from Play Store is highly discouraged.

In Termux:

pkg update
@jsleeio
jsleeio / diff-last-two-reads.sh
Last active December 26, 2022 19:57
macOS scripted configuration with 'defaults'
#!/bin/bash
### @jsleeio, 2022
###
### diff the last two sets of defaults data dumped with read-all-domains.sh
function _die() {
echo "FATAL: $*" >&2
exit 1
}
@sideseal
sideseal / LoginScripts.plist
Last active December 21, 2022 06:40
MacOS System Preferences settings for 42
<!-- If you create 'settings.sh' file, You should make plist file in '~/Library/LaunchAgents' folder.
try 'touch' command:
> `touch ~/Library/LaunchAgents/LoginScripts.plist`
and write the code below in '~/Library/LaunchAgents/LoginScripts.plist' -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
@hyun007
hyun007 / span.io-api-documentation.md
Last active April 12, 2025 00:04
span.io api documentation

Span.io API Documentation

The Span API does not at this time require any authentication. This will probably change in the future.

Description: Gets panel summary, firmware version, door state, serial number, network status Request: GET /api/v1/status Response:

{
  "software": {
    "firmwareVersion": "spanos2/r202216/04",
@fusetim
fusetim / protonvpn-wireguard-generator.py
Last active April 23, 2025 06:10
Generate lots of Wireguard configuration for your ProtonVPN Account.
import http.client
import http.cookies
import json
import base64
import hashlib
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import x25519
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import hashes
@acidicoala
acidicoala / README.md
Last active December 9, 2024 11:13
Generic Unlocker Installation Instructions

ℹ Introduction

This document aims to provide comprehensive installation instructions for various unlockers that I have released. These unlockers share the same installation procedure and caveats, hence the detailed instructions are listed here to avoid repetition. These instructions apply to the following unlockers:

The following steps assume a 64-bit game. If you are interested in a 32-bit game, then repeat the same steps with 32-bit versions of the binaries instead. 64-bit binaries have 64 in their name, while 32-bit binaries have 32 in their name. If a binary name is missing both 32 and 64, then it's probably a 32-bit binary.

# reset with: defaults delete -g <FEATURE>
# default textedit to simple text
defaults write com.apple.TextEdit RichText -int 0
# always show path bar in finder
defaults write com.apple.finder ShowPathbar -bool true
# dock
# don't show recents
@bartprokop
bartprokop / arch-install.sh
Last active July 31, 2023 18:38
Arch, BTRFS, rEFInd, subvolumes
#!/bin/bash
# *** Valid for archlinux-2022.04.05-x86_64.iso
# *** GPG verify ISO file
gpg --auto-key-locate clear,wkd -v --locate-external-key [email protected]
gpg --verify archlinux-2022.04.05-x86_64.iso.sig
# gpg: assuming signed data in 'archlinux-2022.04.05-x86_64.iso'
# gpg: Signature made Tue Apr 5 17:05:57 2022 GMTST
@W1773ND
W1773ND / jetbrains-license-3.bat
Created April 26, 2022 05:03 — forked from AlexSG8/jetbrains-license-3.bat
JetBrains activation key trial reset PyCharm IntelliJ IDEA PhpStorm 2021 ALWAYS WORKS on Windows and Linux. PLEASE READ THE "thanks" FILE TOO!
cd %APPDATA%\JetBrains
del "PermanentDeviceId"
del "PermanentUserId"
rmdir "consentOptions" /s /q
cd %APPDATA%\JetBrains\PHPStorm2021.1*
rmdir "eval" /s /q
del "options\other.xml"
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains"