Skip to content

Instantly share code, notes, and snippets.

View VGerris's full-sized avatar

OpenMinded VGerris

  • S3 Solutions
  • The Netherlands
View GitHub Profile
@al3xtjames
al3xtjames / xps_9560_ifr.txt
Last active April 2, 2024 10:35
Dell XPS 15 9560 (1.2.5) NVRAM edits
# Set Intel(R) Speed Shift Technology to Enabled
setup_var 0x4BC 0x1
# Set CFG Lock to Disabled
setup_var 0x4ED 0x0
# Set Above 4GB MMIO BIOS assignment to Enabled
# setup_var 0x79A 0x1
# Set EHCI Hand-off to Disabled
# setup_var 0x2 0x0
# Set XHCI Hand-off to Disabled
@Faheetah
Faheetah / Jenkinsfile.groovy
Last active March 6, 2024 18:14
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER' // 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"' // 1
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"' // 1
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"' // "1"
@boriel
boriel / rndhostname
Last active August 13, 2023 10:53
Simple proxmox container scaling (Elastic cloud project)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import random
LEN = 5
PREFIX = 'ct-dm-core-job-'
DIGITS = ''.join(str(x) for x in range(10))