Skip to content

Instantly share code, notes, and snippets.

Avatar

Jordan Glassman jordanglassman

View GitHub Profile
View gist:8e8df15b2238c2171fed
var deployJava = function() {
var l = {
core: ["id", "class", "title", "style"],
i18n: ["lang", "dir"],
events: ["onclick", "ondblclick", "onmousedown", "onmouseup", "onmouseover", "onmousemove", "onmouseout", "onkeypress", "onkeydown", "onkeyup"],
applet: ["codebase", "code", "name", "archive", "object", "width", "height", "alt", "align", "hspace", "vspace"],
object: ["classid", "codebase", "codetype", "data", "type", "archive", "declare", "standby", "height", "width", "usemap", "name", "tabindex", "align", "border", "hspace", "vspace"]
};
var b = l.object.concat(l.core, l.i18n, l.events);
var m = l.applet.concat(l.core);
View InterruptTest.java
import org.apache.commons.codec.digest.DigestUtils;
import org.junit.Test;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class SandboxTest {
@Test
View Dockerfile
FROM jenkins/jenkins:2.60.3
USER root
# test directory is a mounted volume
RUN mkdir /root/test
VOLUME /root/test
COPY files /root/test
RUN ls -l /root/test
RUN chown -R jenkins:jenkins /root/test
RUN ls -l /root/test
View notifications-complaint
AFAICT, it's impossible to disable this notification. It pops up periodically and I have to click Close every time. I don't want to update anything right now.
* App Store does not appear in System Preferences -> Notifications
* notification appears even with "Automatic Updates" unchecked in App Store -> Preferences
* notification appears even with System Preferences -> Software Update -> Advanced -> all unchecked
View repack-postgres.sh
#!/bin/bash -ex
# NB: This is the *server* version, which is not to be confused with the client library version.
# The important compatibility point is the *protocol* version, which hasn't changed in ages.
VERSION=12.1-3
RSRC_DIR=$PWD/target/generated-resources
[ -e $RSRC_DIR/.repacked ] && echo "Already repacked, skipping..." && exit 0
cd `dirname $0`