Skip to content

Instantly share code, notes, and snippets.

@nathanshipley
nathanshipley / img2img_FLUX_ReduxDepth_NS_02_2024-12-09.json
Last active December 27, 2024 21:02
img2img_FLUX_ReduxDepth_NS_02_2024-12-09
{
"last_node_id": 457,
"last_link_id": 804,
"nodes": [
{
"id": 4,
"type": "SetNode",
"pos": [
-433,
2
@c0m4r
c0m4r / alpine_hetzner_arm_ipv6.md
Last active December 27, 2024 20:58
Alpine Linux installation on Hetzner Cloud VPS (Arm64/IPv6-only)

Alpine Linux installation on Hetzner Cloud VPS

(Arm64/IPv6-only)

This guide describes how to install Alpine Linux on Hetzner Cloud VPS CAX ARM64 Servers with IPv6-only setup.

image

Table of contents:

@hyokosdeveloper
hyokosdeveloper / openstackcli.sh
Last active December 27, 2024 20:53
BASH Utility for easy openstack tasks
# ** ref to open stack rc containing envvars and credentials **
OPENSTACKRC=~/openstackrc.sh
#
# Functions
#
info() {
echo "Running open stack setup..."
@rannn505
rannn505 / common.itermkeymap
Created January 26, 2022 23:34
Common keyboard shortcuts for iTerm2
{
"Key Mappings": {
"0xf702-0x300000-0x7b": {
"Label": "Cursor Start ⌘←",
"Action": 11,
"Text": "0x01"
},
"0xf703-0x300000-0x7c": {
"Label": "Cursor End ⌘→",
"Action": 11,
#!/usr/bin/env python3
import requests
import time
import uuid
import json
import urllib.parse
from Crypto.PublicKey import RSA
from Crypto.Hash import MD5
from Crypto.Cipher import PKCS1_v1_5
from base64 import b64encode
@jacwright
jacwright / auth-firebase.ts
Created September 29, 2023 00:20
Basic idea of how you would verify a Firebase auth JWT on the server in Cloudflare.
import jwt from '@tsndr/cloudflare-worker-jwt';
import { StatusError } from '../lib/errors';
import { Config, RouterRequest, SocketAuth } from '../types';
export function uses(request: RouterRequest) {
return (request.headers.get('authorization') || '').match(/^Bearer /i);
}
export async function auth(request: RouterRequest, noError?: boolean) {
return authSocket(
@xbeta
xbeta / README.md
Last active December 27, 2024 20:43
Macbook Pro Bluetooth + WiFi 2.4GHz interference fix for Mavericks
@erdomke
erdomke / Base32.cs
Last active December 27, 2024 20:43 — forked from BravoTango86/Base32.cs
Base32 Encoding and Decoding in C#
/*
* Derived from https://github.com/google/google-authenticator-android/blob/master/AuthenticatorApp/src/main/java/com/google/android/apps/authenticator/Base32String.java
*
* Copyright (C) 2016 BravoTango86
*
* 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-2.0
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active December 27, 2024 20:41
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@afriza
afriza / proxmox-mikrotik.md
Last active December 27, 2024 20:41
install Mikrotik CHR on ProxMox Virtual Environment 8.3.0
  • create bridges for use by mikrotik CHR
  • create VM with VM ID 100 without any media (also delete existing scsi0 disk in the wizard)
ver=7.16.2
wget https://download.mikrotik.com/routeros/$ver/chr-$ver.img.zip
apt update
apt install unzip
unzip chr-$ver.img.zip
qemu-img resize -f raw chr-$ver.img 256M
# number 100 below is the VM ID