Skip to content

Instantly share code, notes, and snippets.

sudo nala install git curl wget nano htop bash-completion tree zsh trash-cli trash-cli python3-dev python3-pip python3-setuptools snapd
pip3 install thefuck --user
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg &&
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg &&
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list >/dev/null
sudo nala update
sudo nala install gh -y
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
@gafda
gafda / wsl-setup.sh
Last active April 24, 2024 11:24
WSL2 Startup process
#!/bin/bash
# Install WSL Ubuntu: wsl --install -d Ubuntu-22.04
# Stop WSL Ubuntu: wsl --shutdown Ubuntu-22.04
# Uninstall WSL Ubuntu: wsl --unregister Ubuntu-22.04
# List all WSL images: wsl -l -v
DISTRO=ubuntu2204
architecture=$(uname -m)
%This is a basic English-to-Prolog translator. It uses a
%pathfinding algorithm to find the meaning of each sentence.
%For example, output([a,is,greater,than,B],X) means X = (a > b).
%The input is an English phrase. The output is a Prolog expression.
output(Input,Output) :-
is_output(Output),
means(Input,Output).
@VermeilChan
VermeilChan / compile-aseprite-win.md
Last active April 24, 2024 11:19
Compile Aseprite from source code for Windows 11/10 x64
@Jekins
Jekins / Markdown-docs.md
Last active April 24, 2024 11:17
Руководство по оформлению Markdown файлов

Руководство по оформлению Markdown файлов

Markdown - это облегчённый язык разметки, который преобразует текст в структурированный HTML. Следующее руководство поможет вам разобраться, как использовать Markdown.

Заголовки

# Заголовок первого уровня
## Заголовок второго уровня
### Заголовок третьего уровня
#### Заголовок четвёртого уровня
##### Заголовок пятого уровня
@YuukiToriyama
YuukiToriyama / national_anthem.bash
Last active April 24, 2024 11:16
bashでオルゴール【Sox】
# National Anthem of USSR
# Execute this ShellScript, Soviet Anthem Plays You.
# Before execute this, you have to install Sox(Sound eXchange) by apt-get / brew.
mkdir notes
cat << EOS | grep -v "-" | awk '{if ($1=="z") {print "sox -n -c 2 notes/"NR".wav trim 0.0", $2/4} else {{print "sox -n -c 2 notes/" NR ".wav synth", $2/4, "pluck", $1, "\\"} if ($3!="") {print "pluck", $3, "\\"} if ($5!="") {print "pluck", $5, "\\"} print ";"}}END{print "sox notes/{1.."NR-1"}.wav song_new.wav"}' | bash
E4 4 G4 4 C5 4
-
D4 1 G4 1 D5 1
C4 1 G4 1 C5 1
@plentz
plentz / nginx.conf
Last active April 24, 2024 11:15
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
@gubatron
gubatron / dht-walkthrough.md
Last active April 24, 2024 11:14
DHT walkthrough notes

DHT Walkthrough Notes

I've put together these notes as I read about DHT's in depth and then learned how the libtorrent implementation based on the Kademlia paper actually works.

What problem does this solve?

400,000,000,000 (400 billion stars), that's a 4 followed by 11 zeros. The number of atoms in the universe is estimated to be around 10^82. A DHT with keys of 160 bits, can have 2^160 possible numbers, which is around 10^48

@RedenticDev
RedenticDev / Explanations.md
Last active April 24, 2024 11:12
Xcode 12 & Theos

What's the problem?

Since June, 22nd 2020, Apple released Xcode 12, that introduced an internal change to Xcode, breaking arm64e compilation for tweak developers. This is due to the update of clang/LLVM (AFAIK) in Xcode 12.

Details of the problem

More specifically:

  • compiling code for arm64e with Xcode 11 Toolchain will allow this code to run only on iOS 13 and lower for all versions!.
  • compiling code for arm64e with Xcode 12 Toolchain will allow this code to run only for iOS 14 (and up).

No error is produced during compilation. arm64 slices are not concerned and will always work.

@dnncomp
dnncomp / Docker. Работа с образами.md
Last active April 24, 2024 11:19
[Docker. Работа с образами] #docker

Работа с образами

docker images или docker image ls — посмотреть список образов

docker rmi <образ> [образ...] или docker image rm <образ> [образ...] — удалить образ(ы)

Работа с контейнерами

docker run <образ> — поднять контейнер на основе образа