Skip to content

Instantly share code, notes, and snippets.

echo 'script=Jenkins.instance.pluginManager.plugins.each{ plugin ->
println ("${plugin.getShortName()}:${plugin.getVersion()}")
}
null' \
| no_proxy=localhost \
curl \
--silent \
--data-binary @- \
-X POST \
"http://jenkins:jenkins@localhost:8080/jenkins/scriptText" \
fixtures:
symlinks:
site: "#{source_dir}/puppet/modules"
[
{
"number": 14885,
"dependsOn": [
{
"number": 14881
}
],
"neededBy": [
{
diff --git a/bash_completion/git-upstream b/bash_completion/git-upstream
index 79dabb0..aa47985 100644
--- a/bash_completion/git-upstream
+++ b/bash_completion/git-upstream
@@ -1,6 +1,6 @@
eval "$(register-python-argcomplete git-upstream)"
# following automatically picked up if git bash completion active
-_git_upstream() {
+___git_upstream() {
# save originals
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import django
django.setup()
# Must come after django.setup or trigger "Apps aren't loaded yet" exception
class mysensu::setup() {
# have a number of other settings applied to this resource
class { '::sensu':
use_embedded_ruby => true,
sensu_plugin_provider => 'sensu_gem',
}
# because the package installs it's on CA certs and we have an internal
@electrofelix
electrofelix / Tiltfile
Created April 30, 2020 15:00
tilt ci never exits
k8s_yaml('dynamodb.yaml')
type DynamoDBAPI interface {
GetItem(*dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)
Scan(*dynamodb.ScanInput) (*dynamodb.ScanOutput, error)
PutItem(*dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)
UpdateItem(input *dynamodb.UpdateItemInput) (*dynamodb.UpdateItemOutput, error)
DeleteItem(input *dynamodb.DeleteItemInput) (*dynamodb.DeleteItemOutput, error)
}
type DynamoDBStorage struct {
client DynamoDBAPI
@electrofelix
electrofelix / stdout
Created March 23, 2021 16:22
vagrant plugin install debug output
VAGRANT_LOG=debug vagrant plugin install vagrant-winrm-syncedfolders
INFO global: Vagrant version: 2.2.13
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.13/gems/vagrant-2.2.13/bin/vagrant"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_NO_PLUGINS="1"
@electrofelix
electrofelix / output.log
Last active May 15, 2022 11:18
Sample files for libvirt define behaviour
initial definition
Domain 'vagrant-libvirt_default' defined from test.xml
display vcpus
<vcpu placement='static'>2</vcpu>
update with nvram XML tag
Domain 'vagrant-libvirt_default' defined from test_with_nvram.xml
check if apply worked