Skip to content

Instantly share code, notes, and snippets.

View geekwolverine's full-sized avatar

Blaze geekwolverine

View GitHub Profile
@geekwolverine
geekwolverine / vps.md
Created May 2, 2026 09:32 — forked from arrogantrabbit/vps.md
Hosting services, like Storj, behind firewall/GNAT, using Wireguard on a VPS and DNAT (Port Forwarding) with iptables.

DNAT with iptables over wireguard hosted on a VPS to host services behind a firewall/GNAT.

This is a short description of how to host services, using STORJ node as an example, on a host behind GNAT, or otherwise restrictive firewall, by forwarding packets through WireGuard endpoint on a relatively fast nearby VPS. This is not specific to Storj, and can be adopted to hosting other services.

As an example we will use an Oracle Cloud instance. Free tier still provides 10TB of monthly traffic that is sufficient for most node operators. Just make sure to create an account in a closest datacenter to minimize extra latency.

Notes on configuring the cloud instance

  1. Create the oracle compute instance (ideally, Ampere, because they are awesome, but if that is not availabe, any other will do too).
  2. Pick any OS you prefer, here we'll describe Ubuntu, as a most popular one.
@geekwolverine
geekwolverine / communication.js
Created April 14, 2026 14:41 — forked from 0xjjpa/communication.js
Basic communication between a Background Page and a Content Script inside a Chrome Extension.
// In Background.js
chrome.tabs.sendMessage(tab.id, {content: "message"}, function(response) {
if(response) {
//We do something
}
});
// In ContentScript.js
chrome.extension.onMessage.addListener(function(request, sender, sendResponse) {
if(request.content) {

Disk Speed Test (Read/Write): HDD, SSD Performance in Linux

From this article you’ll learn how to measure an input/output performance of a file system on such devices as HDD, SSD, USB Flash Drive etc.

I’ll show how to test the read/write speed of a disk from the Linux command line using dd command.

I’ll also show how to install and use hdparm utility for measuring read speed of a disk on Linux Mint, Ubuntu, Debian, CentOS, RHEL.

Take the average result: To get the accurate read/write speed, you should repeat the below tests several times (usually 3-5) and take the average result.

@geekwolverine
geekwolverine / settings.json
Created February 1, 2026 23:07 — forked from zendzo/settings.json
My Personal VsCode Settings with Fira Code, Dunk Mono Font and Ocean Material Theme
// Place your settings in this file to overwrite the default settings
{
"workbench.iconTheme": "material-icon-theme",
"emmet.syntaxProfiles": {
"blade": "html"
},
"editor.tabCompletion": true,
"editor.fontSize": 16,
"editor.lineHeight": 30,
"editor.tabSize": 2,
@geekwolverine
geekwolverine / incognito_check_disable.js
Created January 29, 2026 12:48 — forked from anvinjain/incognito_check_disable.js
TamperMonkey Script: Disable Incognito Mode check by websites in Chrome
// ==UserScript==
// @name Disable detection of incognito mode in browser by HOTSTAR website
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Prevent sites detecting if you're in incognito by calling the success callback of webkitRequestFileSystem even if it's failing.
// @author You
// @run-at document-start
// @match *://www.hotstar.com/*
// @grant none
// ==/UserScript==
@geekwolverine
geekwolverine / nv-chad.md
Created January 27, 2026 08:43 — forked from wisnuwiry/nv-chad.md
A basic keyboard shortcut for the vim/nvim editor.

General

  1. Show Documentation: K
  2. Go to Code Action: leader + ca
  3. Go to Definition: gd
  4. Comment: leader + /
  5. Toggle Line Number: leader + n
  6. New Buffer: leader + b
  7. Relative number: leader + rn
  8. Copy whole file: Ctrl + c
@geekwolverine
geekwolverine / brutezip.py
Created January 18, 2026 15:21 — forked from oaass/brutezip.py
BruteZip - Zip archive password brute forcer
#!/usr/bin/env python
import zipfile
import argparse
import re
import os
from time import strftime
"""
Attempt to extract zip archive with password
"""
h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
f activate link hints mode to open in current tab
F activate link hints mode to open in new tab
r reload
@geekwolverine
geekwolverine / stopmediumpaywall.txt
Created January 13, 2026 16:36 — forked from kamysheblid/stopmediumpaywall.txt
Bypass the annoying paywall on Medium.com and DataScience.com
// ==UserScript==
// @name Stop the Medium The Pay Wall
// @namespace StopThePayWall
// @version 1
// @include *medium*
// @include *datascience*
// ==/UserScript==
async function abc () {
var resp = (await fetch(location, { "credentials": "omit", "headers": { "Accept": "text/html,text/xhtml,text/xml,*/*", "Connection": "keep-alive", }, "method": "GET", "mode": "cors" }));
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,