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 / main.yml
Last active February 16, 2025 10:53
How to deploy an Astro (i.e static) website to S3/CloudFront using Github Actons
name: Deploy to S3
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
@whoeverest
whoeverest / pcb-art.md
Created February 2, 2025 21:01
Outline of a blog post on how to create artistic PCBs using Inkscape and KiCad

Disclaimer: I have zero background in electrical engineering; this here is my attempt to summarize what I've learned while creating my first PCB, which ended up not having any components on it. I set myself a simple goal: create a PCB that's an animal, and when you click a button, the eyes (LEDs) light up. I ended up in a slightly different path, and I ended up ordering a cat shaped PCB where the eyes are gold plated.

Key points:

  1. install KiCad and Inks

The beautiful sentence that is the web

I was asked recently on a livestream about people being against JavaScript on the web. I think it’s a hot take that… doesn’t actually exist. JavaScript is one of the building blocks of the web.

The metaphor I like to use is that web development is like serving a sentence. When you’re doing time, there’s structure, rules, and some elements that define your experience (and other things, sure, but let’s stick with this for now). In web development, HTML is the prison itself — the cold, hard walls. CSS is the decor — the motivational posters and the painted murals in the rec room. JavaScript? That’s the prison break.

You can have websites without JavaScript, of course. They’re static, locked down, unchanging. And that’s not a bad thing. It’s like this sentence:

“A quiet night in solitary confinement.”

<!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 / 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 [email protected]: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
'''
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");
}
}
?>