This file contains 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
# | |
# Put below lines your .bashrc or similar shell configuration file. | |
# | |
# Thus this 'installs' the edra system as part of your shell environment. | |
# These lines below are what matter: | |
# | |
# Uses file ~/bash_aliases (in your home folder, thus tilde ~) | |
# for storing aliases. | |
# | |
# When you issue 'edra', your favorite editor pops up, and you can edit & save the .rc file |
This file contains 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
cdu -b ./node_modules/ | awk '{print $3}' | sed 's/\///g' | |
# We can do it this way. But let's not.. | |
# Dependencies: | |
# 'cdu', the "color du" | |
# Compile it via sources. | |
# And hey, the -b switch used here for cdu actually counteracts the tool's | |
# main powers of existence, because -b means "do it black-and-white" |
This file contains 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
# For file's sake: find file by string search (recursive from current folder) | |
alias ffs='find . -type f | grep -i $*' | |
# Usage: | |
# | |
# Find all files that contain the word 'android' in them | |
# ffs android | |
# | |
# Find all C source files from current folder and recursive under any subfolder: | |
# ffs '\.c$' |
This file contains 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 | |
# TypeScript / react native tooling: "fitsy" search tool | |
# | |
# Configuration | |
# Set the 'lookfor' variable string to any pattern that matches the source code | |
# snippets you like to search for | |
# | |
# Add features |
This file contains 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
# Die, Android (on Ubuntu) -- This will be placed into your generic aliases collection | |
# Put to ~/.bash_aliases, and remember to source it in ~/.bashrc | |
alias 'dand=sudo killall -KILL qemu-system-i386' | |
# EDRA as an add-on, also into your ~/.bash_aliases | |
alias edra='vim ~/.bash_aliases; ba && hash -r' | |
# And ba - yet again it goes into ~/.bash_aliases | |
alias ba='. ~/bash_aliases; echo Realiased!' |