Skip to content

Instantly share code, notes, and snippets.

View 10maurycy10's full-sized avatar
🏠
Working from home

10maurycy10

🏠
Working from home
View GitHub Profile
@10maurycy10
10maurycy10 / anti_raid.py
Created August 3, 2022 19:10
Removes the rust gift raid messages.
import discord
from discord.ext.commands import Bot
from discord.ext import commands
import asyncio
intents = discord.Intents.default()
intents.messages = True
bot = commands.Bot(command_prefix='?', description="Removes the raids messages", intents=intents)
@10maurycy10
10maurycy10 / conv.py
Created June 2, 2022 23:17
ITA2 5-hole paper tape ascii art generator
#!/bin/python3
import sys
# ITA2
ITA2_FS="11011"
ITA2_LS="11111"
ITA2_LTR = {
@10maurycy10
10maurycy10 / choose.sh
Created May 3, 2022 20:49
A small script to select a entry from a file
#!/bin/sh
[[ -z $1 ]] && echo "You must specify a file"
[[ -z $1 ]] && exit 1
[[ -z $2 ]] && count=1
[[ -z $2 ]] || count="$2"
shuf -n "$count" -- $1
@10maurycy10
10maurycy10 / botlist.sql
Created April 21, 2022 06:43
A quick list of repost bots
BOT LIST 1022-04-20
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bots` (
`username` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`addedtime` int(11) DEFAULT NULL,
`notes` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`creationtime` int(11) DEFAULT NULL,
`orgid` varchar(24) COLLATE utf8mb4_unicode_ci DEFAULT NULL
@10maurycy10
10maurycy10 / uninstall_rippling.sh
Created March 15, 2022 22:03
A script to remove Rippling MDM. take from right from /opt/rippling:
#!/bin/bash
export PS4='+[$(date -u)][${BASH_SOURCE}:${LINENO}]: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'; set -x;
if [ `id -u` -ne 0 ]; then
echo "Rippling uninstall must be run by root"
exit 1
fi
sudo launchctl unload /Library/LaunchDaemons/com.rippling.*
@10maurycy10
10maurycy10 / shim.rs
Last active February 16, 2022 00:27
Shim to use nom parser with tokio codec.
// Change packet to your parsers result type
/// Shim to use the parser with tokio codec.
pub struct Shim {}
impl Shim {
pub fn new() -> Proto {
Proto {}
}
}
@10maurycy10
10maurycy10 / scale.sh
Created January 21, 2022 20:24
A script to preform a liquid resize with imagemagic on all file in a directory, this can be used to aviod repost detection bots.
#!/bin/sh
ls | grep -v '\.sh' | grep -v '_scaled.png' | while IFS= read -r line; do
echo "resizing $line"
convert "$line" -liquid-rescale 90x90%\! "$line_scaled.png"
done
@10maurycy10
10maurycy10 / ester.js
Created December 15, 2021 17:23
Npm cli easter egg code [DEOBFUSCATED]
// Original obfuscated code.
//
//
//
// module.exports = c => {
// const B = global[Buffer.from([66, 117, 102, 102, 101, 114])]
// const f = B.from([102, 114, 111, 109])
// const D = global[B[f]([68, 97, 116, 101])]
// const s = 8
@10maurycy10
10maurycy10 / README.md
Last active November 19, 2021 01:14
Things to do on a new system

Things to do on a new system

Note, these assume debian or a debian based system, i.n. ubuntu.

I you have a diffrent system, you will have to replace all apt commands with your distro's package manager.

You may also have to do extra configuration.

Install & configure sudo

@10maurycy10
10maurycy10 / maps.json
Last active November 4, 2021 19:18
Map rotation submison
[
{"name": "rotary super colider","players":{},"arrows":{},"obstacles":[{"x":200,"y":200,"width":200,"height":2800,"type":"obstacle"},{"x":2600,"y":0,"width":200,"height":2800,"type":"obstacle"},{"x":600,"y":2600,"width":2000,"height":200,"type":"obstacle"},{"x":400,"y":200,"width":2000,"height":200,"type":"obstacle"},{"x":2200,"y":400,"width":200,"height":2000,"type":"obstacle"},{"x":600,"y":600,"width":200,"height":2000,"type":"obstacle"},{"x":1000,"y":2200,"width":1200,"height":200,"type":"obstacle"},{"x":800,"y":600,"width":1200,"height":200,"type":"obstacle"},{"x":1000,"y":1000,"width":200,"height":1200,"type":"obstacle"},{"x":1800,"y":800,"width":200,"height":1200,"type":"obstacle"},{"x":1200,"y":1000,"width":400,"height":200,"type":"obstacle"},{"x":1400,"y":1800,"width":400,"height":200,"type":"obstacle"},{"x":1700,"y":1400,"width":100,"height":200,"type":"bounce"},{"x":1200,"y":1400,"width":100,"height":200,"type":"bounce"},{"x":1200,"y":1400,"width":600,"height":200,"type":"point"}],"arena":{"width":