Last active
May 16, 2017 21:47
-
-
Save CesarCapillas/092af829f9f3aba7e62f9f30e6a66065 to your computer and use it in GitHub Desktop.
Ubuntu recipes
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
#Si difieren mucho puede indicar balloning | |
ps aux | tr -s ' ' | awk 'BEGIN{sum=0}{ sum+=$6 }END{print expr sum/1024}' | |
free -m |
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 hdparm -tT /dev/sda | |
dd if=/dev/zero of=/tmp/testfile1 bs=1G count=1 oflag=direct | |
dd if=/dev/zero of=/tmp/testfile3 bs=512 count=1000 oflag=direct |
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
curl -v telnet://<server>:<port> | |
nc -v <server> <port> | |
telnet <server> <port> | |
nmap <server> |
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
dpkg --get-selections | grep linux-image | |
sudo apt-get remove --purge <linux-image-?.?.?-??-generic> |
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
find . -name \*.metadata.properties.xml -print0 | tar -czvf /root/backup-xml.tar.gz --null -T - |
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
Ubuntu 16.04: | |
sudo apt-get install ttf-mscorefonts-installer fonts-noto fontconfig libcups2 libfontconfig1 libglu1-mesa libice6 libsm6 libxinerama1 libxrender1 libxt6 | |
Ubuntu 14.04: | |
sudo apt-get install ttf-mscorefonts-installer fonts-droid fontconfig libcups2 libfontconfig1 libglu1-mesa libice6 libsm6 libxinerama1 libxrender1 libxt6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment