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 / 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
@fipso
fipso / ValidateTelegramBotLogin.js
Last active April 8, 2022 13:45
validate telegram bot login using nodejs
//Validate data
const pairs = Object.entries(tg)
.filter((e) => e[0] !== "hash")
.sort((a: any, b: any) => a[0].localeCompare(b[0]));
const tgData = pairs.map((p: any) => p.join("=")).join("\n");
console.log(tgData);
const key = crypto
.createHash("sha256")
.update(process.env.TELEGRAM_BOT_TOKEN!)
.digest();
@fipso
fipso / pain.js
Created October 31, 2021 11:53
csgoempire deposit calculator
import fetch from 'node-fetch';
let deposit = 0;
//Insert the total amount of stats pages. (click last to see the number of the actual last one)
const MAX_PAGES = 10;
async function run() {
for (let i = 1; i < MAX_PAGES+1; i++) {
const res = await fetch("https://csgoempire.com/api/v2/user/transactions?page=" + i, {