This file contains 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
SELECT event_id, event_label, total | |
FROM (SELECT DISTINCT | |
CASE pipeline_name | |
WHEN 'Transfer'::text | |
THEN 'Archive'::text | |
ELSE | |
CASE xs_lastposition('/'::text, pipeline_name::text) | |
WHEN 0 | |
THEN pipeline_name | |
ELSE substring(substring(pipeline_name::text, xs_lastposition('/'::text, pipeline_name::text) + 1), 1, xs_lastposition('.'::text, substring(pipeline_name::text, xs_lastposition('/'::text, pipeline_name::text) + 1)) - 1) |
This file contains 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
importClass(org.nrg.xnat.turbine.utils.ArcSpecManager); | |
importPackage(java.io); | |
var cache = org.nrg.xnat.turbine.utils.ArcSpecManager.GetInstance().getCachePathForProject(externalId); | |
var file = new java.io.File(cache, "haiku.txt"); | |
var writer = new java.io.PrintWriter(new FileWriter(file)); | |
writer.println("Into the ancient pond"); | |
writer.println("A frog jumps"); | |
writer.println("Waters sound!"); |
This file contains 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
server { | |
listen xnatdev.wurstworks.com:80; | |
server_name xnatdev.wurstworks.com; | |
location / { | |
root /var/lib/tomcat7/webapps/xnat; | |
proxy_pass http://localhost:8080; | |
proxy_redirect http://localhost:8080 $scheme://xnatdev; |
This file contains 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
function getNominalType(scan) { | |
if (!scan.extension && scan.constructor.name === "xnat_imageScanData") { | |
return getImageScanNominalType(scan); | |
} else if (scan.extension) { | |
return getImageScanNominalType(scan.extension); | |
} else { | |
return "Unknown"; | |
} | |
} |
This file contains 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
package org.nrg.sandbox.filter; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
import java.util.Map; |
This file contains 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
rherrick@Aerys:/var/lib/tomcat7/webapps/xnat/logs$ df -k | |
Filesystem 1024-blocks Used Available Capacity iused ifree %iused Mounted on | |
/dev/disk1 975429376 597606396 377566980 62% 149465597 94391745 61% / | |
devfs 189 189 0 100% 655 0 100% /dev | |
map -hosts 0 0 0 100% 0 0 100% /net | |
map auto_home 0 0 0 100% 0 0 100% /home | |
localhost:/glE86G90KqDxJiF-GlQgzv 975429376 975429376 0 100% 0 0 100% /Volumes/MobileBackups | |
xnatdev:/data 19478204 5779124 12686600 32% 221668 1023516 18% /data | |
xnatdev:/etc/default 19478204 5779124 12686600 32% 221668 1023516 18% /private/etc/default | |
xnatdev:/etc/tomcat7 19478204 5779124 12686600 32% 221668 1023 |
This file contains 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
server { | |
listen xnatdev.wurstworks.com:80; | |
server_name xnatdev.wurstworks.com; | |
location / { | |
root /var/lib/tomcat7/webapps/xnat; | |
proxy_pass http://localhost:8080; | |
proxy_redirect http://localhost:8080 $scheme://xnatdev; |
This file contains 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
server { | |
listen ldap.wurstworks.com:80; | |
server_name ldap.wurstworks.com; | |
root /tmp/test | |
index index.php index.html index.htm; | |
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | |
location ~ \.php$ { | |
try_files $uri =404; |
This file contains 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 org.apache.tools.ant.filters.FixCrLfFilter | |
import org.apache.tools.ant.filters.ReplaceTokens | |
import org.apache.tools.ant.taskdefs.condition.Os | |
defaultTasks 'show', 'copyAll' | |
def isWindows = Os.isFamily(Os.FAMILY_WINDOWS) | |
def scriptName = isWindows ? "\$1.bat" : "\$1" | |
def pipelinePath = "${buildFile.parent}" as String |
This file contains 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
unbind C-b | |
set -g prefix C-\\ | |
bind | split-window -h | |
bind \ split-window -h | |
bind - split-window -v | |
bind _ split-window -v | |
bind R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded!" | |
# Initialize session binding | |
bind s source-file ~/.tmux/logs |