Skip to content

Instantly share code, notes, and snippets.

Prasanna Gautam prasincs

Block or report user

Report or block prasincs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
prasincs /
Last active May 24, 2018
AWS Secure Account Initial Setup Checklist

Creating Secure AWS Account Checklist

[ ] Add MFA for Root account

[ ] Create Password Policy Compliant with CIS Foundations

[ ] Create IAM Master and Manager Roles

[ ] Enable AWS Config

prasincs / evident_search_buckets.rb
Created May 24, 2018
Searching Unencrypted Buckets quickly and remediate
View evident_search_buckets.rb
# Requires ESP_ACCESS_KEY_ID, ESP_SECRET_ACCESS_KEY environment variables
require 'esp_sdk'
require 'open3'
def bucket_encrypted? (bucket)
stdout, stderr, status = Open3.capture3("aws s3api get-bucket-encryption --bucket #{bucket}")
reports = ESP::Report.all
View duo_integration.go
package main
import (
# git-distance-based SEMVER
# Optional Flag: -t to cause the script to actually tag the github repo
# Using -t will cause the original behavior of Jerry's version.
# Not using -t will not touch the github repo or tags. Just will set the VERSION output and VERSION file
# Optional Argument: path to VERSION file. Defaults to VERSION in the current director
# major and minor, once released, are designated by add RELEASE-vx.y tag and the patch will be derived based on distance to that tag
View qubole_snippet
deployment_environment: qubole
# custom remote services are prefixed with <name>- they're only looked at
# if the deployment_environment matches the prefix
# To be filled by environment variables
qubole-auth_token: %(QUBOLE_API_TOKEN)s
qubole-cluster_id: 1111
# This needs to be changed at some point
qubole-py_files: /tmp/
#!/usr/bin/env bash
CURDIR="$( cd "$( dirname "$0" )" && pwd )"
mkdir -p $CURDIR/zones/$DOMAIN
zone_id=$(aws route53 list-hosted-zones-by-name --dns-name $DOMAIN --output text | grep HOSTEDZONES | awk '{gsub("/hostedzone/","",$3); print $3}'| head -n1)
domains=$(aws route53 list-resource-record-sets --hosted-zone-id $zone_id --query 'ResourceRecordSets[*].Name' --output text | xargs -n1 | sort -u | xargs)
for addr in $(echo $domains); do
addr=$(echo $addr | tr -d '"' )
# remove the last character
prasincs / xmonad.hs
Last active Oct 23, 2017
Learning to walk again, I believe I have waited long enough... where do I begin?
View xmonad.hs
module Main where
import XMonad
import XMonad.Config.Gnome
import XMonad.Util.EZConfig
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageHelpers
import XMonad.Layout.Fullscreen
View read_ec2_metadata.go
package main
import (
prasincs /
Created Oct 9, 2017
Notes on installing Ubuntu with GNOME on Lenovo Thinkpad X1 (Gen 5)

Installing the OS

  • Had a lot of trouble with the defaults in Debian when I tried dual booting
  • Installed Ubuntu with full disk encryption and it’s still pretty fast

Installing GNOME and getting rid of Unity

  • apt-get install ubuntu-gnome-desktop
  • Restart
  • You have to uninstall unity too for a full switch. Don’t bother with purge
  • apt-get remove unity
prasincs /
Last active Sep 30, 2017
STL plans


[X] 9-9:50 -> Keynote on “Measuring and Optimizing Tail Latency”, Theater

[X] 10:10 - 10:50 -> The Biological Path Towards Strong AI, Midland States Bank

[ ] 11:10 - 11:50 -> The hows and whys of a distributed SQL database, Theater

[X] 11:10 - 11:50 -> Running Programs In Reverse for Deeper A.I.

You can’t perform that action at this time.