Skip to content

Instantly share code, notes, and snippets.

@renner
renner / eclipse.patch
Last active August 29, 2015 14:27
Patch to make the https://github.com/SUSE/saltstack-netapi-client-java code compile with Eclipse 4.5
diff --git a/src/main/java/com/suse/saltstack/netapi/client/SaltStackClient.java b/src/main/java/com/suse/saltstack/netapi/client/SaltStackClient.java
index 5d326b4..6fbd1c9 100644
--- a/src/main/java/com/suse/saltstack/netapi/client/SaltStackClient.java
+++ b/src/main/java/com/suse/saltstack/netapi/client/SaltStackClient.java
@@ -163,7 +163,7 @@ public class SaltStackClient {
* @return true if the logout was successful, otherwise false
* @throws SaltStackException if anything goes wrong
*/
- public boolean logout() throws SaltStackException {
+ public Boolean logout() throws SaltStackException {
@renner
renner / transfer.sh
Created July 8, 2015 06:38
Transfer GPG key pair
# list private keys
gpg -K
# export the public key
gpg --output pubkey.gpg --export {KEYID}
# export secret key, combine it into one file with the public key, and encrypt for transfer
gpg --output - --export-secret-key {KEYID} | cat pubkey.gpg - | gpg --armor --output keys.asc --symmetric --cipher-algo AES256
# import elsewhere

Keybase proof

I hereby claim:

  • I am renner on github.
  • I am jrenner (https://keybase.io/jrenner) on keybase.
  • I have a public key whose fingerprint is 7D8F A54B 4BAA 40D5 1BF9 1755 661A 7E2C 1B0D 1E69

To claim this, I am signing this object:

@renner
renner / centos.patch
Last active December 27, 2015 18:19
Adapt spacewalk build.xml file to make it work with cent os.
--- manager-build.xml 2013-11-08 11:20:06.741906433 +0100
+++ manager-build-spacewalk.xml 2013-10-01 13:59:56.724143006 +0200
@@ -167,6 +167,8 @@
echo "Linking the main jar for Taskomatic...";
mv ${deploy.dir}/WEB-INF/lib/rhn.jar /usr/share/rhn/lib;
ln -sf /usr/share/rhn/lib/rhn.jar ${deploy.dir}/WEB-INF/lib;
+
+ rm /var/lib/tomcat6/webapps/rhn/WEB-INF/lib/el-api-6.0.18.jar;
'
/>
@renner
renner / tomcat6.patch
Created July 24, 2012 14:28
Patch for /etc/init.d/tomcat6 to enable debugging
--- a/tomcat6 2012-02-06 14:03:44.000000000 +0100
+++ b/tomcat6 2012-07-24 14:47:39.000000000 +0200
@@ -187,6 +187,7 @@
# See how we were called.
function start() {
echo -n "Starting Tomcat ($CATALINA_BASE)"
+ sed -i 's/^#\(.*Xdebug\)/\1/' /etc/tomcat6/tomcat6.conf
if [ -f "/var/lock/subsys/${NAME}" ] ; then
if [ -f "/var/run/${NAME}.pid" ]; then
read kpid < /var/run/${NAME}.pid
@renner
renner / formatter.xml
Created April 17, 2012 06:47
Eclipse Formatter
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="12">
<profile kind="CodeFormatterProfile" name="Custom Formatter" version="12">
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>