Skip to content

Instantly share code, notes, and snippets.

@nka11
nka11 / README.md
Created November 29, 2021 07:20 — forked from metmajer/README.md
Ansible Logging To Elasticsearch

Ansible Logging To Elasticsearch

Turns Ansible log outputs into plain JSON strings and sends them to an Elasticsearch cluster.

Place the script in your playbook's plugins/callbacks/ directory.

@nka11
nka11 / gist:4493cae144245323bbf76e3491b20344
Created January 18, 2018 07:58 — forked from shacker/gist:87908e13c9ee6655ce90
Using the Workday API with Python and the suds client library
import sys
from suds import client
from suds.wsse import Security, UsernameToken
from suds.sax.text import Raw
from suds.sudsobject import asdict
from suds import WebFault
'''
Given a Workday Employee_ID, returns the last name of that employee.
{_} = require 'underscore'
child_process = require 'child_process'
async = require 'async'
healthCheckInterval = 60 * 1000
bounceInterval = 60 * 1000
bounceWait = bounceInterval + 30 * 1000
delayTimeout = (ms, func) -> setTimeout func, ms
class MonitoredChild
@nka11
nka11 / 0 resources for xda
Created October 3, 2012 11:35
Firefox os galaxy s3 porting notes
boot.img http://dl.free.fr/h4GMnkXNR
system.img http://dl.free.fr/fCtptJFxs
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery;
// Wait for Document
History.Adapter.onDomLoad(function(){
// Prepare Variables
// http://svn.ckeditor.com/CKEditor/trunk/_source/plugins/basicstyles/plugin.js
Aloha.ui.store = function(ID,properties){
Aloha.ui.objects[ID] = {
config: config,
element: $button
};
}
Aloha.ui.createButton = function( ID, config ){