Skip to content

Instantly share code, notes, and snippets.

# Install
Download the package here http://www.lsi.com/support/Pages/download-results.aspx?keyword=megacli
Extract it
On RHEL, Install the rpm under Linux
On Ubuntu:
apt-get install rpm2cpio
cd Linux; rpm2cpio MegaCli-*.rpm | cpio -idmv
# Usage
List all physical disks:
alias javaws='/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws'
@technolo-g
technolo-g / gist:bdac8229829c07d4aedd
Created November 4, 2014 19:47
Consul/HAProxy vs VulcanD/EtcD

HAProxy + Consul vs VulcanD + EtcD

HAProxy/Consul

  • Pro: Both are production ready
  • Pro: Can handle any throughput we will see
  • Pro: More feature rich
    1. Healthchecks
    2. DNS and HTTP API available to map endpoints
    3. Lots of service discovery built in
  • Pro: Solution could be used in more than one place (bld/prod/etc..)
@technolo-g
technolo-g / squash.md
Last active August 29, 2015 14:08
Squash commits in a branch

This method is harder than using the get reset method above. Also it doesn't work well if you merged the master into the feature branch previously (you'll need to resolve all conflicts again).

What we are describing here will destroy commit history and can go wrong. For this reason, do the squashing on a separate branch:

git checkout -b squashed_feature

To squash all commits since you branched away from master, do

git rebase -i master
@technolo-g
technolo-g / nginx_docker_redirect.conf
Last active April 6, 2018 22:31
Redirect subdomain to port (nginx)
# This will redirect a numerical subdomain to a port.
# A use would be Docker contianers.
# This relies on the following DNS record:
# *.test.domain.com IN A 10.100.199.31
# and the fact that this container would run on the same Docker
# host as the backends.
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;