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
@leonardofed
leonardofed / README.md
Last active May 8, 2025 09:49
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Blog post: Ryan Huber - Distributed Security Alerting
https://medium.com/several-people-are-coding
Video: Zane Lackey - Building a Modern Security Organization
https://duo.com/blog/duo-tech-talk-building-a-modern-security-engineering-organization
Krebs on Security Blog
https://www.krebsonsecurity.com
Sony Breach
# Set variable values
$resourceGroupName = "SnapshotDemo"
$location = "West US"
$vmName = "SnapshotDemo"
$vmSize = "Standard_A1"
$vnetName = "SnapshotDemo"
$nicName = "snapshotdemo98"
$dnsName = "snapshotdemo"
$diskName = "SnapshotDemo"
$storageAccount = "snapshotdemo5062"
$ curl -XPOST "http://localhost:9200/_snapshot/s3-backup/curator-20151116142900/"\
"_restore?pretty=true&wait_for_completion=true"
$ 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"
}}'
$ 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’
@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"
)
@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
@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
@andrealbinop
andrealbinop / setup-modernie-vagrant-boxes.md
Last active May 28, 2023 01:54
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