This file contains hidden or 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
# simple effective works. | |
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n |
This file contains hidden or 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
# file is typically /home/username/.ssh/config or ~/.ssh/config | |
# Enable SSH connection multiplexing. | |
ControlMaster auto | |
ControlPath /tmp/ssh_mux_%h_%p_%r | |
# default settings for all hosts | |
Host * | |
AddKeysToAgent yes | |
UseKeychain yes |
This file contains hidden or 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
# Display current time in Unix epoch (seconds since 1970-01-01 UTC). | |
date +%s | |
# Display a specific time in Unix epoch. | |
date --date="1 Jan 2000" +%s | |
#Convert seconds since the epoch (1970-01-01 UTC) to a date | |
date --date='@2147483647' |
This file contains hidden or 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
# https://discussions.apple.com/thread/3416597 | |
chflags -R nouchg /path/to/directory |