I hereby claim:
- I am adilnaimi on github.
- I am adilnaimi (https://keybase.io/adilnaimi) on keybase.
- I have a public key ASDEe7cjcanMu1WtqVS3Rf7IwzAPHHlVDlV2Ktq1w-gNQAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# memory usage for all active processes | |
svmon -P | |
# same as above, one line for each process | |
svmon -P -O summary=basic,unit=MB | |
# Total memory used and total number of processes | |
svmon -P -O summary=basic,unit=KB | tail +4 | awk '// {total+=$3} END {print "total mem=",total/1024/1024," GB, n=",NR}' | |
# Total memory used and total number of processes for Java processes only |
Prerequisites:
INTRO | |
I get asked regularly for good resources on AWS security. This gist collects some of these resources (docs, blogs, talks, open source tools, etc.). Feel free to suggest and contribute. | |
Short Link: http://tiny.cc/awssecurity | |
Official AWS Security Resources | |
* Security Blog - http://blogs.aws.amazon.com/security/ | |
* Security Advisories - http://aws.amazon.com/security/security-bulletins/ | |
* Security Whitepaper (AWS Security Processes/Practices) - http://media.amazonwebservices.com/pdf/AWS_Security_Whitepaper.pdf | |
* Security Best Practices Whitepaper - http://media.amazonwebservices.com/AWS_Security_Best_Practices.pdf |
# prepare
$ sudo apt-get install -y linux-headers-generic build-essential dkms
$ sudo apt-get -y purge virtualbox-guest*
# get the right ISO from http://download.virtualbox.org/virtualbox/
$ wget http://download.virtualbox.org/virtualbox/5.0.16/VBoxGuestAdditions_5.0.16.iso
# mount the ISO
$ sudo mount -o loop,ro VBoxGuestAdditions_5.0.16.iso /mnt
I've recently shifted from a straight engineering job to a job with a "dev/ops" title. What I have discovered in operations land depresses me. The shoemaker's children are going unshod. Operations software is terrible.
What's driving me craziest right now is my monitoring system.
What I have right now is Nagios.
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
#!/bin/bash | |
# | |
# pgpool-II replication manager | |
# | |
# Interfaces with pgpool's pcp command-line tools to provide access to common functions for managing | |
# load-balancing and failover. | |
# | |
# [email protected] | |
# 2011-08-28 |