This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program_source = """ | |
print "Test" | |
print "Hello world" | |
end | |
""" | |
def parse_source(source_data): | |
return list(filter(lambda line: line != "", source_data.splitlines())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def generate_hash(size=10): | |
alpha = [p for p in "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789_"] | |
return "".join([random.choice(alpha) for _ in range(size)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
class EchoProtocol(asyncio.Protocol): | |
def __init__(self): | |
self.transport = None | |
def connection_made(self, transport): | |
peer_name = transport.get_extra_info("peername") | |
print(f"Connection from {peer_name[0]}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Keymap | |
var keys = { | |
up: 38, | |
down: 40, | |
left: 37, | |
right: 39, | |
key_z: 90, | |
key_x: 88, | |
return: 13, | |
escape: 27, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char *rotateString(char *str, int count) { | |
size_t len = strlen(str); | |
int counter; | |
for(counter=0;counter < len;counter++) { | |
int value = str[counter]; | |
if((char)value != ' ') { | |
value = value + count; | |
str[counter] = value; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*C# Snippets | |
--------------- | |
Open process | |
-------------------------------- | |
*/ | |
using System.Diagnostics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#toriptables.sh | |
# I learned this from https://wiki.torproject.org/noreply/TheOnionRouter/TransparentProxy | |
#Reject all ICMP packets because they have no owner which creates a leak | |
iptables -A OUTPUT -p icmp -j REJECT | |
#All traffic for the user root will go through tor | |
iptables -t nat -A OUTPUT ! -o lo -p tcp -m owner --uid-owner root -m tcp -j REDIRECT --to-ports 9040 | |
iptables -t nat -A OUTPUT ! -o lo -p udp -m owner --uid-owner root -m udp --dport 53 -j REDIRECT --to-ports 53 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#toriptables.sh | |
# I learned this from https://wiki.torproject.org/noreply/TheOnionRouter/TransparentProxy | |
#Reject all ICMP packets because they have no owner which creates a leak | |
iptables -A OUTPUT -p icmp -j REJECT | |
#All traffic for the user root will go through tor | |
iptables -t nat -A OUTPUT ! -o lo -p tcp -m owner --uid-owner root -m tcp -j REDIRECT --to-ports 9040 | |
iptables -t nat -A OUTPUT ! -o lo -p udp -m owner --uid-owner root -m udp --dport 53 -j REDIRECT --to-ports 53 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Script: Handles motherless.com | |
By: Mouseroot | |
--]] | |
function probe() | |
return vlc.access == "http" and string.match(vlc.path,"motherless.com") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chrono Trigger | |
Earthbound | |
Final Fantasy III | |
Kirbys Dream Land 3 | |
Secret of Mana | |
Shadowrun | |
Super Mario RPG | |
Super Mario World | |
Zelda - A Link to the Past |