Skip to content

Instantly share code, notes, and snippets.

View Dorovich's full-sized avatar

Vido Dorovich

View GitHub Profile
@jdah
jdah / network_demo.c
Created January 31, 2024 14:22
the world's most basic client/server
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
static void server() {
// create socket
@jdah
jdah / macro_explanation.c
Created January 31, 2024 14:21
explaining some C macro magic
// so a cool trick with macros in C (and C++) is that since macros inside of
// macros are stille evaluated by the preprocessor, you can use macro names as
// parameters to other macros (and even construct macro names out of out of
// parameters!) - so using this trick if we have some macro like
// this:
#include <stddef.h>
#define MY_TYPES_ITER(_F, ...) \
_F(FOO, foo, 0, __VA_ARGS__) \
@Gavinok
Gavinok / config.py
Last active June 29, 2026 02:09
This is a simplified version of my qutebrowser config
import subprocess
import os
from qutebrowser.api import interceptor
"""
qutebrowser settings for video
for more settings check out
https://qutebrowser.org/doc/help/settings.html
"""
@alexkar598
alexkar598 / ss13 on linux.md
Last active November 11, 2026 04:27
ss13 on linux
  1. Use ubuntu (or debian works too for this guide) because i dont know the other distros lmao

  2. Run sudo dpkg --add-architecture i386 to enable 32 bits package lists

  3. Run sudo apt update to make sure package lists are updated

  4. Run sudo apt install libstdc++6:i386 to get the dependencies for BYOND

  5. Find the download link for BYOND's linux version from http://www.byond.com/download/, looks like http://www.byond.com/download/build/513/513.1536_byond_linux.zip