Skip to content

Instantly share code, notes, and snippets.

View idontwantcookies's full-sized avatar

Felipe Muniz idontwantcookies

  • Brazil
  • 14:09 (UTC -03:00)
View GitHub Profile
TOTAL_TILES = 18 * 34
AVERAGE_TIME_PER_ATTEMPT_IN_SECONDS = 40
ATTEMPTS_PER_TILE = 2
def single_tile(tiles_left: int):
wrong_tile = (tiles_left - 1) / tiles_left
correct_tile_bad_luck = 1 / (tiles_left - 1) * 1 / 4
return wrong_tile + correct_tile_bad_luck
@idontwantcookies
idontwantcookies / sxhkdrc
Created July 3, 2020 08:05
bspwm+sxhkd config for KDE/Plasma with arrow keys as default + Krunner and konsole as launcher / terminal
#
# wm independent hotkeys
#
# terminal emulator
super + Return
konsole
# program launcher
super + @space
@idontwantcookies
idontwantcookies / shreddit-simple.py
Last active June 30, 2020 01:32
shred comments on specific subreddits by writting gibberish and then deleting them
import string
import random
import praw
user_agent = "Subreddit comment shredder"
subs_to_delete_from = ['embarassing_sub_name1', 'embarassing_sub_name2']
reddit = praw.Reddit(
@idontwantcookies
idontwantcookies / arch-backup.sh
Last active February 5, 2022 12:54
Simple bash scripts to backup and restore several archlinux config files
# Storing installed package names
echo $(pacman -Qentq) > pacman.bak
echo $(pacman -Qemtq) > yay.bak
echo $(pacman -Qdq) > pacman-optdep.bak
# Global config
cp /etc/pacman.conf pacman.conf.bak
cp -r /etc/pacman.d/ pacman.d.bak
cp /etc/hosts hosts.bak
cp /etc/hostname hostname.bak