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
// CLEAN JOB BUILDS // | |
// change this variable to match the name of the job whose builds you want to delete | |
def jobName = "Your Job Name" | |
def job = Jenkins.instance.getItem(jobName) | |
job.getBuilds().each { it.delete() } | |
// uncomment these lines to reset the build number to 1: | |
//job.nextBuildNumber = 1 | |
//job.save() |
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
* pkg is the package manager | |
* build Dports tree: | |
# cd /usr | |
# make dports-create-shallow | |
* | |
Follow https://www.dragonflybsd.org/docs/how_to_get_to_the_desktop/ | |
to install mate |
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 | |
echo "Installing dependencies..." | |
APT=`command -v apt-get` || true | |
YUM=`command -v yum` || true | |
if [[ "$APT" != "" ]]; then | |
apt-get update > /dev/null; sudo apt-get install -qqy sshpass > /dev/null | |
elif [[ "$YUM" != "" ]]; then | |
yum -y install sshpass >> /dev/null | |
else | |
echo "Distro unsupported." |
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 python2 | |
''' | |
DigitalOcean external inventory script | |
====================================== | |
Generates Ansible inventory of DigitalOcean Droplets. | |
In addition to the --list and --host options used by Ansible, there are options | |
for generating JSON of other DigitalOcean data. This is useful when creating |
OlderNewer