This file contains hidden or 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/python3 | |
""" | |
Get official NBRB currency rata based on ISO 4217 currency code (1 <currency_code> = <N> BYN) | |
API Documentation: https://www.nbrb.by/bel/apihelp/exrates | |
""" | |
import argparse |
This file contains hidden or 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 deletes empty views | |
*/ | |
import jenkins.model.Jenkins | |
import hudson.model.View | |
Jenkins instance = Jenkins.get() | |
ArrayList<View> views = instance.getViews() |
This file contains hidden or 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
import hudson.model.*; | |
import hudson.util.*; | |
import jenkins.model.*; | |
import hudson.FilePath.FileCallable; | |
import hudson.slaves.OfflineCause; | |
import hudson.node_monitors.*; | |
void performCleanup(node, items) { | |
for (item in items) { |