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
[foo] | |
hosta ansible_ssh_host=localhost kvm=kvma ansible_python_interpreter=/usr/bin/python2 | |
hostb ansible_ssh_host=localhost kvm=kvmb ansible_python_interpreter=/usr/bin/python2 | |
[kvm] | |
kvma ansible_ssh_host=localhost ansible_python_interpreter=/usr/bin/python2 | |
kvmb ansible_ssh_host=localhost ansible_python_interpreter=/usr/bin/python2 | |
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 libmproxy.flow import AppRegistry, version | |
from netlib import wsgi | |
import requests | |
def catchall(environ, start_response): | |
"""Simplest possible application object""" | |
data = 'Hello, World!\n' | |
status = '200 OK' | |
response_headers = [ |
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
import time | |
import sys | |
import os | |
import re | |
from static.apps import Cling | |
from libmproxy.flow import AppRegistry, version | |
from netlib import wsgi | |
import requests | |
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
#!/usr/bin/env python | |
import time | |
import sys | |
import os | |
import re | |
from static.apps import Cling | |
from libmproxy.flow import AppRegistry, version | |
from netlib import wsgi | |
import requests | |
import sys |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'fileutils' | |
Vagrant.require_version ">= 1.6.0" | |
Vagrant.configure(2) do |config| | |
(1..2).each do |i| | |
config.vm.define vm_name = "yl%d" % i do |config| |
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
#!py | |
# Named groups.py for github syntax coloration, but works as groups.sls | |
def update_groups(available, active): | |
for group, params in available.iteritems(): | |
name = params.get('name', group) | |
f = 'absent' if group not in active else 'present' | |
args = {} | |
if f == 'present' and 'gid' in params: |
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
{%- if something %} | |
{%- for name, data in groups %} | |
{{ name }}: | |
{%- if data.get('absent', False) %} | |
group.absent: | |
{%- else %} | |
group.present: | |
{%- endif %} | |
{%- if 'gid' in data %} | |
- gid: {{ data.gid }} |
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
[env] 29/06 2015 13:50:42 jpic@lue /tmp/test_git_submodule | |
$ git init root_repo | |
Initialized empty Git repository in /tmp/test_git_submodule/root_repo/.git/ | |
[env] 29/06 2015 13:50:46 jpic@lue /tmp/test_git_submodule | |
$ git init sub_repo | |
Initialized empty Git repository in /tmp/test_git_submodule/sub_repo/.git/ | |
[env] 29/06 2015 13:50:51 jpic@lue /tmp/test_git_submodule | |
$ cd sub_repo/ |
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
#!/usr/bin/env python | |
''' | |
export JENKINS_BUILD_COMMAND="java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 build" | |
export GITHUB_USERNAME=youruser | |
export CRAZY_JENKINS=owner/repo:job1*3,job2*1 | |
# Note the space here, for the token not to be stored in bash history | |
GITHUB_TOKEN=yourtoken crazy_jenkins.py | |
''' | |
import os |
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
<?php | |
$fixture = new ArrayObject( array( | |
'a', | |
'b', | |
'c', | |
) ); | |
unset( $fixture[1] ); |
OlderNewer