by xero updated 10.29.24
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 play.utils import * | |
from poster.encode import multipart_encode | |
from poster.streaminghttp import register_openers | |
import urllib | |
import urllib2 | |
import yaml | |
COMMANDS = ['nexus-commit',] | |
HELP = { |
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
# Use git and git+ssh instead of https | |
[url "git://github.com/"] | |
insteadOf = https://github.com/ | |
[url "[email protected]:"] | |
pushInsteadOf = "git://github.com/" | |
[url "[email protected]:"] | |
pushInsteadOf = "https://github.com/" |
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
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does | |
import hudson.model.*; | |
import hudson.util.*; | |
import jenkins.model.*; | |
import hudson.FilePath.FileCallable; | |
import hudson.slaves.OfflineCause; | |
import hudson.node_monitors.*; | |
for (node in Jenkins.instance.nodes) { |
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
# NAME: pyrax_create_cloud_server | |
# AUTHOR: Christoph Champ | |
# DESCRIPTION: This script creates a Cloud Server in your Rackspace account. | |
# It then creates an image of that server, and, finally, creates a new server | |
# from that saved image. | |
# | |
# NOTES: Within each of the created VMs, the generated credentials are in | |
# master_server.adminPass and clone_server.adminPass. To access the box, use | |
# master_server.accessIPv4 and clone_server.accessIPv4. | |
# However, it is _much_ better/safer/wiser to use SSH keypairs. |
Via https://ubuntu.com/esm#faq
"We're mirroring the repository on our internal Landscape server. Can we still get Ubuntu ESM if using Landscape? ESM is just a regular Ubuntu archive, but authenticated and served over HTTPS. Archive mirroring is already available in Landscape and is the only supported mechanism for mirroring the ESM archive."