Skip to content

Instantly share code, notes, and snippets.

View arthurgeek's full-sized avatar
:octocat:

Arthur Zapparoli arthurgeek

:octocat:
  • Scout24
  • Berlin, Germany
View GitHub Profile
node_modules
@arthurgeek
arthurgeek / application.service
Last active December 30, 2015 20:57
Generic Fleet Unit service using data from etcd as environment variables to docker containers
[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 December 28, 2015 13:26
CoreOS CloudFormation Template for VPC
{
"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"
@arthurgeek
arthurgeek / docker-compose.yml
Created May 23, 2015 13:18
docker nginx proxy
proxy:
image: jwilder/nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock
ports:
- "80:80"
app:
build: .
ports:
@arthurgeek
arthurgeek / lotus.patch
Created August 19, 2014 20:14
Lotus Patch 2
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 August 19, 2014 20:11
Lotus Application Frameworks Isolation
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'
#!/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"
$ 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]