Skip to content

Instantly share code, notes, and snippets.

View yogthos's full-sized avatar
🤷‍♂️

Dmitri Sotnikov yogthos

🤷‍♂️
View GitHub Profile
@yogthos
yogthos / http.clj
Last active July 9, 2024 17:05
http-serve.bb
#!/usr/bin/env bb
#_" -*- mode: clojure; -*-"
;; Based on https://github.com/babashka/babashka/blob/master/examples/image_viewer.clj
(ns http-server
(:require [babashka.fs :as fs]
[clojure.java.browse :as browse]
[clojure.string :as str]
[clojure.tools.cli :refer [parse-opts]]
[org.httpkit.server :as server]
@yogthos
yogthos / rsave.clj
Last active May 31, 2024 16:24
Reddit video download
#!/usr/bin/env bb
(require '[clojure.java.shell :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 {})
:body))
@yogthos
yogthos / README.md
Last active March 24, 2024 10:35
command line util for grabbing current weather for a city using OpenWeather API

usage

Create an account at https://openweathermap.org 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](https://www.businessinsider.com/majority-of-trump-voters-believe-its-time-

@yogthos
yogthos / The-Policy-Of-Communist-Parties-Towards-Intellectuals.pdf
Last active September 18, 2024 02:50
The Policy Of Communist Parties Towards Intellectuals
Loading
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
yogthos / getting-free.md
Last active September 18, 2024 02:50
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
yogthos / USSR.md
Last active November 7, 2024 15:53
some facts about USSR

This was the first successful socialist uprising in the world, which transformed Russia from a poor and backward feudal country into a leading economic, political, military, scientific, technical, cultural and educational power!

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%: