Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am evidex on github.
  • I am evidex (https://keybase.io/evidex) on keybase.
  • I have a public key whose fingerprint is C219 7F50 F505 1BCE 3D98 AA34 21CB 2B96 F7F2 0837

To claim this, I am signing this object:

@evidex
evidex / lockable_resources_from_json.groovy
Created May 9, 2018 14:25
Lockable Resources From JSON
import org.jenkins.plugins.lockableresources.*
import groovy.json.JsonSlurperClassic
def LOCK_FILE_PATH = 'locks/locks.json'
def manager = GlobalConfiguration.all().get(org.jenkins.plugins.lockableresources.LockableResourcesManager.class)
println "Found \${manager.resources.size()} locks"
println "Reading lock json file"
def locks = new JsonSlurperClassic().parseText(readFile(file: LOCK_FILE_PATH))
@evidex
evidex / list_lockable_resources.groovy
Created May 9, 2018 14:24
Jenkins Lockable Resources to JSON
import org.jenkins.plugins.lockableresources.*
def manager = GlobalConfiguration.all().get(org.jenkins.plugins.lockableresources.LockableResourcesManager.class)
json = "["
manager.resources.each { lock ->
reservedBy = lock.reservedBy ?: ""
json += """
{
@evidex
evidex / provi_league_comp_b.txt
Last active June 29, 2017 20:58
[TOURN] [B]
[Maulus, [TOURN] [B]]
Small Ancillary Armor Repairer
Damage Control II
200mm Rolled Tungsten Compact Plates
5MN Quad LiF Restrained Microwarpdrive
Remote Sensor Dampener II, Targeting Range Dampening Script
Remote Sensor Dampener II, Targeting Range Dampening Script
Remote Sensor Dampener II, Targeting Range Dampening Script
[Slasher, [TOURN] [A] ]
Damage Control II
Overdrive Injector System II
1MN Afterburner II
Medium F-S9 Regolith Compact Shield Extender
Warp Scrambler II
Stasis Webifier II
@evidex
evidex / rspec.pp
Created June 15, 2016 14:30
rspec-question
------ foo.pp -------
class foo (
$some_string = $::foo::params::some_string_default,
) inherits foo::params {
validate_string($some_string)
include foo::bar
}
------ bar.pp -------
class foo::bar {
@evidex
evidex / Remove Submodule
Created October 29, 2015 12:18 — forked from kyleturner/Remove Submodule
How to remove a submodule from a Github project
To remove a submodule you need to:
Delete the relevant line from the .gitmodules file.
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Commit and delete the now untracked submodule files.
@evidex
evidex / gist:817018d98ddd46784671
Created September 16, 2015 09:06
Puppet Exported Resource attribute override
Client
------
@@exported_resource { 'my_resource':
foo => 'bar',
}
Master
------
From b34b22d28c231c6d9739146e026725422325e1ad Mon Sep 17 00:00:00 2001
From: David Hayes <evidex@freeshell.de>
Date: Mon, 27 Jul 2015 22:23:47 +0100
Subject: [PATCH] Add libvirt.sound_driver option
---
nova/virt/libvirt/config.py | 16 ++++++++++++++++
nova/virt/libvirt/driver.py | 12 ++++++++++++
2 files changed, 28 insertions(+)
@evidex
evidex / pitivi_error.log
Created February 3, 2015 13:48
Pitivi Error Log - Arch Linux 030215
Traceback (most recent call last):
File "/usr/lib/pitivi/python/pitivi/dialogs/startupwizard.py", line 96, in _newProjectCb
self.app.project_manager.newBlankProject()
File "/usr/lib/pitivi/python/pitivi/project.py", line 470, in newBlankProject
project.createTimeline()
File "/usr/lib/pitivi/python/pitivi/project.py", line 936, in createTimeline
self.pipeline = Pipeline()
File "/usr/lib/pitivi/python/pitivi/utils/pipeline.py", line 531, in __init__
SimplePipeline.__init__(self, self)
File "/usr/lib/pitivi/python/pitivi/utils/pipeline.py", line 186, in __init__