Skip to content

Instantly share code, notes, and snippets.

View manavortex's full-sized avatar

manavortex manavortex

View GitHub Profile
@manavortex
manavortex / delete_old_jobs.groovy
Created April 17, 2025 08:31
Jenkins: Delete old jobs
import jenkins.model.Jenkins
import hudson.model.Job
def getFolderNameFilter() {
try {
return env.folder_name
} catch (Exception e) {
// empty string time
}
return ''
@manavortex
manavortex / clearout_workspace.groovy
Last active March 17, 2025 08:39
Jenkins: wipe workspace directory by job name
# call parametrized with string (JobName must be the fully-qualified name of your job)
# thanks to https://gist.github.com/dnozay/e7afcf7a7dd8f73a4e05 which was useful in figuring this out!
# works on 2.471.9
import hudson.slaves.WorkspaceList
def job = null
try {
job = Jenkins.instance.getItemByFullName(env.JobName)
} catch (Exception e) {
@manavortex
manavortex / README.md
Last active March 14, 2025 08:44 — forked from yonatanh20/README.md
Enabling SocketCAN on WSL2 walkthrough: update 2025

Enabling SocketCAN on WSL2

Preface: this walkthrough is a hand-holdy step by step tutorial to enable SocketCan on your WSL2 instance (Ubuntu 20.04).

To enable SocketCAN's can-utils on WSL we need to enable the CAN interface module in the WSL, to do so requires a re-building of the WSL kernel.

Requirements:

import bpy
import bmesh
# script originally created by engres
for armature in filter(lambda obj: obj.type == 'ARMATURE', bpy.data.objects):
print("Checking armature {}".format(armature.name))
boneNames = []
for pBone in armature.pose.bones:
boneName = pBone.name
@manavortex
manavortex / cyberpunk_npv_shapekey_script.py
Last active January 30, 2023 07:26
A Blender script to automatically apply shape keys to NoraLee's glb template for your NPV
import bpy
import bmesh
import re
import os
# For use with the meshes from NoraLee's tutorial
# https://docs.google.com/document/d/1clFJhpi7H5jk73vUQPnjIwjkuQV6VnYkKMoXt1eYMb0/view
# video documentation on how to use this (thanks Vesna!): https://youtu.be/Zt9Shl8d5rM
# TL;DW:
@manavortex
manavortex / additem.md
Last active February 8, 2024 16:12
WIP of guide how to add items via archiveXl

The final version of this guide can be found here!

This guide was created after reading this one and being left with a bunch of question marks. The good people on the modding discord have been extremely helpful and clarified many questions. To get a deeper understanding, refer to the initial guide and follow the linked resources.

Assumed skill level: You should be able to find your way around WolvenKit, but I aim to keep this as noob-friendly as possible.

You will find the framework's official documentation here.

Parts of this guide

@manavortex
manavortex / waitForElement.js
Last active March 13, 2021 10:58
async function waitForElement
let timeout = 75;
const maxTimeout = 5000;
/**
* Async function: call with checkElement('#myElement').then((el) { ... }) .
* Or see first block in waitForAndPrepend as per nightpool's suggestion in MR 2037
*
* @param {string} selector - document query selector.
* @param {string} returnAry - run querySelectorAll rather than querySelector?
*/
@manavortex
manavortex / showToast.js
Last active February 25, 2021 09:48
showToast.js
// https://codepen.io/uffou/pen/JNVWVy
function showToast(_title='', _text=''){
window.toast.create({
title: _title,
text: _text
});
}
window.showToast = showToast;
(function(root, factory) {
@manavortex
manavortex / restart_wacom_driver.sh
Created October 3, 2019 17:32
Makes older wacom tables less unusable on osX mojave
#!/bin/sh
tail -F /var/log/system.log | while read line; do
if echo "$line" | grep -q '.*wacom.*'; then
kill $(pidof PenTabletDriver)
sleep 1
open /Library/Application\ Support/Tablet/PenTabletDriver.app
fi
done
@manavortex
manavortex / Accessible_Info_Viewer.ahk
Created July 2, 2019 09:54
a resizable version of Accessible Info Viewer
; Accessible Info Viewer
; http://www.autohotkey.com/board/topic/77888-accessible-info-viewer-alpha-release-2012-09-20/
; https://dl.dropbox.com/u/47573473/Accessible%20Info%20Viewer/AccViewer%20Source.ahk
#SingleInstance force
_colTextW := 55
_col2W := 120
_col4W := 51