Skip to content

Instantly share code, notes, and snippets.

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

Yozachar yozachar

🏁
...
  • ::1/128
View GitHub Profile

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

@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"
],
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"writer": {
"type": "string"
},
@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 / clean_suse.sh
Last active June 3, 2024 10:17
Reproducible OS Installation?
sudo zypper rm --clean-deps gnome-chess gnome-mahjongg gnome-mines gnome-packagekit gnome-remote-desktop gnome-sudoku gnome-weather gnome-contacts gnome-extensions gnome-maps gnome-music gnome-photos gnome-video-effects gnome-calculator gnome-clocks gnome-console gnome-text-editor cheese eog evolution polari quadrapassel iagno swell-foop lightsoff simple-scan vinagre
sudo zypper rm --clean-deps tigervnc transmission-gtk xscreensaver libreoffice gimp MozillaFirefox xterm
sudo zypper in --no-recommends ffmpeg gstreamer-plugins-{good,bad,ugly,libav} libavcodec typelib-1_0-GTop-2_0 flac wavpack lame a52dec libmpcdec speex jasper dav1d rav1e libdv schroedinger libtheora libmad0 SVT-AV1
sudo zypper in --no-recommends btrfs-progs dosfstools exfatprogs f2fs-tools e2fsprogs jfsutils nilfs-utils ntfs-3g udftools xfsprogs ecryptfs-utils erofs-utils glusterfs kubo android-tools git-core
sudo zypper in --no-recommends tumbler webp-pixbuf-loader ffmpegthumbnailer freetype2 libgsf raw-thumbnailer totem gnome-epub-thumbnail