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 / mk-domains-including-subdomains.txt
Created August 3, 2021 15:36
Around 6800 domains on the *.mk web, including subdomains. For TLDs see: https://gist.github.com/whoeverest/adcd59b0f11fd875c9e6dd4fa6e91e71
02.mk
1188.inone.mk
1188.mk
15do3.mk
1cm.com.mk
1fitr.box.mk
1tv.mk
2015.mako-cigre.mk
2017.iffs.mk
2017.philosophicalfilmfestival.mk
@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
@whoeverest
whoeverest / server.go
Created July 7, 2021 17:27
A self-contained website executable, web server + web page. Written in GoLang using the embed directive/package.
package main
import (
"embed"
"io/fs"
"log"
"net/http"
)
//go:embed html
>>> import dis
>>> def f(): a, b = b, a
...
>>> dis.dis(f)
1 0 LOAD_FAST 0 (b)
2 LOAD_FAST 1 (a)
4 ROT_TWO
6 STORE_FAST 1 (a)
8 STORE_FAST 0 (b)
10 LOAD_CONST 0 (None)
@whoeverest
whoeverest / readme.md
Last active September 3, 2024 15:32
Фискални сметки, QR код / DataMatrix

Што содржи QR кодот на македонските фискални сметки?

Скенираш сметка, УЈП после Х време ти враќа дел од данокот. Како функционира? Пробав да откријам.

Првата претпоставка ми беше дека во самиот QR код се содржат информации за сметката, колку пари е, можеби кои производи ги содржи и тн.

Пробав да изгуглам QR код кој има ваков облик, квадрат со 4 региони, ама не најдов. Испадна дека не е QR код, туку DataMatrix тип на 2д баркод. https://en.wikipedia.org/wiki/Data_Matrix

На интернет секако има декодери, па успеав да декодирам една сметка.

со право ќе си го поставуваат
на пат ќе ти се јавуваат
кругови по просторијата и одново атакуваат
од црните изронети карпи се бакнуваат
држи во бескрајот на вселената бидуваат
обете страни на селскиот пат брануваат
во мене како да се бунтуваат
созревала свеста на луѓето се вљубуваат
воведуваат струја молерисуваат ставаат подови вградуваат
грб бришат пот и длабоко вдишуваат
> ssh 192.168.1.6
The authenticity of host '192.168.1.6 (192.168.1.6)' can't be established.
ECDSA key fingerprint is SHA256:M3r+bAZ95ex1nj8t5ipSwf+KrALLDxb6MV3HNgQMC6Q.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.6' (ECDSA) to the list of known hosts.
whoeverest@192.168.1.6's password:
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.8.3-040803-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com

MORE STATELY MANSIONS

WE'VE KNOWN the McClellans, Grace and George, for about two years now. They were the first neighbors to call on us and welcome us to the village.

I expected that initial conversation to lag uncomfortably after the first pleasantries, but not at all. Grace, her eyes quick and bright as a sparrow's, found subject matter enough to keep her talking for hours.

"You know," she said excitedly, "your living room could be a perfect dream! Couldn't it, George? Can't you see it?"

"Yup," said her husband. "Nice, all right."

@whoeverest
whoeverest / bf-in-bf.py
Last active January 21, 2017 20:34
Brainfuck, bootstrapped
# -: 0
# +: 1
# <: 2
# >: 3
# ,: 4
# .: 5
# [: 6, 8, 10 (different codes are used for matching parenthesis)
# ]: 7, 9, 11
bf_in_bf_code = blck(
sm = blck(
  array(var['A0'], 6, [97, 110, 100, 114, 101, 106]), # andrej
  let(var['i'], const(var['A0'])),
  while_expr(
    lt(load(var['i']), const(10)),
    blck(
      loadrb(load(var['i'])),
      prnt([]),
 let(var['i'], add(load(var['i']), const(1)))