Skip to content

Instantly share code, notes, and snippets.

View zeionara's full-sized avatar
🥮
hey you want some brownies bitch?

dima zeionara

🥮
hey you want some brownies bitch?
View GitHub Profile
@Alhadis
Alhadis / The Secret Agent (2025).srt
Last active April 20, 2026 07:45
Corrected subtitles
1
00:00:35,328 --> 00:00:37,330
Man 1: [speaking indistinctly on radio]
2
00:00:52,262 --> 00:00:53,471
[static]
3
00:00:53,555 --> 00:00:55,765
@Ujjwal0501
Ujjwal0501 / mv-docker-cache.sh
Created January 1, 2024 21:29
Change the default docker cache directory from /var/lib/docker to /home/docker-data
#!/bin/bash
set -e
FILE_PATH="/etc/docker/daemon.json"
# do not write if daemon.json already exists
if [ -e "$FILE_PATH" ]; then
echo "File ($FILE_PATH) already present. No changes made"
exit 1
@nol166
nol166 / .mongoshrc.js
Created May 19, 2023 12:00
my .mongoshrc file
// default prompt
const short = false;
// shorthand for show collections and dbs
const sc = () => db.getCollectionNames();
const sd = () =>
db
.getMongo()
.getDBs()
.databases.map((db) => db.name);
@zeionara
zeionara / run.sh
Last active May 5, 2025 09:22
Set up environment for the relentness project
#!/bin/bash
OTP_MAJOR_VERSION=25
ERLANG_VERSION=$OTP_MAJOR_VERSION.3
ASDF_VERSION=0.11.1
ELIXIR_VERSION=1.14.3-otp-$OTP_MAJOR_VERSION
# 1. Install randeer
@zrruziev
zrruziev / NUMA node problem.md
Last active July 7, 2025 20:48
Fixing "successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero" problem

What is NUMA (Non-Uniformed Memory Access)

Non-Uniform Memory Access (NUMA) is one of the computer memory design methods used in multiprocessor systems, and the time to access the memory varies depending on the relative position between the memory and the processor. In the NUMA architecture, when a processor accesses its local memory, it is faster than when it accesses the remote memory. Remote memory refers to memory that is connected to another processor, and local memory refers to memory that is connected to its own processor. In other words, it is a technology to increase memory access efficiency while using multiple processors on one motherboard. When a specific processor runs out of memory, it monopolizes the bus by itself, so other processors have to play. , and designate 'access only here', and call it a NUMA node.

1. Check Nodes

lspci | grep -i nvidia
  
01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 12GB] (rev a1)
@aaronsnoswell
aaronsnoswell / common-syllables.txt
Created February 5, 2022 12:59
The 322 most common syllables (ordered most common to least) in the 5000 most common English words
ing
er
a
ly
ed
i
es
re
tion
in
@notginned
notginned / waybar-config
Created December 21, 2020 14:08
Wayland recording with waybar indicator
"custom/wf-recorder": {
"format": "{}",
"interval": "once",
"exec": "echo ''",
"tooltip": "false",
"exec-if": "pgrep 'wf-recorder'",
"on-click": "exec $HOME/.scripts/wlrecord.sh",
"signal": 8
}
@ugursogukpinar
ugursogukpinar / sway-config
Last active August 8, 2025 03:57
wf-recorder for swaywm
set $screenrecorder `bash $HOME/scripts/toggle-screen-recorder.sh`
bindsym --to-code $mod+Shift+R exec $screenrecorder
@z11i
z11i / upload.sh
Last active June 24, 2025 18:36
Use curl to upload a file in a multipart/form-data request, with custom content-type for the file (not the request)
filename='yourfilename'
filetype='text/csv'
token='my oauth token'
url='http://localhost/upload'
curl "$url" \
--form "data=@$filename;type=$filetype" \
--form "name=somename" \
-H "Authorization: Bearer $token"
@webarchitect609
webarchitect609 / terminal.sh
Last active March 27, 2026 13:18
Git: disable GPG signing for current repo only.
# Write local
git config --local commit.gpgsign false
# Read local (if never set, can be an empty value)
git config --local commit.gpgsign