Skip to content

Instantly share code, notes, and snippets.

View serge-medvedev's full-sized avatar

Serge Medvedev serge-medvedev

  • Samsung R&D Institute Ukraine
  • Kyiv, Ukraine
View GitHub Profile
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Last active February 12, 2026 21:19 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6. Forked from @fabianoriccardi

Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@mikoim
mikoim / default.pa
Created October 18, 2017 15:24
Roland QUAD-CAPTURE UA-55 on Linux (PulseAudio)
#### Roland QUAD-CAPTURE UA-55
# Audio input is fucking unstable, it causes kernel to crash at least in my environment.
## OUTPUT1 (headphones)
load-module module-remap-sink sink_name=output1 remix=yes master=alsa_output.usb-Roland_QUAD-CAPTURE_000085D917665F98C210A52B1B8484F8-00.analog-surround-40 channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right
## OUTPUT2
load-module module-remap-sink sink_name=output2 remix=yes master=alsa_output.usb-Roland_QUAD-CAPTURE_000085D917665F98C210A52B1B8484F8-00.analog-surround-40 channels=2 master_channel_map=rear-left,rear-right channel_map=front-left,front-right
####
@niieani
niieani / throttle-and-debounce.sh
Last active September 21, 2024 21:50
throttle and debounce commands in bash
#!/usr/bin/env bash
declare -i last_called=0
declare -i throttle_by=2
@throttle() {
local -i now=$(date +%s)
if (($now - $last_called >= $throttle_by))
then
"$@"
@gabrielfalcao
gabrielfalcao / hexspeak
Created July 28, 2016 04:23 — forked from dannyow/hexspeak
Hexspeak word list
00D1E5
0111E
0115
011ED
011F1E1D
011F1E1D5
015E
01AF
01D1E
@thisismitch
thisismitch / haproxy.cfg
Last active October 18, 2024 15:19
Let's Encrypt Auto-Renewal script for HAProxy
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
maxconn 2048
@stathissideris
stathissideris / channel-as-seq.clj
Last active October 20, 2020 19:14
clojure async channels as lazy (and blocking!) sequences
(defn seq!!
"Returns a (blocking!) lazy sequence read from a channel."
[c]
(lazy-seq
(when-let [v (<!! c)]
(cons v (seq!! c)))))
(comment
(def stream (chan))
(go (dotimes [x 16]