Skip to content

Instantly share code, notes, and snippets.

View fipso's full-sized avatar
🍪
onhover=stealCookies

fipso fipso

🍪
onhover=stealCookies
View GitHub Profile
@fipso
fipso / find_block.py
Created October 18, 2025 15:21
A python script to find blocks in minecraft world saves. Specialized to find suspicious clay in atm10
import amulet
from amulet.api.block import Block
from amulet.api.chunk.biomes import BiomesShape
import numpy as np
import logging
import gc
# Suppress PyMCTranslate warnings about modded blocks
logging.getLogger("amulet").setLevel(logging.ERROR)
logging.getLogger("PyMCTranslate").setLevel(logging.ERROR)
// ==UserScript==
// @name Auto CutCaptcha Solver with 2Captcha
// @namespace https://2captcha.com/
// @version 1.0
// @description Automatically solves CutCaptcha using 2Captcha API
// @match *://*/*
// @grant GM.xmlHttpRequest
// ==/UserScript==
(async function () {
@fipso
fipso / meross_refoss_direct_http.go
Created April 12, 2025 21:32
directly connect to meross/refoss smart plug. use mitmproxy to get your accounts key
package main
import (
"bytes"
"crypto/md5"
"encoding/json"
"fmt"
"io"
"log"
"math/rand"
@fipso
fipso / raydium_pool_state.go
Created December 19, 2024 11:37
Decode the LIQUIDITY_STATE_LAYOUT_V4 (Raydium JS SDK) aka. data of the Pool Account
package main
import (
"fmt"
"math/big"
"encoding/binary"
"github.com/gagliardetto/solana-go"
)
@fipso
fipso / fix_blurry_prices.js
Created August 13, 2024 09:27
Userscript for cannalivery.com to fix blurry prices bug
// ==UserScript==
// @name Cannalivery Preise Fix
// @namespace http://tampermonkey.net/
// @version 2024-08-11
// @description Fix fuer Preisanzeige auf Cannalivery
// @author fipso
// @match https://www.cannalivery.com/de/sortiment/cannabisblueten/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=cannalivery.com
// @grant none
// ==/UserScript==
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources:
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
@fipso
fipso / fetch_nft_meta_json.js
Last active February 9, 2023 13:43
fetch metadata json file from nft by contract address and token id
const { ethers } = require("ethers");
const rpc = "";
const addr = "";
async function main() {
// no providers object in ethers v6+
const provider = new ethers.JsonRpcProvider(rpc);
const abi = [
systemctl enable NetworkManger
systemctl start NetworkManger
pacman -Syu git base-devel neovim awesome nvidia lightdm lightdm-slick-greeter base-devel bluez blueberry tor discord openssh fish wget ttf-hack-nerd redshift picom variety unzip p7zip zip maim xclip
systemctl enable blueooth
systemctl start bluetooth
vim /etc/lightdm/lightdm.conf
greeter-session=lightdm-slick-greeter
import * as web3 from "@solana/web3.js";
import crypto from "crypto";
const MIN_OFFSET = 5;
const httpsRPC =
"";
const wssRPC =
"";
@fipso
fipso / github-noreply.sh
Last active April 18, 2022 08:56
Little bash script to download all of your public github repos and rewrite your username and email in all commits
#!/bin/bash
GH_USERNAME=<GitHub Username>
mkdir -p /tmp/gh-noreply/
cd /tmp/gh-noreply
for repo in $(curl --request GET https://api.github.com/users/$GH_USERNAME/repos | jq --raw-output '.[] .name'); do
git clone https://github.com/$GH_USERNAME/$repo
cd $repo