Skip to content

Instantly share code, notes, and snippets.

View wallabra's full-sized avatar

Gustavo Ramos Rehermann wallabra

View GitHub Profile
@wallabra
wallabra / hangman.hs
Created October 7, 2023 05:10
haskell practice: basic hangman
import Data.List
data Letter = Found (Char) | NotFound (Char) | Dash | None deriving Eq
type LetterSequence = [Letter]
data Hangman = Hangman {
word :: LetterSequence,
tries :: Int,
won :: Bool
@wallabra
wallabra / Python-PALIE-proposal.adoc
Last active October 18, 2021 23:55
PALIE: A proposed system of modifications to Python bytecode and attribute lookup

Python Attribute Lookup Internal Enumeration

This is a proposal to a modified version of Python bytecode, which supports an enumeration of class instance attributes that are unconditionally set by

How to join the Doominati cult

You need to interact (left-click) with an eastern bank booth in Varrock while possessing exactly 6,667 gold coins in your bank account (which does NOT include your backpack holdings). If you do, interacting with the booth will force a dialogue interaction with the banker behind, instead of taking you directly to the bank account screen. However, if those specific circumstances are met, and you interacted with the booth rather than the banker, there will be a hidden dialogue response option "Ask about the Lumbridge Doomsayer¹". The banker will

@wallabra
wallabra / a.sh
Created January 15, 2021 02:51
MyPy from github master, Python 3.9
PS1='\`\`\`
\`\`\`bash
$ '
python3.9 -m venv venv
venv/bin/pip install --upgrade pip setuptools wheel
venv/bin/pip install git+https://github.com/python/mypy/
mypyc --help
venv/bin/mypyc --help
@wallabra
wallabra / @@register.sh
Created March 28, 2020 00:12
Some project folder setup script.
#!/bin/bash
# Registers a project into the project management lifesystem.
# This automatically sets up Git, may add to lookup tables (if
# AUTHOR, LANGUAGE or MONTH parameters are specified).
# It will not set up the link from @public for you. To do this,
# you will want to instead use:
#
# ./@@publish my_repo
@wallabra
wallabra / DoomFox.dec
Created November 7, 2019 21:42
Early attempt at DoomFox.
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_0 : Inventory {Inventory.MaxAmount 1}
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_1 : Inventory {Inventory.MaxAmount 1}
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_2 : Inventory {Inventory.MaxAmount 1}
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_3 : Inventory {Inventory.MaxAmount 1}
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_4 : Inventory {Inventory.MaxAmount 1}
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_5 : Inventory {Inventory.MaxAmount 1}
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_6 : Inventory {Inventory.MaxAmount 1}
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_7 : Inventory {Inventory.MaxAmount 1}
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_8 : Inventory {Inventory.MaxAmount 1}
Actor _Call_hRv4Z5llxmKr0u9lqbukCp4DhHVBldKa56E_9 : Inventory {Inventory.MaxAmount 1}

Keybase proof

I hereby claim:

  • I am gustavo6046 on github.
  • I am gustavo6042 (https://keybase.io/gustavo6042) on keybase.
  • I have a public key ASC4LZrps2xmAbNA6RaJCwmWzOxAGsX2HxtqBgTaBXZNPQo

To claim this, I am signing this object:

@wallabra
wallabra / MushMatch Music.rst
Last active June 6, 2019 22:08
Documentation for MushMatch (GZDoom) music.

MushMatch Music

MushMatch is a Mush-based gameplay ormat, introduced in 2018 as an Unreal Tournament gametype (the spotlight of GusPack 2), and that in 2019 will have a Sentient Mushes version (with planned Zandronum compatibility).

To accompany its diversity of situations is a special soundtrack, meant to represent many kinds of moments.

func int() PrintBottles(int bottles, float* myPointer, int%* iterListPtr) {
int iters;
while (> bottles, 0) {
array:append(*iterListPtr, bottles);
print(+ "There are ", (+ (set bottles, (- bottles, 1)), 1), " bottles on the wall! Take one, ");
set iters, + iters, 1;
set *myPointer, (* *myPointer, 2);
if (> bottles, 0) print(+ "there are ", bottles, " to go! \n");
else print("there are no more!\n\n");
@wallabra
wallabra / zenmap-traceroute.log
Created November 15, 2018 20:36
Me tracerouting to Hellomouse
Starting Nmap 7.60 ( https://nmap.org ) at 2018-11-15 18:31 -02
Nmap scan report for hellomouse.net (91.92.144.105)
Host is up (0.25s latency).
Other addresses for hellomouse.net (not scanned): 2a07:5741:0:12ee::1
rDNS record for 91.92.144.105: new.hellomouse.net
TRACEROUTE (using port 443/tcp)
HOP RTT ADDRESS
1 5.99 ms _gateway (192.168.0.1)
2 15.04 ms 10.116.192.1