Skip to content

Instantly share code, notes, and snippets.

View yogthos's full-sized avatar

Dmitri Sotnikov yogthos

View GitHub Profile
yogthos / rsave.clj
Last active January 7, 2024 02:21
Reddit video download
View rsave.clj
#!/usr/bin/env bb
(require '[ :refer [sh]]
'[clojure.string :as string]
'[cheshire.core :as cheshire]
'[org.httpkit.client :as http]
'[clojure.walk :as walk])
(defn fetch-data
(-> @(http/get url {})
yogthos /
Last active March 5, 2023 18:14
command line util for grabbing current weather for a city using OpenWeather API


Create an account at and get an API key. Note that it can take up to a couple of hours for the key to become active. Add an environment variable OPEN_WEATHER_API_KEY with the value of the key.

run the script:

./weather.clj Toronto,CA

A significant segments of the population in US no longer believe that the government has their best interest at heart, and that's a measure of how far the collapse of US empire has progressed. The underlying cause for this mistrust is the decline of material conditions over the past several decades. This trend accelerated in particular with the fall of USSR as detailed in this excellent essay by Michael Parenti. However, most people in US lack the political or economic education to understand what's happening leading to public lashing out in random and irrational ways. People understand that they're being hurt, but they don't understand who is responsible or why it's happening.

Loss of public trust in the government means that US is now locked into an irreversible decline. The mainstream is split across political lines, with [democrats and republicans simply blaming the other tribe](

yogthos / The-Policy-Of-Communist-Parties-Towards-Intellectuals.pdf
Last active June 29, 2021 15:06
The Policy Of Communist Parties Towards Intellectuals
View The-Policy-Of-Communist-Parties-Towards-Intellectuals.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 /
Last active May 14, 2023 20:10
mirror of Getting Free essay by James Herod

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

Fourth Edition, January 2004

by James Herod

yogthos /
Last active July 22, 2023 18:21
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 August 2, 2023 07:37
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/