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
Place in .profile | |
ViewMemory() { | |
vm_stat | perl -ne '/page size of (\d+)/ and $size=$1; /Pages\s+([^:]+)[^\d]+(\d+)/ and printf("%-16s % 16.2f Mi\n", "$1:", $2 * $size / 1048576);' | |
} | |
alias free=ViewMemory |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# <bitbar.title>Kubeconfig Context Changer</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Chris Opland</bitbar.author> | |
# <bitbar.author.github>copland</bitbar.author.github> | |
# <bitbar.desc>Displays active kubeconfig context and allows you to easily change contexts.</bitbar.desc> | |
# <bitbar.dependencies>python,kubectl</bitbar.dependencies> |
OlderNewer