Skip to content

Instantly share code, notes, and snippets.

View 3urobeat's full-sized avatar
🐧

3urobeat 3urobeat

🐧
View GitHub Profile
@3urobeat
3urobeat / bot.py
Created March 30, 2020 20:57
A discord bot written in python for reporting steam64 IDs to another channel. The IDs get checked if they are valid and the user gets a cooldown applied.
## Customize this: ##
prefix = "pb"
reportchannelid = 123456789 #must be specified
allowedrolename = '' #leave empty to allow everyone to use this command
reportcooldowninms = 5000
messagestyle = 1 #1: fancy embed message, 2: Just plain ID with nothing else
token = "bot token"
## End ##
@3urobeat
3urobeat / autoexec.cfg
Last active April 11, 2022 18:06
csgo-autoexec
// Viewmodel
cl_viewmodel_shift_left_amt "0.500000"
cl_viewmodel_shift_right_amt "0.250000"
viewmodel_fov "68"
viewmodel_offset_x "2"
viewmodel_offset_y "2"
viewmodel_offset_z "-1"
viewmodel_presetpos "0"
viewmodel_recoil "0"
cl_bob_lower_amt "5.000000"
@3urobeat
3urobeat / thinkfan.conf
Last active June 2, 2023 15:51
Thinkpad T430 thinkfan config for less fan ramp-ups when doing basic stuff
##############################################################################
# thinkfan v1.3.1 Config
# ============================
#
# Please read the config manpage thinkfan.conf(5) before playing around with
# this.
#
# Example config can be found here:
# https://github.com/vmatare/thinkfan/blob/master/examples/thinkfan.yaml
#
@3urobeat
3urobeat / fancontrol.py
Last active June 28, 2020 10:30
Raspberry Pi temperature controlled GPIO Pin controller (Fan will run on half speed when GPIO2 is on and on fullspeed when GPIO3 is on (hardware controlled). Power comes from 5V Pin)
mintemp1 = 55
mintemp2 = 59
extendedcoolingtime = 90 # Let the fan run for another x sec to avoid on-off behaviour
import time
import os
import re
from time import localtime, strftime
import RPi.GPIO as GPIO
@3urobeat
3urobeat / mygists.md
Last active June 30, 2023 18:44
List of all my gists

This is a list of all my Gists in order to easily
display them on my GitHub profile.

My Gists Link
A role promotion cmd I wrote for the official Discord Server of the YT channel "Marmeladenoma" Link
A script to automatically login my headless machine into the house internet captive portal when it gets logged out for some reason Link
A discord bot written in python for reporting steam64 IDs to another channel. The IDs get checked if they are valid and the user gets a cooldown applied. Link
@3urobeat
3urobeat / script.py
Created August 15, 2020 18:16
A small python script to compress a folder full of images
from PIL import Image
import os
folder = "./Images/"
out_folder = "./Compressed/"
compress_quality = 75
for image in os.listdir(folder):
picture = Image.open(folder + image)
picture.save(out_folder + os.path.basename(picture.filename), "JPEG", optimize=True, quality=compress_quality)
@3urobeat
3urobeat / NoGamePanel.theme.css
Created October 1, 2020 18:33
A very short Better Discord theme that removes the bottom left panel of the game you are currently playing. Just apply it with your other favorite theme.
//META{"name":"NoGamePanel","description":"Removes the bottom left panel of the game you are currently playing.","author":"3urobeat","version":"1.0","website":"https://github.com/herreurobeat"}*//{}
.activityPanel-28dQGo {
display: none;
}
@3urobeat
3urobeat / program.py
Last active March 25, 2023 22:33
Automata theory date checking task from school as program
# Automata theory task from school as quick & small a program
# A company wants to award employees who started working in the company in the year 2006 with a pay bonus.
# Probably a lazy way to do it but works great for only 12 months
thirtymonths = ["04", "06", "09", "11"]
thirtyonemonths = ["01", "03", "05", "07", "08", "10", "12"]
print("When did you start working in this company?\nPlease input your date (DD.MM.YYYY): ")
datearray = input().split(".") # Stops execution of the whole program until input was submitted
@3urobeat
3urobeat / promote.js
Created December 17, 2020 20:20
A role promotion cmd I wrote for the official Discord Server of the YT channel "Marmeladenoma"
//Promote command plugin by https://github.com/HerrEurobeat
//This code isn't really customizeable because it is only needed for a specific use case
//Made for the Discord Bot of the official Discord Server of the YouTube channel "Marmeladenoma": https://www.youtube.com/channel/UCSSUG_vo76v04FKRnsWavMA
module.exports.run = async (bot, msg, args) => {
const config = require("./config.json")
if (args.length < 2) return bot.createMessage(msg.channel.id, "Fehler: Dir scheint ein Argument zu fehlen. Bitte achte auf die korrekte Eingabe.\nSyntax: !promote @Nutzer Rollenname");
if (msg.mentions.length < 1) return bot.createMessage(msg.channel.id, `Fehler: Der Nutzer "${args[0]}" konnte leider nicht gefunden werden.`)
@3urobeat
3urobeat / my-setup.md
Last active June 21, 2024 09:21
My PC & Homelab Setup

Desktop Setup:

OS: EndeavourOS (Arch Linux) with KDE on Wayland

CPU: AMD Ryzen 9 7900X
Cooler: BeQuiet Silent Loop 2 360mm
GPU: Sapphire Radeon RX 7900 XT
Motherboard: ASRock B650 Pro Rs White
RAM: 32GB Corsair Vengeance DDR5-6000 White
PSU: 1000W BeQuiet Straight Power 11
Storage: 2TB Samsung 980 Pro