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
# Steps to install Jenkins Agent using JNLP connection on Ubuntu 20.04 Focal Fossa | |
# | |
# * create an Agent node on the web GUI: https://wiki.jenkins.io/display/JENKINS/Step+by+step+guide+to+set+up+master+and+agent+machines+on+Windows | |
# * $ sudo apt-get install -y openjdk-14-jre-headless | |
# * $ sudo adduser jenkins | |
# * $ curl http://jenkins-master.internal/jnlpJars/agent.jar -o /home/jenkins/agent.jar | |
# * create systemd service: place this file in /lib/systemd/system/jenkins-agent.service | |
# * $ sudo systemctl enable myservice | |
# * $ sudo systemctl start jenkins-agent |
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
// | |
// Obtain class member signatures as required for Jenkins whitelists | |
// as used in the Script Security plugin, | |
// https://github.com/jenkinsci/script-security-plugin | |
// | |
// Usage example: $ groovy signatures.groovy java.lang.String | |
// | |
def resolveArrayType(typeName) { | |
def arrNames = [ |
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
#ifndef RBTREE_RBTREE_H_ | |
#define RBTREE_RBTREE_H_ | |
#include <cstddef> | |
#include <cassert> | |
#include <utility> | |
namespace upsuper { | |
namespace learning { |
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
import java.io.BufferedOutputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.nio.MappedByteBuffer; | |
import java.nio.channels.FileChannel; | |
import java.util.Random; | |
public class TestWCJava2 { |
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
MAIN = program | |
OBJECTS = main.o myclass.o | |
all : $(MAIN) | |
$(MAIN) : $(OBJECTS) | |
g++ -o $@ $(OBJECTS) | |
%.o : %.cpp | |
g++ -c $< |