This is an alias to shells to display mount output in formatted columns.
Add this alias to your rc shell(.bashrc, .zshrc, or whatever):
alias mountc='mount | column -t | sort -V'
Example output:
This is an alias to shells to display mount output in formatted columns.
Add this alias to your rc shell(.bashrc, .zshrc, or whatever):
alias mountc='mount | column -t | sort -V'
Example output:
#!/usr/bin/zsh | |
TRAPDEBUG() { | |
read -q "?run \"$ZSH_DEBUG_CMD\"? " || setopt errexit | |
echo > /dev/tty | |
} | |
echo "First command" | |
echo "Second command" | |
echo "Last command" |
RAM
---
vm-1 = 1,024 MiB
vm-2 = 2,048 MiB
Total: 3,072 MiB
CPU(s)
------
Python script to create snapshots for Samba shares using rsync.
The first snapshot will be a full copy(cp -a) the next ones will be hard link to the first.
run smb-snapshot -h
for help.
Created a Repo: https://github.com/0x3333/smb-snapshots
ForkLift is in version 3, but I have a license for version 2. I want to install ForkLift version 2 using brew cask
, if I just run brew cask install forklift
it will install version 3.
To install version 2 install the last commit in the cask file forklift.rb
for version 2, which is 2.6.6, commit 0bc4d90.
# | |
# Authors: | |
# Tercio Gaudencio Filho <[email protected]> | |
# | |
# Ex: | |
# USERNAME@HOSTNAME [/FULL/PATH] ✘ $ TIME | |
function prompt_0x3333_setup { | |
setopt LOCAL_OPTIONS | |
unsetopt XTRACE KSH_ARRAYS |