Skip to content

Instantly share code, notes, and snippets.

@datkat21
datkat21 / gh_org_loc_fix.md
Last active March 14, 2026 12:37
How to change your organization's location after the new update

Changing a GitHub Organization's Location using cURL and the REST API

Recently, GitHub has made a change to how setting the location on an organization works through the settings page. Now, you cannot set it to a custom location (ex. GitHub Land, Octo World, etc.)

Organization Settings Page

Example of an organization's settings page, notice the Location input being a button and not a textbox. Trying to change this to a custom location results in nothing showing up and only showing the clear button (see image below.)

Location Settings Fail

@kevincarpdev
kevincarpdev / Volume Profile Price by Volume - Fixed Range.pine
Created April 3, 2023 14:36
Volume Profile Price by Volume - Fixed Range
//@version=5
// ══════════════════════════════════════════════════════════════════════════════════════════════════ //
//# * ══════════════════════════════════════════════════════════════════════════════════════════════
//# *
//# * Study : Volume Profile / Price by Volume - Fixed Ragne
//# * Author : © dgtrd
//# *
//# * Revision History
//# * Release : Feb 23, 2022
//# * Update : Feb 27, 2022 : added volume indicator (histogram)
@steffenba
steffenba / proxmox-nut-shutdown.md
Last active March 14, 2026 12:33
Proxmox: Shutdown via NUT with a NAS as UPS master

Scenario

Using a QNAP NAS connected to an EATON 3S UPS via USB, I wanted to do the following

In case of power loss:

  • Go to UPS Power
  • Start Timer
  • Abort Timer if Power restored
  • After 10 Minutes, shut down Proxmox (using ISCSI Storage provided by QNAP)
  • After 15 Minutes, shut down QNAP

P2P Ridehailing App — Claude Code Instructions

You are building a fully decentralized peer-to-peer ridehailing mobile app. Zero centralized servers. The entire system runs on user devices and the Solana blockchain.

Core Flow

A rider opens the app, sets a destination, and the app calculates a fare client-side using Haversine distance. The rider posts a ride request on-chain containing a blinded zone ID (ZK proof of zone membership), the offered fare, and escrowed SOL. Nearby drivers discover the request via libp2p GossipSub and on-chain queries. Drivers submit offers on-chain — they can accept the rider's fare or counter-offer (capped at 2x the rider's price). The rider selects one driver. A single on-chain transaction atomically locks the match and rejects all others. The selected driver and rider establish a direct encrypted P2P channel via libp2p. All real-time communication (exact pickup, GPS, chat, ETA) flows over this channel. On completion, escrow releases to the driver.

Hard Requirements

/*
* Copyright 2026 Kyriakos Georgiopoulos
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE
*
* Unless required by applicable law or agreed to in writing, software
@perfecto25
perfecto25 / ipip.sh
Last active March 14, 2026 12:32
IPIP Tunnel Maker
#!/bin/bash
# this script creates an IPIP Tunnel
# tested for CENTOS 6 & 7
#----------------------------
# CONFIGURATION
#----------------------------
# name of tunnel
name='tun_test'
@loopj
loopj / armbian-hdmi-rotate.md
Created August 10, 2023 20:20
Rotate console by 90 degrees on Armbian

Rotate console by 90 degrees on Armbian

Add the following to /boot/armbianEnv.txt

extraargs=fbcon=rotate:1
@FMCorz
FMCorz / kodi.sql
Last active March 14, 2026 12:27
Find duplicate movies in Kodi
-- Find the file ~/.kodi/userdata/MyVideosXX.db
-- Open with sqlite3
-- Run the following statement:
SELECT
m.c00, -- Movie name
p.strPath, -- Path
f.strFilename -- File name
FROM movie m
@eylenburg
eylenburg / msoffice_in_linux.md
Last active March 14, 2026 12:23
Installing Microsoft Office in Linux

Step by step guide: How to install Microsoft Office in any Linux distribution

There are multiple options how to install MS Office on Linux.

VM-based - Integrate Windows apps running in a Windows virtual machine as native-looking in Linux

  1. LinOffice - Microsoft Office Launcher for Linux, my own fork of Winapps which is focused on only running Microsoft Office, with some Office-specific improvements over Winapps and a fully automated setup. Eventually I would like to create a GUI for it. Decribed below
  2. Winapps, based on KVM, QEMU, Docker/Podman and FreeRDP. Still actively maintained (getting Github commits). Decribed below
  3. Cassowary, based on KVM, QEMU, libvirt/virt-manager, and FreeRDP. Last release in Feb 2022 and seems to be abandoned.