Skip to content

Instantly share code, notes, and snippets.

@nibalizer
nibalizer / weasley.py
Created January 23, 2018 21:35
First trivial obs script
import obspython as obs
import urllib.request
import urllib.error
import random
url = ""
interval = 30
source_name = ""
weasleys = ["Ron", "George", "Fred", "Ginny", "Percy", "Bill", "Charlie"]
#!/usr/bin/env python
# All the hard parts of this is written by Greg Haynes and is (c) IBM
# All bugs are mine
import json
import os
import sys
@nibalizer
nibalizer / raw_tags_and_code.txt
Created October 20, 2016 18:46
VoxPupuli data for Tags/releases and script
$: cat find_tags.sh
for i in *
do
echo "Checking $i"
if [ -d $i ]; then
cd $i; git log --tags --simplify-by-decoration --pretty="format:%ai %d" | grep '^2016' | grep tag ; cd ..
fi
done
@nibalizer
nibalizer / github_added_contributiors.txt
Created October 20, 2016 18:44
Vox Pupuli Event processing raw data
$: cat find_contributors.py
import json
data = json.load(open('export-voxpupuli-1476822402.json'))
users = []
for i in data:
@nibalizer
nibalizer / octohatrack_voxpupuli_raw.txt
Created October 20, 2016 18:40
Raw Data from octohatrack + voxpupuli
Collecting API contributors.....
Collecting all repo contributors.......................
Collecting CONTRIBUTORS file...No CONTRIBUTORS file
GitHub Contributors:
bmjen (Bryan Jen)
branan (Branan Purvine-Riley)
daenney (Daniele Sluijters)
ferventcoder (Rob Reynolds)
HAIL9000 (Hailee Kenney)
@nibalizer
nibalizer / contributors.txt
Created October 20, 2016 18:28
VoxPupuli Contributor Data
Data from octohatrack and voxpupuli
2521 unique contributors
Left: number of voxpupuli repos contributed to
Right: username (Real name)
1 030
1 0utsider
1 0x9090 (nops)
TASK [bifrost-deploy-nodes-dynamic : Deploy to hardware - Using custom instance_info.] ***
task path: /opt/stack/bifrost/playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml:51
ESTABLISH LOCAL CONNECTION FOR USER: stack
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1457208444.89-116781011607981 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1457208444.89-116781011607981 )" )
localhost PUT /tmp/tmpeQx8on TO /home/stack/.ansible/tmp/ansible-tmp-1457208444.89-116781011607981/os_ironic_node
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/stack/.ansible/tmp/ansible-tmp-1457208444.89-116781011607981/os_ironic_node; rm -rf "/home/stack/.ansible/tmp/ansible-tmp-1457208444.89-116781011607981/" > /dev/null 2>&1
fatal: [DS819 -> localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"api_timeout": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "auth": {"endpoint": "http://10.254.48.2:6385/"}, "auth_type"
class mysomething ()
{
$archive_metdata = load_module_metadata('archive')
if 'puppetcommunity' in $archive_metadata['author'] {
# use puppetcommunity-archive syntax
} else {
# use camptocamp-archive syntax
}
#!/bin/bash
echo '['
pkgs=`dpkg -l `
IFS='
'
count=0
for pkg in $pkgs
do
@nibalizer
nibalizer / gist:2306ae4b8d5241c1d0f8
Created March 3, 2015 23:31
prs on puppet-community
(master u=)$: ruby pull_requests.rb -a -n puppet-community -t `cat ../github_token`
=== puppet-community/community-triage ===
=== puppet-community/pcci ===
=== puppet-community/pcci-configuration ===
=== puppet-community/plumbing ===
=== puppet-community/puppet-alternatives ===
https://github.com/puppet-community/puppet-alternatives/pull/21
https://github.com/puppet-community/puppet-alternatives/pull/22
https://github.com/puppet-community/puppet-alternatives/pull/23
=== puppet-community/puppet-community.github.io ===