Skip to content

Instantly share code, notes, and snippets.

# -*- encoding: utf-8 -*-
# Author: Epix
#
# Ban Xunlei IP for qBittorrent
# This script will check qBittorrent connected peers every 30 seconds.
# When an IP with UA in `BAN_PATTERNS` is found, the IP will be banned.
# However, if the IP is uploading or reporting 100% progress, it will say "WTF?"
import re
@exzhawk
exzhawk / download_gofile.py
Created January 3, 2022 12:40
Download gofile in cli. require aria2c
# -*- encoding: utf-8 -*-
# Author: Epix
import re
import subprocess
import fire
import requests
def main(gofile_url='https://gofile.io/d/Xf3djG'):
# -*- coding: utf-8 -*-
import os
from html.parser import HTMLParser
import dash
import pandas as pd
import plotly.express as px
import requests
from dash import html, dcc, dash_table, Input, Output
# -*- encoding: utf-8 -*-
# Author: Epix
#
# Ban Xunlei IP for deluge
# This script will check deluge connected peers per 30 seconds.
# When an IP with UA in `BAN_PATTERNS` is found, the IP will be added to `BLOCK_LIST_FILE`.
# However if the IP is uploading or reporting 100% progress, it will say "WTF?"
import logging
@exzhawk
exzhawk / bios.lua
Created February 12, 2017 14:55 — forked from fnuecke/bios.lua
Primitive remote code execution via OC network
local m=component.proxy(component.list("modem")())
m.open(2412)
local function respond(...)
local args=table.pack(...)
pcall(function() m.broadcast(2412, table.unpack(args)) end)
end
local function receive()
while true do
local evt,_,_,_,_,cmd=computer.pullSignal()
if evt=="modem_message" then return load(cmd) end
# coding:utf8
import random
from time import sleep
import requests
session_id = '98f5e6f5a7f711e4ae1700163e0243c6'
did = '352005048247251'
client = '2'
client_ver = '3.4.1'
network = '1'
package me.exz.fr4tfc;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import forestry.api.recipes.RecipeManagers;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;