Skip to content

Instantly share code, notes, and snippets.

View yogthos's full-sized avatar

Dmitri Sotnikov yogthos

View GitHub Profile
yogthos / http.clj
Last active July 9, 2024 17:05
#!/usr/bin/env bb
#_" -*- mode: clojure; -*-"
;; Based on
(ns http-server
(:require [babashka.fs :as fs]
[ :as browse]
[clojure.string :as str]
[ :refer [parse-opts]]
[org.httpkit.server :as server]
yogthos / rsave.clj
Last active May 31, 2024 16:24
Reddit video download
#!/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 http-get [url]
(-> @(http/get url {})
yogthos /
Last active March 24, 2024 10:35
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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 18, 2024 19:54
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%: