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 / 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 / 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 / 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 / chas.py
Created March 23, 2022 09:17
PC crash in python
from itertools import count as crash
list(crash(0))
/* Not the nicest code we ever wrote... */
<?php
require_once 'HTTP/Request.php';
require_once 'Text/Wiki/Mediawiki.php';
class Wikipedia
{
@mauro-balades
mauro-balades / passwordCracker.py
Created March 30, 2022 10:30 — forked from AndreUltrasi/passwordCracker.py
Password Cracker in Python
references = {}
dictionary = []
def randomized(x, y):
from random import randint
return randint(x, y)
def cracker_per_digit(x):
@mauro-balades
mauro-balades / bruteforce.py
Created March 30, 2022 10:33 — forked from raphaelvallat/bruteforce.py
Password brute-force in Python
"""
Password brute-force algorithm.
List of most probable passwords and english names can be found, respectively, at:
- https://github.com/danielmiessler/SecLists/blob/master/Passwords/probable-v2-top12000.txt
- https://github.com/dominictarr/random-name/blob/master/middle-names.txt
Author: Raphael Vallat
Date: May 2018
Python 3
@mauro-balades
mauro-balades / debug.hpp
Created April 2, 2022 11:10 — forked from Tagussan/debug.hpp
C++ debug header. Use -DDBUG_ option when compiling. Many thanks for https://www.creativ.xyz/dump-cpp-652/
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define repi(itr, ds) for (auto itr = ds.begin(); itr != ds.end(); itr++)
@mauro-balades
mauro-balades / SCSS.md
Created April 20, 2022 15:17 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@mauro-balades
mauro-balades / ANSI-color-codes.h
Last active April 21, 2022 01:57 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
#ifndef __ANSI_COLOR_CODES_H_
#define __ANSI_COLOR_CODES_H_
//Regular text