Skip to content

Instantly share code, notes, and snippets.

View mika's full-sized avatar

Michael Prokop mika

View GitHub Profile
@mika
mika / jenkins.log
Created February 12, 2012 20:02
jenkins plugin reload failure on nfs
hudson.util.IOException2: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1137)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:955)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.io.IOException: Unable to delete /var/lib/jenkins/plugins/xunit/WEB-INF/lib/.nfs00000000000e80ba0000000b
@mika
mika / mcollective_debian.rst
Last active December 14, 2015 01:09
Deploying MCollective on Debian - problems in the official docs
#!/usr/bin/env python
from __future__ import print_function
import sys
import argparse
def brute_search(dev, search_string, max_lines, bufsize):
oldbuf = b''
found = False
data = None
@mika
mika / foo.tex
Created January 14, 2016 15:07
support systemd characters in LaTeX/sphinx docs
% support usage of systemd's characters in systemctl output
\usepackage{pmboxdraw}
\usepackage{newunicodechar}
\usepackage{wasysym}
\newunicodechar{●}{\CIRCLE} % U+9679
\newunicodechar{└}{\pmboxdrawuni{2515}} % U+9492
\newunicodechar{├}{\pmboxdrawuni{251D}} % U+9500
\newunicodechar{─}{\pmboxdrawuni{2501}} % U+9472, sphinx does something wrong here sadly :(
@mika
mika / gist:cfac6f09a4adfb663550
Created March 10, 2016 14:24
python-requests <-> urllib3
mika@heart ~ % dpkg -L python-requests
/.
/usr
/usr/lib
/usr/lib/python2.7
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/requests
/usr/lib/python2.7/dist-packages/requests/api.py
/usr/lib/python2.7/dist-packages/requests/auth.py
/usr/lib/python2.7/dist-packages/requests/cookies.py
@mika
mika / gist:a6bba81a2fe0753c0c8a
Created March 16, 2016 22:55
apt-get build-dep with --only-upgrade
# apt-get build-dep nginx --only-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Skipping autotools-dev, it is not installed and only upgrades are requested.
Skipping debhelper, it is not installed and only upgrades are requested.
Skipping dh-systemd, it is not installed and only upgrades are requested.
Note, selecting 'libgd-dev' instead of 'libgd2-dev'
Skipping libgd-dev, it is not installed and only upgrades are requested.
Skipping libgeoip-dev, it is not installed and only upgrades are requested.

pytest all the things

@mika
mika / jdg-pipeline_all.groovy
Created July 21, 2016 06:39 — forked from jbfavre/jdg-pipeline_all.groovy
Jenkins Debian Glue - Jenkins Pipeline
// Checkout package git repository
stage('Checkout GIT repository')
node('master'){
deleteDir()
checkout changelog: false,
poll: false,
scm: [$class: 'GitSCM',
branches: [[name: "${branch}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [
# I am managed in <%= @__scope__.source.namespace %> line <%= @__scope__.source.line %>
actual
contents
...
@mika
mika / gist:177aa70971f478a4caea4ef3e8ef21b4
Last active July 29, 2016 16:22
android sdk clusterfuck
jenkins@jenkins-test-slave2:~/android-sdk-linux$ ./tools/android list sdk
Refresh Sources:
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Validate XML
Parse XML
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Validate XML: https://dl.google.com/android/repository/repository-11.xml
Parse XML: https://dl.google.com/android/repository/repository-11.xml