Skip to content

Instantly share code, notes, and snippets.

View gianrubio's full-sized avatar

Giancarlo Rubio gianrubio

View GitHub Profile
#!/bin/bash
#source https://raw.githubusercontent.com/Springest/elastic-beanstalk-deploy-notifications/bb9f1f77d6842dda005ed2c5795adf8a3ccf4b58/slack_deploy.sh
version="1.0"
function usage {
echo "AWS Elastic Beanstalk Deployment Notifications for Slack (v${version})"
echo
echo "Usage: appsignal_deploy.sh -a <APP NAME> -c <SLACK CHANNEL> -w <WEBHOOK URL> [options]"
echo
echo "Options:"
@gianrubio
gianrubio / gist:4b42ec7f55317422ef86
Created June 15, 2015 21:52
Randoms Secret Key
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
get_random_string(50, chars)
@gianrubio
gianrubio / gist:67e4c360db5d09789612
Created November 15, 2014 15:13
Serving cloudfront gzip
http://blog.kenweiner.com/2009/08/serving-gzipped-javascript-files-from.html
find . -type f ! -name '*.gz' -exec gzip "{}" \;