Skip to content

Instantly share code, notes, and snippets.

View mauro-balades's full-sized avatar
😪
Focusing

mauro 🤙 mauro-balades

😪
Focusing
View GitHub Profile
@mauro-balades
mauro-balades / chas.py
Created March 23, 2022 09:17
PC crash in python
from itertools import count as crash
list(crash(0))
@mauro-balades
mauro-balades / main.py
Last active March 14, 2022 07:23
Change your sudo messages
#!/usr/bin/env python3
# Don't edit this.
all_insults = [
b"Just what do you think you're doing Dave?",
b"It can only be attributed to human error.",
b"That's something I cannot allow to happen.",
b"My mind is going. I can feel it.",
b"Sorry about this I know it's a bit silly.",
b"Take a stress pill and think things over.",
@mauro-balades
mauro-balades / wordle.py
Created February 16, 2022 09:10
Wordle for my IGCSE computer science course
# Import the random module
# for array shuffle
import random
# This is an array of available
# random words.
words = [
"dog", "cat", "fish", "giraffe",
"moo", "spider", "lion", "apple",
@mauro-balades
mauro-balades / readme.md
Last active March 6, 2023 04:39
Recent activity 👇

❗️ Opened issue #8 in Basl-Language/Basl-Compiler ❗️ Opened issue #1 in DaOnlyOwner/Hyc ❗️ Opened issue #1 in ScriptQuest/repo 🗣 Commented on #5 in Fuechs/Fux ❗️ Opened issue #5 in Fuechs/Fux

@mauro-balades
mauro-balades / README.md
Created January 3, 2022 12:18 — forked from roachhd/README.md
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

@mauro-balades
mauro-balades / bf.c
Created January 1, 2022 11:45 — forked from lifthrasiir/bf.c
/* The world's smallest Brainfuck interpreter in C, by Kang Seonghoon
* http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c */
s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17
?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;}
@mauro-balades
mauro-balades / waybacksploit.sh
Created December 24, 2021 08:22 — forked from chrisdlangton/waybacksploit.sh
The real dark web - find and exploit forgotten files on servers
#!/usr/bin/env bash
if [ -z $(which retire) ]; then
echo "retire not found. try npm install -g retire"
exit 1
fi
if [ -z $(which parallel) ]; then
echo "parallel not found. try 'apt install -y parallel'"
exit 1
fi
@mauro-balades
mauro-balades / dump_cert.sh
Created December 24, 2021 08:22 — forked from chrisdlangton/dump_cert.sh
Script to dump the entire cert.sh database as CSV
#!/usr/bin/env bash
SCHEMA=public
DB=certwatch
HOST=crt.sh
PORT=5432
USER='guest --no-password'
DIR=$(pwd)
mkdir -p $DIR
@mauro-balades
mauro-balades / ohmyzsh.md
Created December 10, 2021 15:48 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.

@mauro-balades
mauro-balades / socket_portable.c
Created December 6, 2021 13:01 — forked from FedericoPonzi/socket_portable.c
C sockets portable in windows/linux example
// As seen on http://www.di.uniba.it/~reti/LabProRete/Interazione(TCP)Client-Server_Portabile.pdf
#if defined WIN32
#include <winsock.h>
#else
#define closesocket close
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#endif
#include <stdio.h>