This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for env in $(printenv); do | |
| IFS== read KEY VALUE <<< "$env" | |
| sed "s,\${${KEY}},${VALUE},g" -i /etc/nginx/sites-enabled/default | |
| done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Internally, the client instantiates a Guzzle\Http\Client on Docker's | |
| * default tcp address (127.0.0.1:4243) but you could pass your own too | |
| */ | |
| $docker = new Docker\Docker(); | |
| /** | |
| * This is how you wrap a Dockerfile with its context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bytes [1,0,0,0,0,0,0,239,191,189] | |
| bytes length 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 127.0.0.1:9000; | |
| location / { | |
| proxy_pass http://unix:/var/run/docker.sock:/; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| filetype on | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| Bundle 'gmarik/vundle' | |
| Bundle 'scrooloose/nerdtree' | |
| Bundle 'ctrlp.vim' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Maid.rules do | |
| rule 'Old files downloaded while developing/testing' do | |
| dir('~/Downloads/*').each do |path| | |
| if downloaded_from(path).any? {|u| u.match 'http://localhost'} && 1.week.since?(last_accessed(path)) | |
| trash(path) | |
| end | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "symfony2" | |
| config.vm.box_url = "/Users/ash/Projects/packer-templates/symfony2/vmware.box" | |
| config.vm.hostname = 'stage1' | |
| config.vm.network :private_network, ip: '192.168.215.42' | |
| config.vm.synced_folder ".", "/vagrant", :nfs => true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| class Vagrant::Config::V2::Root | |
| def has_key?(name) | |
| @config_map.has_key?(name.to_sym) | |
| end | |
| end | |
| Vagrant.configure("2") do |config| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "builders": [ | |
| { | |
| "type": "virtualbox", | |
| "iso_url": "http://cdimage.debian.org/debian-cd/7.1.0/i386/iso-cd/debian-7.1.0-i386-CD-1.iso", | |
| "iso_md5": "c29ec2db6754dadd341b9763164aca9a", | |
| "ssh_username": "packer", | |
| "ssh_password": "packer", | |
| "guest_os_type": "Debian", | |
| "http_directory": ".", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hwi_oauth: | |
| firewall_name: secured_area | |
| resource_owners: | |
| github: | |
| type: github | |
| client_id: <hidden> | |
| client_secret: <hidden> |