Skip to content

Instantly share code, notes, and snippets.

View christ66's full-sized avatar

Steven Christou christ66

View GitHub Profile
primitive XPath result sets forbidden; implement jenkins.security.SecureRequester
stage('Test') {
parallel(junit: {
// Do some stuff
}, DbUnit: {
// Do some other stuff
})
}
@christ66
christ66 / discard.groovy
Last active April 3, 2017 21:26
Discard old builds for all projects - Jenkins
def daysToKeep = 0
def numToKeep = 0
def artifactDaysToKeep = 0
def artifactNumToKeep = 0
Jenkins.instance.getAllItems(AbstractProject.class).each{ it ->
it.setBuildDiscarder(new LogRotator(daysToKeep, numToKeep, artifactDaysToKeep, artifactNumToKeep))
};
@christ66
christ66 / jenkins.service
Created April 3, 2017 18:16 — forked from ganthore/jenkins.service
/usr/lib/systemd/system/jenkins.service
[Unit]
Description=Jenkins Daemon
[Service]
Type=forking
ExecStart=/usr/bin/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins/home -jar /opt/jenkins/jenkins.war --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log
User=jenkins
Restart=always
[Install]
@christ66
christ66 / jenkins.service
Created April 3, 2017 18:16 — forked from ganthore/jenkins.service
/usr/lib/systemd/system/jenkins.service
[Unit]
Description=Jenkins Daemon
[Service]
Type=forking
ExecStart=/usr/bin/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins/home -jar /opt/jenkins/jenkins.war --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log
User=jenkins
Restart=always
[Install]
@christ66
christ66 / README.md
Created March 23, 2017 02:06
Brightscript syntax highlighting for intellij

Brightscript syntax highlighting in Intellij IDEA

  1. Clone: https://github.com/cmink/BrightScript.tmbundle
  2. Download the textbright plugin and restart Intellij.
  3. Go to Settings > Editor > TextMate Bundles
  4. Click the green plus sign
  5. Select the directory the BrightScript.tmbundle was cloned.
  6. Click save.

Files with .brs should now have syntax highlighting.

@christ66
christ66 / git-fork-clone-upstream.py
Last active October 10, 2023 02:11
Fork a github repo, clone it, and set the upstream to the forked url
from github import Github
import sys
from os.path import expanduser
import os
from git import Repo, GitCommandError
f = open(expanduser("~/.github"), "r")
token = f.readline()[len("oauth="):].lstrip().rstrip()
g = Github(token)
user = g.get_user()
@christ66
christ66 / README
Last active March 10, 2023 14:05 — forked from ganthore/README
See README below.
INSTALLATION
Copy jenkins-slave.init to /etc/init.d/jenkins-slave and copy jenkins-slave to /etc/sysconfig/jenkins-slave.
cp jenkins-slave.init /etc/init.d/jenkins-slave
cp jenkins-slave /etc/sysconfig/jenkins-slave
chkconfig jenkins-slave on
service jenkins-slave start
Change the values of /etc/sysconfig/jenkins-slave to match your environment needs.
~ % java -version
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
@christ66
christ66 / keybase.md
Last active July 26, 2016 17:39
keybase.md

Keybase proof

I hereby claim:

  • I am christ66 on github.
  • I am schristou88 (https://keybase.io/schristou88) on keybase.
  • I have a public key whose fingerprint is 0D0F 0770 3370 1BDF 2ECF DF28 8506 CC6B 684E AC67

To claim this, I am signing this object: