Skip to content

Instantly share code, notes, and snippets.

@Enlik
Enlik / gist:d7867ea80bf7b24f962eb637c1c4ff54
Created March 15, 2017 21:14
Buildbot (new style step) + addURL
class ShellWithUrl(buildstep.ShellMixin, buildstep.BuildStep):
def __init__(self, url, **kwargs):
self.url = url
kwargs = self.setupShellMixin(kwargs)
buildstep.BuildStep.__init__(self, **kwargs)
@defer.inlineCallbacks
def run(self):
cmd = yield self.makeRemoteShellCommand(command=self.command)
yield self.runCommand(cmd)
@Enlik
Enlik / vcs-update.sh
Created August 31, 2012 22:58
recursively add/delete files in CVS or Subversion working copy (script very appropriate for a github:gist!)
#!/bin/sh
# this silly script is in public domain
# by Enlik
cvsupd() {
if [ ! -d CVS ]; then
echo "no CVS here" >&2
exit 1
fi
@Enlik
Enlik / gist:1240794
Created September 25, 2011 16:26
idea of a helper script for Sabayon overlay splitting
#!/bin/bash
# What to remove from sabayon-distro overlay?
# Stuff useful for Gentoo users listed here.
# Remove Sabayon modified ebuilds from this list.
# <slawomir.nizio at sabayon.org>
what=(
app-admin