Parses strace's output and indents filesystem access calls, colorizing and indenting equally all access to the same file descriptor.
| #!/usr/bin/env bash | |
| GCC="gcc-8.2.0" | |
| BINUTILS="binutils-2.31.1" | |
| GDB="gdb-9.1" | |
| PREFIX=$(pwd)/cross | |
| COMPILEFLAGS=--disable-multilib | |
| mkdir $GCC-elf-objs | |
| mkdir ${GDB}-build |
Last reviewed: October 2026 · Tested on: Debian 12.15, Kernel version 6.1.0-53-amd64,
iproute2: 6.1.0-3Conventions:
#= command run as root (or withsudo),$= command run as a normal user. Commands useiproute2(ip,bridge,tc) andnftables(nft). The olderifconfig,brctlandroutetools are deprecated and not used here.
Make sure you have WSL with the Windows 10 Fall Creators Update installed. Ranger uses rifle as a file handler
and you need its config file, rifle.conf. If you dont have it (should be in ~/.config/ranger/rifle.conf), run
the command ranger --copy-config=rifle, then edit the resulting file.
To run Windows applications from Ranger, we will use cmd.exe /C start "" <file>, which works after the Fall
Creators Update. The problem is that Ranger will feed in file paths using Unix pathing, but start expects Windows
pathing. We will solve this by using sed to translate the path.
Add below code to your rifle.conf and you will be able to run Windows applications for the chosen file extensions.
| bind -T root F12 \ | |
| set prefix None \;\ | |
| set key-table off \;\ | |
| set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\ | |
| set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\ | |
| set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\ | |
| if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\ | |
| refresh-client -S \;\ | |
| bind -T off F12 \ |
| git config merge.renameLimit 999999 | |
| git config --unset merge.renameLimit |
| # GIT heart FZF | |
| # ------------- | |
| is_in_git_repo() { | |
| git rev-parse HEAD > /dev/null 2>&1 | |
| } | |
| fzf-down() { | |
| fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
| } |
| # On slow systems, checking the cached .zcompdump file to see if it must be | |
| # regenerated adds a noticable delay to zsh startup. This little hack restricts | |
| # it to once a day. It should be pasted into your own completion file. | |
| # | |
| # The globbing is a little complicated here: | |
| # - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct. | |
| # - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error) | |
| # - '.' matches "regular files" | |
| # - 'mh+24' matches files (or directories or whatever) that are older than 24 hours. | |
| autoload -Uz compinit |
