Skip to content

Instantly share code, notes, and snippets.


Dmitri Sotnikov yogthos

View GitHub Profile
View A note of appreciation from the

A note of appreciation from the rich

Let's be honest: you'll never win the lottery.

On the other hand, the chances are pretty good that you'll slave away at some miserable job the rest of your life. That's because you were in all likelihood born into the wrong social class. Let's face it -- you're a member of the working caste. Sorry!

As a result, you don't have the education, upbringing, connections, manners, appearance, and good taste to ever become one of us. In fact, you'd probably need a book the size of the yellow pages to list all the unfair advantages we have over you. That's why we're so relieved to know that you still continue to believe all those silly fairy tales about "justice" and "equal opportunity" in America.

Of course, in a hierarchical social system like ours, there's never been much room at the top to begin with. Besides, it's already occupied by us -- and we like it up here so much that we intend to keep it that way. But at least there's us

yogthos /
Created Jan 17, 2021
mirror of Getting Free essay by James Herod

Getting Free

A sketch of an association of democratic, autonomous neighborhoods and how to create it

Fourth Edition, January 2004

by James Herod

yogthos /
Last active Feb 1, 2021
some facts about USSR

Russia went from a backwards agrarian society where people travelled by horse and carriage to being the first in space in the span of 40 years. Russia showed incredible growth after the revolution that surpassed the rest of the world:

USSR provided free education to all citizens resulting in literacy rising from 33% to 99.9%:

yogthos /
Last active Apr 4, 2020
setting up a Xonotic server on Ubuntu 18

Guide for running a Xonotic dedicated server on Ubuntu 18.04

sudo apt install git gcc autoconf automake libtool libgmp3-dev g++ libz-dev libjpeg-dev libx11-dev libgl-dev libxpm-dev libasound2-dev libsdl2-dev unzip 
git clone git://
cd xonotic/
./all update -p
./all compile -r
cp server/server.cfg data/
View shuffle-play.clj
#!/usr/bin/env bb
(require '[ :refer [sh]])
(defn exit [error]
(println error)
(System/exit 1))
(defn open-folder [folder]
(let [folder (some-> folder (io/file))]
(when (nil? folder)
yogthos /
Last active Jun 18, 2021
Clojure beginner resources
yogthos / pixelfed-images.cljs
Last active Jul 15, 2019
a script to download photos from Pixelfed data export JSON file
View pixelfed-images.cljs
#!/usr/bin/env lumo
(ns pixelfed-images.core
[clojure.walk :refer [prewalk]]
[cljs.core :refer [*command-line-args*]]
[clojure.string :as string]))
(def fs (js/require "fs"))
(def https (js/require "https"))
(def stream (.-Transform (js/require "stream")))
yogthos / core.cljs
Last active Aug 6, 2020
Gjs ClojureScript example
View core.cljs
(ns gjs-example.core)
(defn main []
(set! (-> js/imports .-gi .-versions .-Gtk) "3.0")
(let [Gtk (doto (-> js/imports .-gi .-Gtk) (.init nil))
window (Gtk.Window.
{:type (-> Gtk .-WindowType .-TOPLEVEL)
:title "A default title"
:default_width 300