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
| Some Jenkinsfile examples |
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 | |
| """" | |
| nexus-uploader.py | |
| Allows mirroring local M2 repositories to a remote Nexus server with a single command. | |
| Supports: | |
| - uploading of common classifiers (sources, javadocs) if available | |
| - using regex include pattern for artifactIds/groupIds | |
| - recursively processing local repo, just point to the root |
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/sh | |
| # Enable and disable HDMI output on the Raspberry Pi | |
| is_off () | |
| { | |
| vcgencmd display_power | grep "display_power=0" >/dev/null | |
| } | |
| case $1 in |
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 | |
| import http.server, ssl, argparse, re | |
| from tempfile import mkdtemp | |
| from shutil import rmtree | |
| from contextlib import contextmanager | |
| from os.path import exists, join, abspath | |
| @contextmanager | |
| def TemporaryDirectory(): | |
| name = mkdtemp() |