This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim9script | |
# https://vimhelp.org/vim9.txt.html | |
set nocompatible | |
if has("mac") | |
set clipboard=unnamed | |
else | |
set clipboard=unnamedplus # requires vim-gui-common | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
cargo install alacritty | |
curl -sL https://github.com/alacritty/alacritty/releases/latest/download/Alacritty.svg -o ~/.local/share/icons/Alacritty.svg | |
curl -sL https://github.com/alacritty/alacritty/releases/latest/download/Alacritty.desktop -o ~/.local/share/applications/Alacritty.desktop | |
sudo apt install -y python3-venv golang tmux | |
#curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Source this script to set a given wineprefix as current prefix, | |
# and winerunner as default wine command is the current terminal. | |
# You will be able to just use 'wine' command in the terminal and make action to prefix. | |
# | |
# Wine runner path must be the path containing the bin/wine directory. | |
# if /some/wine/path/bin/wine then use /some/wine/path (this also applies to Proton runners) | |
# | |
# ie: $ source winesource /to/some/prefix /with/some/winerunner | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char* | |
file_get_contents(const char* fname) { | |
FILE* f = fopen(fname, "r"); | |
if (!f) { | |
printf("failed reading %s", fname); | |
return NULL; | |
} | |
fseek(f, 0, SEEK_END); | |
long sz = ftell(f); |