Skip to content

Instantly share code, notes, and snippets.

View yozachar's full-sized avatar
🏁
...

Yozachar yozachar

🏁
...
  • ::1/128
View GitHub Profile
@yozachar
yozachar / setup.md
Created May 3, 2024 04:33
Reproducible OS Installation?

Dev tools

$ bin

Path                     Version     URL                                 Status
~/.local/bin/bin         v0.17.5     github.com/marcosnils/bin           OK
~/.local/bin/host-spawn  v1.6.0      github.com/1player/host-spawn       OK
~/.local/bin/mise        v2024.4.12  github.com/jdx/mise                 OK
~/.local/bin/nu          0.93.0      github.com/nushell/nushell          OK
@yozachar
yozachar / system-update.desktop
Created May 3, 2024 03:56
Update your ArchLinux with a single click
[Desktop Entry]
Version=1.0
Name=System Update
Comment=Update your system
Exec=bash -c "~/.local/bin/sysu koe"
Icon=software-update-available
Terminal=true
Type=Application
Categories=Application;
@yozachar
yozachar / default-profile.json
Last active May 3, 2024 02:35
VSCode default cross-platform settings
{
"diffEditor.ignoreTrimWhitespace": false,
"editor.fontFamily": "'CaskaydiaCove Nerd Font', 'Cascadia Code', 'FiraCode Nerd Font', 'Fira Code', 'Droid Sans Mono', 'Courier New', Consolas, monospace",
"editor.fontLigatures": true,
"editor.linkedEditing": true,
"editor.wordWrap": "on",
"telemetry.telemetryLevel": "off",
"terminal.integrated.commandsToSkipShell": [
"-workbench.action.quickOpenView"
],
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"writer": {
"type": "string"
},
ID='XYZ' # PR number.
FORK='https://...' # SSH URL does not seem to work here.
BRANCH_NAME='hotfix' # Branch name *from* which PR originates.
# https://stackoverflow.com/a/32447696/8828460
git fetch upstream pull/$ID/head && git checkout FETCH_HEAD
# if commits are added to upstream/main after PR was created.
git pull upstream master --rebase
# make changes, commit & push (force if required) changes
git push $FORK HEAD:$BRANCH_NAME

iproute2

Tool: ip Command aliases: n neighbour, a addr, l link, r route, t tunnel, ma maddr, mr mroute, -s -stats -statistics Subcommand aliases: [n neighbour : s show f flush], [t tunnel : a add chg change, d del, ls show], [r route : h help]

Tool: ss Aliases: -a --all, -f --family=, -e --extend, -l --listening, -n --numeric, -r --resolve, -o --options, -t --tcp, -u --udp, -w --raw

Common Deprecated Linux networking commands and their replacements