Skip to content

Instantly share code, notes, and snippets.

View NetOpWibby's full-sized avatar
🌿
imagine being mad, touch grass

netop://ウィビ NetOpWibby

🌿
imagine being mad, touch grass
View GitHub Profile
@timaschew
timaschew / client.js
Last active February 22, 2023 07:04
Peerjs with peerID validation by using ed25519
import Peer from "peerjs"
import * as ed from "@noble/ed25519";
import { Buffer } from "buffer"
(async function() {
const privateKey = ed.utils.randomPrivateKey()
const _message = Date.now().toString(16)
const message = Uint8Array.from(Buffer.from(_message, "hex"))
const publicKey = await ed.getPublicKey(privateKey)
const peerId = Buffer.from(publicKey).toString("hex")
@Noxturnix
Noxturnix / fingertip-on-android.md
Created January 30, 2022 02:27
Fingertip on Android

Fingertip on Android

So, I just managed to install [Fingertip] on my Android device and I want to share how I did it

Note

I have written this from my experiments. It might not work on your device, or in worst case, you might lose your data. Feel free to follow what I did, but make sure you understand what you are doing. I'm not responsible on what is happening to your device c:

Note 2

@tndata
tndata / gist:313688ffe2e2d24b676e2264a9943d5c
Created December 1, 2021 12:39
Sega MegaDrive development kit debugger
******************************************
*SEGA Megadrive comunication program *
*(c) 1991 Synchron Assembly *
*https://www.tn-data.se *
******************************************
*f1=trace, f2=skip instruction f4=go
*d xxxx set dissasm window, d pc
*m xxxx set memory window, m pc
*j xxxx set sega PC

Claim a Handshake reserved name: ICANN TLD using HSM for DNSSEC signing (e.g. with CentralNic)

Demonstration with Bob Wallet: https://youtu.be/32Oi65rhdfE?t=886

  1. Install Bob Wallet https://bobwallet.io/
    • Must be at least version 0.9.0, due for release in November 2021
    • Launch Bob Wallet, it may take a few hours and around 20 GB of disk space to complete blockchain sync.
    • Create a new wallet one of two ways:
      • Let Bob generate seed phrase, you MUST write it down and keep that backup safe
@jontow
jontow / hw_sensors_metrics.sed
Created October 30, 2021 18:35
openbsd hw_sensors_metrics.sed
#!/usr/bin/env sed -E -f
################################################################################
#
# 2021-10-30 -- [email protected]
#
# Make heavy use of backreferences to avoid forking and translate OpenBSD sysctl(8)
# hw.sensors output into prometheus-compatible metrics
#
# Run this sed script like:
# $ sysctl hw.sensors | sed -E -f thisscript.sed
# This is a sample Python script.
# Press ⌃R to execute it or replace it with your code.
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
import aiohttp
event_loop = None
import asyncio
from pprint import pprint
@linkdd
linkdd / hackernews-new-comms.js
Last active August 25, 2024 11:15
Add a bell emoji to unread comments on HackerNews
// Can be used with https://github.com/xcv58/Custom-JavaScript-for-Websites-2
// This snippet is released under the terms of the CC0 license: https://creativecommons.org/publicdomain/zero/1.0/deed.en
const cache_key = 'hn_comments_views'
const cache = JSON.parse(localStorage.getItem(cache_key) || '{}')
document.querySelectorAll('.athing.comtr').forEach(comm => {
if (!cache[comm.id]) {
const span = document.createElement('span')
span.innerHTML = '🔔' // :bell: emoji
@jordienr
jordienr / Gradient.js
Created September 12, 2021 00:23
Stripe Mesh Gradient WebGL
/*
* Stripe WebGl Gradient Animation
* All Credits to Stripe.com
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and
* commented out for now.
* https://kevinhufnagl.com
*/
@kepano
kepano / obsidian-web-clipper.js
Last active July 11, 2025 23:45
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */