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 | |
# example file to be used with --hookdir | |
# | |
# invoke shell if build fails. | |
apt-get install -y --force-yes vim less | |
cd /tmp/buildd/*/debian/.. | |
/bin/bash < /dev/tty > /dev/tty 2> /dev/tty |
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 maybe_raise(an_exception): | |
if some_condition: | |
raise an_exception | |
try: | |
raise Exception("test 123") | |
except Exception, ex: | |
maybe_raise(ex) |
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
package hudson.plugins.git; | |
import hudson.*; | |
import hudson.FilePath.FileCallable; | |
import hudson.matrix.MatrixBuild; | |
import hudson.matrix.MatrixRun; | |
import hudson.model.*; | |
import hudson.plugins.git.browser.GitWeb; |
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
diff -u DefaultBuildChooser.java RetryBuildChooser.java | |
--- DefaultBuildChooser.java 2010-07-02 13:34:57.000000000 -0700 | |
+++ RetryBuildChooser.java 2010-07-02 14:46:22.000000000 -0700 | |
@@ -5,10 +5,9 @@ | |
import hudson.plugins.git.Branch; | |
import hudson.plugins.git.BranchSpec; | |
import hudson.plugins.git.GitException; | |
-import hudson.plugins.git.IGitAPI; | |
import hudson.plugins.git.Revision; | |
+import hudson.plugins.git.util.DefaultBuildChooser; |
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
(defvar ssh-connection-alist | |
'((shortname . "hostname.fqdn.com") | |
) | |
"Alist of SSH connections. | |
Format is ((NAME . HOSTSPEC) …)") | |
(defun ssh-convenience () | |
"Make SSH convenience functions." | |
(interactive) |
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
; I use customize for this: | |
'(ssh-directory-tracking-mode t) | |
(eval-after-load 'ssh | |
'(progn | |
(add-hook 'ssh-mode-hook | |
(lambda () | |
(shell-dirtrack-mode t) | |
(setq dirtrackp nil) | |
(setq show-trailing-whitespace nil))) |
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
;;; ssh.el --- remote login interface | |
;; Copyright (C) 1996, 97, 98, 2001 Noah S. Friedman | |
;; Author: Noah Friedman <[email protected]> | |
;; Maintainer: [email protected] | |
;; Keywords: unix, comm | |
;; Created: 1996-07-03 | |
;; $Id: ssh.el,v 1.1 2005/10/18 08:31:33 davidswelt Exp $ |
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
(add-hook 'before-save-hook | |
'(lambda () | |
(or (file-exists-p (file-name-directory buffer-file-name)) | |
(make-directory (file-name-directory buffer-file-name) t)))) |
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 __future__ import with_statement | |
import itertools | |
import functools | |
import sys | |
def download_files(keylist): | |
return [key.get_contents_to_filename('%s/%s' % (TEMP_DIR, key.name)) | |
for key in keylist] |
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
log4j:WARN No appenders could be found for logger (org.apache.cassandra.config.DatabaseDescriptor). | |
log4j:WARN Please initialize the log4j system properly. | |
Exception in thread "main" java.lang.NullPointerException | |
at java.util.Arrays$ArrayList.<init>(Arrays.java:3357) | |
at java.util.Arrays.asList(Arrays.java:3343) | |
at org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:255) | |
at org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:299) | |
at org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:323) | |
at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:367) |