This gist has been moved to https://github.com/akomakom/tmuxmulti
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.*; |
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 ruby | |
# | |
# helper for backing up nexus 2 repositories that matter | |
# Run with -h for help | |
# | |
# Finds Nexus repositories that are not group, shadow or proxy | |
# and either produces an rsync file or runs an arbitrary command for each directory | |
# | |
# Examples (you may need to specify -n for all of these examples to specify your nexus installation) |
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
# This script has been tested on Windows server 2008, 2012, 2016 and Windows 10. | |
# This script can be run from puppet using puppetlabs/powershell: | |
# exec { 'setup-ansible-remoting': | |
# command => file("${module_name}/ansible-setup-windows.ps1"), | |
# provider => powershell, | |
# logoutput => true, | |
# } | |
# To make sure that we can run local scripts. You may need to run this line manually before you can run this script |
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
#!/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: |
A collection of files to set up the following automation:
- Activate on insert
- Rip the DVD to a temporary path (eg
/opt/dvd/tmp.XXXXX/NAME-FROM-DVD-ITSELF/VIDEO_TS
) - Eject
Then a manual step:
- Review directory names and rename as needed (a lot of DVD disk identifiers are useless)
- run
dvdencode
, it will process all of the above to a new hierarchy, example filename:/opt/dvd/encoded/NAME-FROM-DVD-ITSELF/NAME-FROM-DVD-ITSELF-1-of-7.mp4
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+)"', |
OlderNewer