Skip to content

Instantly share code, notes, and snippets.

View pocari's full-sized avatar
🍻
🍻

pocari pocari

🍻
🍻
View GitHub Profile
@mahemoff
mahemoff / mysql.sh
Last active October 6, 2019 01:26
circleci mysql upgrade
#!/bin/bash
set -x
set -e
export DEBIAN_FRONTEND=noninteractive
sudo apt-get --purge autoremove -y mysql-server-5.6
curl -LO https://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections
@t11a
t11a / custom_policy_request.rb
Created June 13, 2015 01:58
CloudFront - Signed Cookies Using a Custom Policy
#!/usr/bin/env ruby
require 'json'
require 'base64'
require 'openssl'
### CloudFront Key Pair
KEY_PAIR_ID = "XXXXX"
PRIVATE_KEY = "pk-XXXXX.pem"
### Destination URL and RESOURCE for Policy
@t11a
t11a / custom_policy_request.rb
Last active July 25, 2017 06:07
CloudFront - Signed Cookies Using a Custom Policy
#!/usr/bin/env ruby
require 'json'
### CloudFront Key Pair
KEY_PAIR_ID = "XXXXX"
PRIVATE_KEY = "pk-XXXXX.pem"
### Destination URL and RESOURCE for Policy
DST_URL = "https://xxxx.cloudfront.net/index.html"
RESOURCE = "http*://xxxx.cloudfront.net/index.html"
@SteelPangolin
SteelPangolin / EC2-Describe-IAM-policy.json
Created January 30, 2015 21:23
Get an Amazon Elastic Beanstalk environment's name from inside one of its instances
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"ec2:Describe*"
],
"Effect": "Allow",
"Resource": "*"
}