I hereby claim:
- I am mohclips on github.
- I am mohclips (https://keybase.io/mohclips) on keybase.
- I have a public key whose fingerprint is D00A 41B9 F060 37A9 862A 7C68 5120 3063 1A31 3F5B
To claim this, I am signing this object:
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# vim: noai:ts=2:sw=2:et | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
UBUNTU_BOX='ubuntu/trusty64' | |
CENTOS_BOX='centos/7' |
hosts: [ | |
{% set comma = joiner(",") %} | |
{% for es in elastic_search_hosts %} | |
{{ comma() }}"{{ es }}" | |
{% endfor %} | |
] |
- name: "Update configs" | |
lineinfile: | |
dest: "/etc/{{ item }}/{{ item }}.yml" | |
regexp: '^ hosts:' | |
line: ' hosts: [{% set comma = joiner(",") %}{% for es in elastic_search_hosts %}{{ comma() }}"{{ es }}"{% endfor %} ]' | |
with_items: | |
- filebeat | |
- packetbeat | |
- metricbeat |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ansible-playbook | |
# vim: noai:ts=2:sw=2:et | |
--- | |
# run: ansible-playbook ./tags_test.yml --tags=one,two,block1 | |
- name: "tags test" | |
hosts: localhost | |
gather_facts: no |
import gevent | |
from gevent import monkey, pool | |
monkey.patch_all() | |
import random | |
import time | |
MAX_SLEEP_TIME=4 |
# | |
# demo to | |
# 1. utilse python keystone auth/client | |
# 2. send a multipart MIME html email with embedded image | |
# This is outlook 2007 compatible :) | |
# | |
from keystoneauth1 import loading as ks_loading | |
from keystoneauth1.identity import v3 | |
from keystoneauth1 import session |
import requests | |
import os | |
import json | |
import argparse | |
import sys | |
import os_client_config | |
class Opts(object): |
# | |
# install Xvfb | |
# | |
apt-get install -y xvfb | |
# | |
# install Google Chrome Browser | |
# | |
apt-get install -y gconf-service \ | |
libasound2 \ |
// ==UserScript== | |
// @name linkedin feed | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.linkedin.com/feed/ | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js | |
// @grant none | |
// ==/UserScript== |