Skip to content

Instantly share code, notes, and snippets.

View stackexpress-shivam's full-sized avatar

Shivam Bajpai stackexpress-shivam

View GitHub Profile
@stackexpress-shivam
stackexpress-shivam / delete-ami
Created June 25, 2018 08:04 — forked from elasticdog/delete-ami
Deregister an Amazon Machine Image (AMI) and delete its corresponding root device snapshot
#!/usr/bin/env bash
#
# delete-ami
#
# A script to deregister an Amazon Machine Image (AMI) and
# delete its corresponding root device snapshot.
#
##### Functions

Make sure these boxes are checked before submitting/approving the PR

General

  • The code works
  • The code is easy to understand
  • Follows coding conventions
  • Names are simple and if possible short
  • Names are spelt correctly
  • Names contain units where applicable
  • There are no usages of magic numbers
@stackexpress-shivam
stackexpress-shivam / Base Pass
Last active April 27, 2018 10:17
Base password for alpha machines
alpha:$6$J58ELviz$q7afcdkmqvfZGfVoLBr6hUUF/l4kFNKHGfcoBfWWTv9h5JnfFnDFQUE7l1KQNPPAYR3/q1hm0mrdUa6r37FeO/:17130:0:99999:7:::
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDpSoP1RnDqFppVLn5yX9tvIQXxFLfcR6Xc91rbgmETpo+epZqgq5uy9MuPnTyIvCFf1Yw3aRFZWUWZBknoFLgyPz122B/Iw6Ld8IP4UMTNc+SeUlb2wMa8RBkiUgvzdzpiqXOpkKPyzCHYC59RvNCPiAYqE18xwb9W/oaGf+my91aIURRzB/xo4K3D8IDGGgnq4AXMUTFy3CC5Lm9QMhF4w7Ku1VVLRTT9JzkUPJwqpd4VECDywJNTLFRw9pIf0Zdq1JFUeuTkxeiU8Gm4qIMavCMal1FONQ3o38yxh4D5ksSAoqkkUxAe/PdXpZaiAyNRIieIC7aDonxBTGtJx3j79cmz8q8hmSQk9URu+TOEx/3SCzRYPuqOzERrcMa/bJCHznbXi6xghYK2Dgn4aDUzwl/NBDviSthbaLjOXdUprKS/8VTjHxEBPjZ3Z+4fULkY40ISgt86WVRM+l7U4I7rtH3PTGZsNOjEE75aZ1Yb8UKSYu6SnEOkjudJIakfNKnsOwKQFHaEwElqdUMtlw09F9IB31HyV9kqGLFJKKCdOiZ1xy5XRjDkif9Z1Ax9gsF9x7nv8ZMYax7wWl0yrHwa9hQXSo03rdbhwcfDbBNP9kwYnjiJAgDn35o7BQz8lchTDaZy+8rPhUB5YwFpT5J2cur6+1EKMe9rmWAPN6nTpQ== [email protected]
@stackexpress-shivam
stackexpress-shivam / tmate-install.sh
Last active December 28, 2020 07:01
Install tmate for APYL
#!/bin/bash
platform='unknown'
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
platform='linux'
elif [[ "$unamestr" == 'FreeBSD' ]]; then
platform='freebsd'
elif [[ "$unamestr" == 'Darwin' ]]; then
platform='mac'
fi
@stackexpress-shivam
stackexpress-shivam / pdns.py
Created December 29, 2016 13:13 — forked from sandromello/pdns.py
Power DNS API implementation
import unittest, sys, requests, json, uuid
from datetime import datetime
#url = 'http://192.168.99.100/servers/localhost/zones/'
#url = 'http://192.168.99.100/servers/localhost/zones/example.local.'
#url = 'http://192.168.99.100/servers'
SERVER = 'pdns.tempo.com.br:8080'
HEADERS = {'X-API-Key' :'changeme'}