Skip to content

Instantly share code, notes, and snippets.

Arthur Zapparoli arthurgeek

View GitHub Profile
@arthurgeek
arthurgeek / application.service
Last active Dec 30, 2015
Generic Fleet Unit service using data from etcd as environment variables to docker containers
View application.service
[Unit]
Description=My application
# Requirements
Requires=etcd2.service
Requires=docker.service
# Dependency ordering
After=etcd2.service
After=docker.service
@arthurgeek
arthurgeek / coreos-stable-hvm-vpc.template
Created Dec 28, 2015
CoreOS CloudFormation Template for VPC
View coreos-stable-hvm-vpc.template
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/",
"Mappings" : {
"RegionMap" : {
"eu-central-1" : {
"AMI" : "ami-ffafb293"
},
"ap-northeast-1" : {
"AMI" : "ami-dae8c1b4"
View docker-compose.yml
proxy:
image: jwilder/nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock
ports:
- "80:80"
app:
build: .
ports:
View lotus.patch
diff --git a/lib/lotus/loader.rb b/lib/lotus/loader.rb
index e038d7f..9221840 100644
--- a/lib/lotus/loader.rb
+++ b/lib/lotus/loader.rb
@@ -23,7 +23,6 @@ module Lotus
load_configuration!
load_frameworks!
load_application!
- finalize!
end
@arthurgeek
arthurgeek / lotus.patch
Created Aug 19, 2014
Lotus Application Frameworks Isolation
View lotus.patch
diff --git a/lib/lotus/application.rb b/lib/lotus/application.rb
index e730b41..3b1d07c 100644
--- a/lib/lotus/application.rb
+++ b/lib/lotus/application.rb
@@ -1,5 +1,4 @@
require 'lotus/utils/class_attribute'
-require 'lotus/frameworks'
require 'lotus/configuration'
require 'lotus/loader'
require 'lotus/rendering_policy'
View ec2-check-reserved-instances
#!/usr/bin/python
import sys
import os
import boto
from pprint import pprint
# You can uncomment and set these, or set the env variables AWSAccessKeyId & AWSSecretKey
# AWS_ACCESS_KEY_ID="aaaaaaaaaaaaaaaaaaaa"
# AWS_SECRET_ACCESS_KEY="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
View gist:894752
$ sudo apt-get install gitweb
$ vim /etc/gitweb.conf
# Edite a variável $projectroot informando o diretório dos seus repositórios git.
$ vim /etc/apache2/conf.d/gitweb
RewriteEngine on
RewriteRule ^/gitweb/([a-zA-Z0-9_\-]+\.git)/?(\?.*)?$ /cgi-bin/gitweb.cgi/$1 [L,PT]
You can’t perform that action at this time.