Skip to content

Instantly share code, notes, and snippets.

View bkdinoop's full-sized avatar

Dinoop Balakrishnan bkdinoop

View GitHub Profile
#!/bin/bash
# wrapper around "aws cloudformation" CLI to ignore certain pseudo-errors
# aws cloudformation deploy exits with 255 for "No changes to deploy" see: https://github.com/awslabs/serverless-application-model/issues/71
# this script exits with 0 for that case
STDERR=$(( aws cloudformation "$@" ) 2>&1)
ERROR_CODE=$?
echo ${STDERR} 1>&2
@bkdinoop
bkdinoop / dropletSeach.py
Last active August 29, 2015 14:01
Search Droplet
#!/usr/bin/python
#Copyright (c) 2013, Dinoop Balakrishnan
#All rights reserved. See License
#Droplet Search Script
from os import getenv
import requests
import sys
import getopt
from prettytable import PrettyTable
@bkdinoop
bkdinoop / login-example
Last active April 8, 2024 07:05
Flask-Login : login.py created by https://github.com/maxcountryman : Matthew Frazier
# -*- coding: utf-8 -*-
"""
Flask-Login example
===================
This is a small application that provides a trivial demonstration of
Flask-Login, including remember me functionality.
:copyright: (C) 2011 by Matthew Frazier.
:license: MIT/X11, see LICENSE for more details.
"""