Skip to content

Instantly share code, notes, and snippets.

@dankrause
dankrause / postgresql_recursive.sql
Last active February 26, 2024 16:03
An example of creating a recursive postgresql query to generate data about parent-child relationships within a single table.
CREATE TABLE test
(
id INTEGER,
parent INTEGER
);
INSERT INTO test (id, parent) VALUES
(1, NULL),
(2, 1),
@bugcy013
bugcy013 / rundeck-email notification setup
Created August 14, 2016 02:38
rundeck-email notification setup
/etc/rundeck/profile change
-Drundeck.config.location=/etc/rundeck/rundeck-config.properties \
to
-Drundeck.config.location=/etc/rundeck/rundeck-config.groovy \
and my /etc/rundeck/rundeck-config.groovy
looks like:
grails.serverURL="https://172.20.22.76:4443"
@karnauskas
karnauskas / jenkins.service
Created October 13, 2014 21:45
Jenkins service unit file for Systemd
[Unit]
Description=Jenkins
After=network.target
Requires=network.target
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/jenkins
ExecStart=/usr/bin/java ${JENKINS_JAVA_OPTIONS} -jar /usr/lib/jenkins/jenkins.war --httpPort=${JENKINS_PORT} --httpListenAddress=${JENKINS_LISTEN_ADDRESS} ${JENKINS_ARGS}
Restart=always