Skip to content

Instantly share code, notes, and snippets.

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

fipso fipso

🍪
onhover=stealCookies
View GitHub Profile
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, {
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "kbdfans/kbd75/rev1",
"keymap": "kbdfans_kbd75_rev1_layout_mine",
"layout": "LAYOUT",
"layers": [
[
"KC_ESC",
@fipso
fipso / CSGOStickers.csv
Created September 17, 2021 15:53
All csgo stickers with id and name
1 Shooter
2 Shooter (Foil)
3 Shooter Close
4 Shooter Close (Foil)
5 Blue Snowflake
6 Blue Snowflake (Foil)
7 Polar Bears
8 Polar Bears (Foil)
9 Mountain
10 Mountain (Foil)
@fipso
fipso / autoexec.cfg
Last active September 8, 2022 10:11
my csgo config
bind mouse4 "use weapon_flashbang"
bind mouse5 "use weapon_smokegrenade"
bind c "use weapon_hegrenade"
bind x "use weapon_molotov;use weapon_incgrenade"
alias "+jumpthrow" "+jump;-attack"
alias "-jumpthrow" "-jump"
bind n "+jumpthrow"
viewmodel_fov "68"