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
#!/bin/bash | |
# | |
# Author: Abhinav Kumar | |
# About: Script to check | |
# - if Jenkins is using valid and allowed slave labels only. | |
# - if jobs are configured to run on slaves with labels which are node names. | |
# change IFS for the course of this script | |
OLDIFS=$IFS |
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
from netaddr import * | |
import argparse | |
import random | |
import string | |
CHAR_LIST = list(string.ascii_lowercase) | |
def word_generator(word_length): | |
random_word = ''.join(random.choice(CHAR_LIST) for _ in range(word_length)) |
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/env python | |
import os | |
import glob | |
import warnings | |
import datetime | |
# function to self update itself. considering following conditions | |
# - the current user can write to this directory |
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
From python:2.7-alpine | |
RUN pip install dill redis elasticsearch |