Skip to content

Instantly share code, notes, and snippets.

View madhuakula's full-sized avatar
I may be slow to respond.

Madhu Akula madhuakula

I may be slow to respond.
View GitHub Profile
@cmbaughman
cmbaughman / vagrant-win-howto.md
Last active September 7, 2018 09:15
Vagrant >=1.6 Windows Instructions

How to set up a Windows VM with Vagrant

Create your VM

==================

  1. Obtain a windows vm from Modern IE.
  • Win 8 OSX
curl -O -L "https://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE10-Win8.1&parts=5&filename=VMBuild_20131127/VirtualBox/IE10_Win8/Mac/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"
@acolyer
acolyer / service-checklist.md
Last active September 5, 2026 12:28
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@matthewmueller
matthewmueller / osx-for-hackers.sh
Last active May 15, 2026 06:38
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
@andrealbinop
andrealbinop / setup-modernie-vagrant-boxes.md
Last active November 15, 2025 02:45
Setup modern.ie vagrant boxes

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

@chrisgilbert
chrisgilbert / gist:58f57c82f74162ed5c0f
Last active June 25, 2021 19:17
Run Ansible or Ansible-Playbook from Rundeck
#!/bin/bash
# Interpret whether the input needs to go to ansible, or ansible-playbook and run appropriately
# First update the git repos for each project
/usr/bin/update-git-repos
export ANSIBLE_FORCE_COLOR=1
export ANSIBLE_RETRY_FILES_ENABLED=False
@jhmartin
jhmartin / gist:c09e450853e273ee88f2
Created May 21, 2015 15:47
Multiple Elasticsearch outputs in logstash
#http://pastebin.com/xGt6vv9R from yardenbar
output {
if [type] == "postfix" {
elasticsearch {
host => [ "ES_HOSTNAME" ]
protocol => "transport"
cluster => "elasticsearch"
index => "postfix-%{+YYYY.MM.dd}"
manage_template => true
template_overwrite => true
@anantshri
anantshri / gist:54dfb341b84a30a993df
Created June 6, 2015 03:09
netsparker automaton
for /F "tokens=*" %%A in (url.txt) do (
"C:\Program Files (x86)\Netsparker\Netsparker.exe" /a /silent /p %Profile% /u http://%%A /rt "Detailed Scan Report" /r "scan_%%A_80_report.html"
"C:\Program Files (x86)\Netsparker\Netsparker.exe" /a /silent /p %Profile% /u https://%%A /rt "Detailed Scan Report" /r "scan_%%A_443_report.html"
)
$ curator show indices — older-than 90 — time-unit days — timestring ‘%Y.%m.%d’
$ curator snapshot — repository s3-backup indices — older-than 90 — time-unit days — timestring ‘%Y.%m.%d’
$ curator delete indices — older-than 90 — time-unit days — timestring ‘%Y.%m.%d’
$ curl -XPUT 'http://localhost:9200/_snapshot/s3-backup' -d '
{"type": "s3",
"settings": {
"bucket": "logstash-backup",
"region": "us-west-2",
"access_key": "A4z43slikeiwouldtellyouAUU12",
"secret_key": "1PNaNotSoSecretIGuessOZEQa"
}}'