Skip to content

Instantly share code, notes, and snippets.

View jaxgeller's full-sized avatar

Jackson Geller jaxgeller

View GitHub Profile
@jaxgeller
jaxgeller / gist:6fc01c60bb8e75200f5f
Created January 25, 2015 00:26
aws s3 static website policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
@jaxgeller
jaxgeller / gist:609187d05f04ea99b6b6
Created March 5, 2015 17:13
no-sudo docker ubuntu
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart
newgrp docker
@jaxgeller
jaxgeller / gist:4a0a66919b14f3a8f2ec
Last active June 8, 2016 21:17
nginx proxy cors
server {
location /proxied_site_get_around/ {
proxy_pass http://www.proxied_site.com/;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Origin' '*';
}
}
@jaxgeller
jaxgeller / redirect.html
Created April 27, 2015 18:50
quick redirect
<!DOCTYPE html>
<html lang="en">
<head>
<script>
window.location.href = 'https://google.com';
</script>
</head>
</html>
@jaxgeller
jaxgeller / gist:cf355254810f090f51ed
Created May 16, 2015 17:56
Disable coffeescript for Rails
config.generators do |g|
g.javascript_engine :js
end
@jaxgeller
jaxgeller / ember-content-security.js
Created June 2, 2015 14:18
Ember Content Security
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'identity-automation',
environment: environment,
baseURL: '/',
locationType: 'auto',
contentSecurityPolicy: {
'font-src': "'self' data: fonts.gstatic.com",
@jaxgeller
jaxgeller / gist:14b6e0b7abd0219a38f1
Created July 8, 2015 16:12
Disable Cyberduck Bonjour Notifications
# in terminal
defaults write ch.sudo.cyberduck rendezvous.enable false
@jaxgeller
jaxgeller / blank_instance
Last active August 29, 2015 14:24
Run blank ubuntu instance via docker
#assuming if /bin/bash
# to run and bash it
docker run -i -t ubuntu /bin/bash
# if already running
docker exec id -it /bin/bash
@jaxgeller
jaxgeller / linuxtools.sh
Created September 15, 2015 21:05
Install linux tools ubuntu
apt-get update && apt-get upgrade -y && \
apt-get install -y \
linux-tools-common
linux-tools-generic
linux-cloud-tools-generic
linux-tools-`uname -r`
linux-cloud-tools-`uname -r`