Skip to content

Instantly share code, notes, and snippets.

View include's full-sized avatar
👽
Free Jaffa

Francisco Cabrita include

👽
Free Jaffa
View GitHub Profile
@include
include / start.pl
Last active October 23, 2015 14:55
lol start
root@e5ded7e1593c:/base# cat start.pl
#!/usr/bin/env perl
use strict;
use warnings;
## Move app into place
mkdir('/runtime') unless -d '/runtime';
system(split(/\s+/, "/usr/bin/rsync -a /build/ /runtime/app"));
@include
include / group_vars__users
Last active September 7, 2015 17:19
manage users/groups with ansible
---
# file: group_vars/all_users
mygroups:
admins:
state: present
users:
- name: include
comment: francisco.cabrita@gmail.com
@include
include / learn_apache2
Last active August 29, 2015 14:25
chef-client
[2015-07-18T18:29:00+00:00] WARN: No config file found or specified on command line, using command line options.
[2015-07-18T18:29:00+00:00] INFO: Auto-discovered chef repository at /home/ubuntu/chef-repo
[2015-07-18T18:29:00+00:00] DEBUG: Sleeping for 0 seconds
[2015-07-18T18:29:00+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /home/ubuntu/chef-repo
One version per cookbook
[2015-07-18T18:29:00+00:00] INFO: Forking chef instance to converge...
[2015-07-18T18:29:00+00:00] DEBUG: Fork successful. Waiting for new chef pid: 3879
[2015-07-18T18:29:00+00:00] DEBUG: Forked instance now converging
[2015-07-18T18:29:00+00:00] INFO: *** Chef 12.3.0 ***
@include
include / script.sh
Last active August 29, 2015 14:19 — forked from adnaan/script.sh
ls -la
echo "hello"
tree
adb devices
adb wait-for-device #example of a long running task
package main
import (
"fmt"
"log"
"os/exec"
"runtime"
)
type Worker struct {
@include
include / plbk_vault.yml
Created October 27, 2014 09:36
Ansible Vault
---
# file: playbooks/plbk_test_vault.yml
- hosts: localhost
user: include
vars_files:
- ../files/vault/ec2/prd/svc_master_key.yml
tasks:
@include
include / boot2docker_shared.txt
Last active August 29, 2015 14:07
boot2docker with shared folders
# Install
brew update && brew upgrade
brew install docker
brew install boot2docker
brew cleanup
brew install caskroom/cask/brew-cask
brew cask install virtualbox
@include
include / ansible_playbook.yml
Last active August 29, 2015 14:05
setup ansible plus tower
- hosts: ansible
sudo: yes
roles:
- { role: include.amzn-base }
vars:
ansible_version: 1.7.1
ansible_tower_version: 2.0.0
@include
include / kiss_docker
Created July 2, 2014 14:09
homebrew > cask > Virtualbox > Vagrant > CentOS > Docker > Ubuntu
#homebrew > cask > Virtualbox > Vagrant > CentOS > Docker > Ubuntu
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
$ brew tap caskroom/homebrew-cask
$ brew install brew-cask
$ brew cask install virtualbox
$ brew cask install vagrant
$ brew tap homebrew/completions
$ brew install vagrant-completion
@include
include / rbenvsetup.md
Last active August 29, 2015 14:03
homebrew_rbenv

Homebrew

$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
$ brew doctor

$ cat > ~/.profile
homebrew=/usr/local/bin:/usr/local/sbin
export PATH=$homebrew:$PATH

$ source ~/.profile