Skip to content

Instantly share code, notes, and snippets.

@viachaslavic
viachaslavic / be-bel-audio-corpus_downloader.py
Last active March 25, 2025 13:07
be-bel-audio-corpus dataset downloader
#!/usr/bin/env python
"""
Takes as input an argument with the starting page number (from 1 to 465). Without arguments downloads all from the first page.
"""
import os, sys
import urllib.request, json
n_pages = 465
@viachaslavic
viachaslavic / # AppleWin libretro INSTALL.md
Created October 28, 2024 05:01 — forked from Gemba/# AppleWin libretro INSTALL.md
Applewin libretro scriptmodule for RetroPie

INSTALLATION

On RetroPie shell as user pi:

cd RetroPie-Setup
mkdir -p ext/local/scriptmodules/libretrocores/lr-applewin
pushd ext/local/scriptmodules/libretrocores
wget -O lr-applewin.sh https://gist.githubusercontent.com/Gemba/9dff49492c3ad1d2d3fbb15bfb3ebc4a/raw/2d4edce7744be1fb1f610a52441b752a4f6f9931/lr-applewin.sh
popd
@viachaslavic
viachaslavic / nginx.conf
Created April 20, 2024 11:34 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@viachaslavic
viachaslavic / README.md
Created April 20, 2024 11:33 — forked from paolocarrasco/README.md
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@viachaslavic
viachaslavic / cpp-build-profile-2024.md
Created March 20, 2024 19:54 — forked from htfy96/cpp-build-profile-2024.md
C++ Build profiles for 2024 projects

C++ Build profiles for 2024 projects

Standard development profile

This profile achieves 50% - 80% release profile performance, while also provides a reasonable amount of safety checks and debugging support. This should also be the profile for your CI build.

Compilation flags

-Og -Wall -Wextra -D_FORTIFY_SOURCE=2 -fstack-protector-strong -g -D_GLIBCXX_ASSERTIONS
@viachaslavic
viachaslavic / gist:14e7fa1e3db1cd73549a22dced8efe9a
Created February 4, 2024 16:30 — forked from gtors/gist:effe8eef7dbe7052b22a009f3c7fc434
Makefile -> compilation_commands.json
@viachaslavic
viachaslavic / cheat_sheet.txt
Created July 23, 2022 17:39
GDB cheat sheet
GDB commands by function - simple guide
---------------------------------------
More important commands have a (*) by them.
Startup
% gdb -help print startup help, show switches
*% gdb object normal debug
*% gdb object core core debug (must specify core file)
%% gdb object pid attach to running process
% gdb use file command to load object
@viachaslavic
viachaslavic / README.md
Last active November 19, 2018 06:15 — forked from vpetrigo/README.md
Linux module load/unload scripts

Скопировать скрипт solution в директорию с модулем. Сделать его исполняемым с помощью команды:

chmod u+x solution

После этого для того, чтобы загрузить модуль solution и создать node для него с major-номером 240 нужно выполнить команду: