Skip to content

Instantly share code, notes, and snippets.

View whoeverest's full-sized avatar

Andrej T. whoeverest

  • Skopje, Republic of Macedonia
View GitHub Profile
@whoeverest
whoeverest / petting.py
Created May 24, 2015 12:13
A "Brainfuck with variables" compiler
import string
def transform(petting_code):
""" Transforms Brainfuck-with-variables to
normal Brainfuck code."""
variables = {}
# move left so leftmost location is empty.
# the value 1 in the address space represents
# the beginning of it.
<!DOCTYPE html>
<html>
<head>
<title>WASM fractal // Beer.js 0.33 // Ohrid 26.08.2023</title>
</head>
<body>
<canvas id="canvas" width="500" height="500" style="border: 1px solid black"></canvas>
<script>
let ctx = canvas.getContext('2d');

25 Things..

Once you've been tagged, you are supposed to write a note with 25 random things, facts, habits, or goals about you. At the end, choose 25 people to be tagged. You have to tag the person who tagged you. If I tagged you, it's because I want to know more about you.

(To do this, go to "notes" under tabs on your profile page, paste these instructions in the body of the note, type your 25 random things, tag 25 people (in the right hand corner of the app) then click publish.)


  1. I love spending most of my life in front of a PC, chatting with my buddies on MSN occasionaly and reading random shit about science and technology.. Oh well, I'm a nerd, what can I do.
@whoeverest
whoeverest / acm-books.md
Last active January 2, 2023 10:37
Full download books from ACM.

Computers

  • Aspect-Oriented Programming with the e Verification Language
  • No Code Required
  • The Essential Persona Lifecycle

Artificial Intelligence

  • Ai for game developers
  • Computational Intelligence
@whoeverest
whoeverest / dzhanakot.txt
Last active December 12, 2022 12:21
Џанакот - Гане Тодоровски, probably.
Еднаш среде градинка една, покрај стари другари седнат,
дури в градинкава темна со ладното водев спор,
така напашкан тонев в скука, само чекав да ме спука,
зачув некој имал мука со ганџава надвор.
“Некој почетник – реков – има мука”
Тоа сал и ниту збор.
Ах, си спомнам, многу јасно: в декемвриска вечер касна,
жарта од џоклата што згасна и го напуни мојот дроб.
Жедно благото го пекав; од дилерот штуро чекав
@whoeverest
whoeverest / install-wrk.md
Created December 7, 2022 16:17
How to compile and install wrk on Ubunutu 22.10: https://github.com/wg/wrk
git clone git@github.com:wg/wrk.git
cd wrk/
make
sudo ln -s ~/path/to/wrk/wrk /usr/local/bin/wrk

To make sure it works run wrk --help.

@whoeverest
whoeverest / syscalls-since-kernel-1.0.txt
Created November 28, 2022 09:19
System calls that have been in the Linux kernel since 1.0 (1994) and are still present today
System calls since 1.0 that are still in the kernel:
access(2) 1.0
acct(2) 1.0
adjtimex(2) 1.0
alarm(2) 1.0
brk(2) 1.0
chdir(2) 1.0
chmod(2) 1.0
chroot(2) 1.0
@whoeverest
whoeverest / mk-tlds.txt
Last active May 1, 2022 14:19
Around 2900 active *.mk TLDs (top-level domains); crawled on August 2021
02.mk
1188.mk
15do3.mk
1cm.com.mk
1tv.mk
22bet.mk
22BET.mk
24apteka.mk
24auto.mk
24fudbal.mk
'''
Straregy: for the first guess, find the 5 most common letters and construct
a word with those. Most common letters have most chance of revealing _some_
information about the target word.
With around 6100 five letter words taken from the Linux wordlist, guessing
'esaro' reduces the search space by 5x, on average, so to 1200. Repeating the
process 6 times (including constructing a letter frequency counter) will likely
yield a result, considering that: 6100 / (5^6) < 1
<?php
function number_to_words($number) {
if ($number == 1235) {
return "илјада двеста триесет и пет";
} else {
throw new Exception("unknown input");
}
}
?>