Skip to content

Instantly share code, notes, and snippets.

View adilnaimi's full-sized avatar
🏠
Working from home

Adil Naimi adilnaimi

🏠
Working from home
View GitHub Profile

Keybase proof

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:

@adilnaimi
adilnaimi / svmon_servers.sh
Created October 31, 2018 14:11 — forked from kurtcebe/svmon_servers.sh
Scripts to determine memory usage in AIX boxes. I use there for monitoring Application Server processes (Java), to get a better idea about how much of the resources are utilized by servers. svmon, used like this, does not take into account memory used as file system buffer, so gives a better idea compared to topas.
# 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
@adilnaimi
adilnaimi / circleci-heroku-continuous-deployment2.0.md
Created May 8, 2018 09:29 — forked from lauraturk/circleci-heroku-continuous-deployment2.0.md
instructions for deploying from circleci2.0 to heroku
@adilnaimi
adilnaimi / AWS Security Resources
Created June 17, 2016 02:15 — forked from chanj/AWS Security Resources
AWS Security Resources
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
@adilnaimi
adilnaimi / monitoring.md
Created October 5, 2015 12:09 — forked from ceejbot/monitoring.md
monitoring manifesto

monitoring: what I want

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

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'

OS X Preferences


#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
@adilnaimi
adilnaimi / nginx.conf
Last active August 29, 2015 14:19 — forked from plentz/nginx.conf
# 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