Skip to content

Instantly share code, notes, and snippets.

@inthroxify
inthroxify / klipper.cfg
Created April 10, 2020 18:04 — forked from lenne0815/klipper.cfg
Ender 5 SKR mini E3 1.2 Config
# This file contains common pin mappings for the BIGTREETECH SKR mini
# E3 v1.2. To use this config, the firmware should be compiled for the
# STM32F103 with a "28KiB bootloader". Also, select "Enable extra
# low-level configuration options" and configure "GPIO pins to set at
# micro-controller startup" to "!PC13".
# The "make flash" command does not work on the SKR mini E3. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the SKR
# mini E3 with that SD card.
@inthroxify
inthroxify / introrx.md
Created August 20, 2019 02:53 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@inthroxify
inthroxify / jenkins-docker-ephemeral-build-slaves-docker-inside.md
Last active April 1, 2021 03:33
How to use docker inside your docker ephemeral build slave.

Do you have a docker ephemeral build slave setup with Jenkins (perhaps by using yet-another-docker plugin)? Do you want to use the inside command on your docker.image() directive? Here's how to make any of that work.

Take the following Pipeline script:

node ('jenkins-slave-node') {
    stage 'Stage 1'
    sh 'echo "Hello from your favorite test slave!"'
 docker.image('alpine').inside {
@inthroxify
inthroxify / jenkins docker authentication.md
Created May 1, 2018 22:33
Jenkins: "unauthorized: authentication required" with yet another docker plugin on private repository

If you've got a private repo in use with yet another docker plugin, there is a pitfall you can run into. If multiple credentials are specified, on the "Pull Image Settings" and the "Docker Registry credentials" section, the former deprecated one overrides the other. Set ONLY the Docker Registry credentials. Leave "Registry Credentials" under "Pull Image Settings" as -none-.

@inthroxify
inthroxify / jenkins_delete_failed.groovy
Last active April 20, 2018 20:04 — forked from dbr/jenkins_delete_failed.groovy
Delete failed builds for a job in Jenkins
def job = Jenkins.instance.getItem("the_job_name")
job.getBuilds().each {
if(it.result == Result.FAILURE || it.result == Result.ABORTED){
// Delete failed job
it.delete()
}
}
@inthroxify
inthroxify / printjenkins.groovy
Created April 20, 2018 20:03 — forked from lyuboraykov/printjenkins.groovy
Print to console in Jenkins Groovy system script
def out
def config = new HashMap()
def bindings = getBinding()
config.putAll(bindings.getVariables())
out = config['out']
out.println "Printed do Jenkins console."
C:>VBoxManage.exe list bridgedifs
Name: Intel(R) 82579LM Gigabit Network Connection
GUID: 78791fdf-3141-4527-99c6-3828e74187e3
DHCP: Enabled
IPAddress: 10.1.1.16
NetworkMask: 255.255.255.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 00:a0:00:00:12:34
MediumType: Ethernet
@inthroxify
inthroxify / github-to-bitbucket
Created December 7, 2016 00:13 — forked from sangeeths/github-to-bitbucket
Forking a Github repo to Bitbucket
Go to Bitbucket and create a new repository (its better to have an empty repo)
git clone git@bitbucket.org:abc/myforkedrepo.git
cd myforkedrepo
Now add Github repo as a new remote in Bitbucket called "sync"
git remote add sync git@github.com:def/originalrepo.git
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync"
git remote -v