Skip to content

Instantly share code, notes, and snippets.

View dyumin's full-sized avatar
💭
Ready, Steady, Go

Alexey Dyumin dyumin

💭
Ready, Steady, Go
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active November 2, 2025 15:34
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@OrionReed
OrionReed / dom3d.js
Last active September 28, 2025 08:09
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@Romancha
Romancha / synology-media.yml
Last active February 25, 2024 19:20
Synology Sonarr + Radarr + Jackett + qBittorrent under OpenVPN
---
version: "2"
services:
qbittorrent:
image: linuxserver/qbittorrent:4.5.0
container_name: qbittorrent
mem_limit: 3000m
mem_reservation: 128M
depends_on:
- openvpn
@joepie91
joepie91 / mastodon-guide.md
Last active October 6, 2025 19:32
The 5-minute guide to the fediverse and Mastodon

The 5-minute guide to the fediverse and Mastodon

There are lots of guides explaining Mastodon and the broader fediverse, but they often go into way too much detail. So I've written this guide - it only talks about the basics you need to know to start using it, and you can then gradually learn the rest from other helpful fediverse users. Let's get started!

The fediverse is not Twitter!

The fediverse is very different from Twitter, and that is by design. It's made for building close communities, not for building a "global town square" or as a megaphone for celebrities. That means many things will work differently from what you're used to. Give it some time, and ask around on the fediverse if you're not sure why something works how it does! People are usually happy to explain, as long as it's a genuine question. Some of the details are explained in this article, but it's not required reading.

The most important takeaway is the "

@csobankesmarki
csobankesmarki / ssh_term_pkcs11_2.go
Created November 19, 2020 07:39 — forked from blacknon/ssh_term_pkcs11_2.go
ssh_term_pkcs11_2.go
package main
import (
"crypto"
"fmt"
"os"
"os/signal"
"syscall"
"github.com/ThalesIgnite/crypto11"
@eamirgh
eamirgh / gist:650f86393b1826dd5c5e5fc68dd5f06e
Last active September 6, 2025 16:51
RESET Goland Evaluation period LINUX
rm -rf ~/.config/JetBrains/GoLand2021.3/eval
rm -rf ~/.config/JetBrains/GoLand2021.3/options/other.xml
touch ~/.config/JetBrains/GoLand2021.3/options/other.xml
sed -i -E 's/<property name=\"evl.*\".*\/>//' ~/.config/JetBrains/GoLand2021.3/options/other.xml
rm -rf ~/.java/.userPrefs/jetbrains/goland
@l3nz
l3nz / README.md
Last active June 7, 2025 16:18
NOT Fixed: accountsd using 400% CPU on MacOS Catalina 10.15.7 (19H2)

accountsd using 400% CPU on MacOS Catalina 10.15.7 (19H2)

TL;DR: Still open - see below.

This morning I woke up to some not-so-nice surprise - my 2018 MPB 13" would be kind of totally unusable. The accountsd process was stable at 400%, battery was going like ice-cream in the Sahara, and opening up LibreOffice was like a major achievement.

I did check the logs (that were growing at like 500 lines per second) and I saw a lot of lines at FAULT level:

fault 07:54:04.271342+0200 accountsd Unentitled access by client 'CallHistoryPlugi' (selector: accountsWithAccountType:handler:)

@amir-saniyan
amir-saniyan / Using find_package with ExternalProject in CMake.cmake
Last active March 8, 2025 21:06
This gist shows how to use find_package with ExternalProject and ExternalProject_add in CMake.
# --------------------------------------------------
function (build_external_project target file_name)
set(CMAKELIST_CONTENT "
cmake_minimum_required(VERSION ${CMAKE_MINIMUM_REQUIRED_VERSION})
project(build_external_project)
file(MD5 \"${file_name}\" FILE_HASH)
@zackgalbreath
zackgalbreath / CMakeLists.txt
Last active October 30, 2022 12:00
gRPC add_subdirectory example
cmake_minimum_required(VERSION 3.14...3.16)
project(HelloGRPC)
# Clone gRPC at configure time.
include(FetchContent)
FetchContent_Declare(
grpc
GIT_REPOSITORY https://github.com/grpc/grpc.git
GIT_TAG v1.25.0
)
@yasuoka
yasuoka / curl_libevent.c
Last active March 31, 2025 01:50
glue for libcurl (multi) and libevent
//curl_libevent.c is currently maintaned at https://github.com/yasuoka/curl_libevent/
/*
* Copyright (c) 2019, 2025 YASUOKA Masahiko <[email protected]>