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
| # variables - credentials info | |
| USERNAME='my-username' | |
| PASSWORD='my-clear-password' | |
| USER_PASS="${USERNAME}:${PASSWORD}" | |
| # variables - jenkins project and roles | |
| TYPE='projectRoles' | |
| ## example of jenkins permission required to execute the Jenkins Job | |
| PERMISSIONIDS='hudson.model.Item.Read,hudson.model.Item.Build' | |
| ROLENAME='my-rolename' |
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 re | |
| import os | |
| from bs4 import BeautifulSoup | |
| from graphviz import Digraph | |
| def get_job_downstream_list(job_name, job_root) -> list: | |
| downstream_list = [] | |
| if os.path.isfile(os.path.join(job_root, job_name, 'config.xml')): | |
| with open(os.path.join(job_root, job_name, 'config.xml'), 'r') as f: |
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
| gitlab_token = '' | |
| namespace = '' | |
| dn = '' | |
| expire_days = 7 | |
| del_regex_str = '.*-[ab][0-9]+-.*' | |
| if __name__ == '__main__': | |
| import json | |
| import requests | |
| import urllib.parse |
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
| // def labelAndNodeList = [] | |
| // for (label in Jenkins.getInstance().getLabels()) { | |
| // labelAndNodeList.add(label) | |
| // println "[${label}]" | |
| // } | |
| import jenkins.model.* | |
| def labelMap = [:] |
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 src as CMake project with Clion | |
| cmake_minimum_required(VERSION 3.0 FATAL_ERROR) | |
| project(redis VERSION 5.0) | |
| set(CMAKE_BUILD_TYPE "Debug") | |
| get_filename_component(REDIS_ROOT "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE) | |
| add_subdirectory(deps) | |
| add_subdirectory(src/modules) |
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
| # sudo apt install libevent-dev | |
| # sudo apt install libkqueue-dev | |
| # open CLion | |
| # File->new CMake project from Sources->Redis src dir | |
| cmake_minimum_required(VERSION 3.0 FATAL_ERROR) | |
| project(redis VERSION 5.0) | |
| set(CMAKE_BUILD_TYPE "Debug") | |
| get_filename_component(REDIS_ROOT "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE) |
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 | |
| ####---- attension ----#### | |
| # confirm sidadm uid number | |
| # confirm sapsys uid number | |
| # confirm other sap user and group id number | |
| # change sidadm home dir files, | |
| # i.e:.cshrc,.profile |
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 | |
| # Institut für Wetter- und Klimakommunikation GmbH / Qmet | |
| # O. Maywald <maywald@klimagipfel.de> | |
| # This should install CDO with grib2, netcdf and HDF5 support. Note that the binaries are in /opt/cdo-install/bin. | |
| # For further information look: | |
| # http://www.studytrails.com/blog/install-climate-data-operator-cdo-with-netcdf-grib2-and-hdf5-support/ | |
| # docker-command |