This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This evolved from pure SemVer to any-length version with optional -suffix | |
* accepts any of: | |
* 1 | |
* 1.2 | |
* 1.2.3 | |
* 1.2.3.4 (etc, no limit) | |
* 1.2.3-SNAPSHOT | |
* | |
* bump() also accepts index values, eg -1 (last component), -2 (second from end), etc: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from subprocess import check_output | |
from re import findall, DOTALL, MULTILINE | |
import psutil | |
def log(s): | |
check_output(['logger', '-t', __file__, s]) | |
inputs = findall(r'.*?index: (\d+).*?sink: (\d+).*?application\.process\.id = "(\d+)"', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the branch/status of the current git repository | |
# * the branch of the current subversion repository | |
# * the return value of the previous command | |
# | |
# USAGE: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* init.gradle file for development using Nexus as proxy repository | |
* | |
* @author Manfred Moser <[email protected] | |
* akom added blacklisting feature to leave certain projects alone. | |
*/ | |
apply plugin: NexusRepositoryPlugin | |
class NexusRepositoryPlugin implements Plugin<Gradle> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KBD RU_P "Russian - Phonetic Akom" | |
COPYRIGHT "(c) 2017 Akom" | |
COMPANY "Akom" | |
LOCALENAME "ru-RU" | |
LOCALEID "00000419" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Jenkins System Groovy script to clean up workspaces on all slaves. | |
Check if a slave has < X GB of free space, perform cleanup if it's less. | |
If slave is idle, wipe out everything in the workspace directory as well any extra configured directories. | |
If slave is busy, wipe out individual job workspace directories for jobs that aren't running. | |
Either way, remove custom workspaces also if they aren't in use. | |
**/ | |
import hudson.model.*; |