Vincents-MacBook-Pro:demo balou$ traceroute a.tiles.mapbox.com
traceroute: Warning: a.tiles.mapbox.com has multiple addresses; using 216.137.55.37
traceroute to dnv9my2eseobd.cloudfront.net (216.137.55.37), 64 hops max, 52 byte packets
1 server-216-137-55-37.hkg1.r.cloudfront.net (216.137.55.37) 0.999 ms 1.068 ms 0.653 ms
This file contains 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
main playbook: | |
tasks: | |
- include: $item/tasks/main.yml | |
when_string: "'$item' in $group_names" | |
with_items: | |
- apache | |
- php | |
included file ex. apache/tasks/main.yml: |
This file contains 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
Vincents-MacBook-Pro:sandbox balou$ git init | |
Initialized empty Git repository in /Users/balou/workspace/sandbox/.git/ | |
Vincents-MacBook-Pro:sandbox balou$ vim a | |
Vincents-MacBook-Pro:sandbox balou$ cat a | |
aaaaa | |
Vincents-MacBook-Pro:sandbox balou$ git add a | |
Vincents-MacBook-Pro:sandbox balou$ git status | |
# On branch master | |
# |
This file contains 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
FROM ubuntu:precise | |
MAINTAINER [email protected] | |
# Prepare chinese apt mirror - upgrade to latest | |
RUN printf "deb http://mirrors.163.com/ubuntu precise main\ndeb http://mirrors.163.com/ubuntu/ precise universe\n" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
# Cheat upstart | |
RUN dpkg-divert --local --rename --add /sbin/initctl |
This file contains 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
FROM id_from_prev_build_image | |
MAINTAINER [email protected] | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN echo 'toto' > /test |
This file contains 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
Option 1 - using a class: | |
def run(env, command, args): | |
plugin = Plugin(env) | |
# Check if the command is defined in the plugin | |
if 'do_'+ command not in dir(plugin): | |
return False | |
# Call function | |
getattr(plugin, 'do_'+ command)(args) |
This file contains 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
# Based on https://gist.github.com/fernandoaleman/5083680 | |
# Start the old vagrant | |
$ vagrant init ubuntu_saucy | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on |
This file contains 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
--- | |
some: | |
thing: is | |
awesome: | |
- that | |
- is | |
- an | |
- array | |
This file contains 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
#!/bin/bash | |
##### | |
# Builds a custom nginx | |
# | |
RELEASE_TAGS="+lua+$(lsb_release -s -c)" | |
RELEASE_MAINTAINER= | |
RELEASE_MAINTAINER_EMAIL= | |
RELEASE_MESSAGE="Add LUA support to nginx" | |
# |
This file contains 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
# Prepare the app | |
- run: devops nodejs app add | |
options: | |
name: "{{ app_name }}" | |
root: /opt/{{ app_name }}/bundle | |
script: main.js | |
node_env: prod | |
user: devops | |
extra_env: > | |
"PORT=3000 |
OlderNewer