Skip to content

Instantly share code, notes, and snippets.

View dtrudg's full-sized avatar

Dave Trudgian dtrudg

View GitHub Profile
@dtrudg
dtrudg / DN-X600-QUIRKS.diff
Created March 3, 2022 02:37
DN-X600 Quirks - kernel 5.16.11
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
index 0ea39565e623..9533de9ef6ef 100644
--- a/sound/usb/quirks-table.h
+++ b/sound/usb/quirks-table.h
@@ -3092,6 +3092,76 @@ YAMAHA_DEVICE(0x7010, "UB99"),
}
},
+/* Denon DN-X600 */
+{
@dtrudg
dtrudg / mpitest.c
Created January 6, 2022 20:08
2022-01-06 SingularityCE Communit Call MPI Demo
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char **argv) {
int rc;
int size;
int myrank;
rc = MPI_Init (&argc, &argv);

Keybase proof

I hereby claim:

  • I am dctrud on github.
  • I am dctrud (https://keybase.io/dctrud) on keybase.
  • I have a public key ASDmP3A7ZcTpZGsUJlYpclWuxsdQ-soo0VzuD2MU6NLdUwo

To claim this, I am signing this object:

@dtrudg
dtrudg / ignite_batch.sh
Created May 2, 2019 17:05
Nucleus nextflow ignite sbatch script
#!/bin/bash
#SBATCH --job-name=ignite-nf-wordcount
#SBATCH --output=nf_ignite_%j.log
# Create the ignite allocation across 4 32GB nodes
#SBATCH --partition=32GB
#SBATCH -N 4
# This creates a random cluster seed, so the ignite cluster can communicate
# with itself and not clash with other running ignite clusters on Nucleus.
#!/bin/sh
# Support for a shared clipboard
(/usr/bin/Xvfb :0 >/dev/null 2>&1) &
sleep 1
DISPLAY=:0 /bin/VBoxClient --clipboard
/usr/local/sbin/gpm -m /dev/input/mice -t exps2
diff -rupN gpm-1.20.7-orig/src/daemon/do_selection.c gpm-1.20.7-xclip/src/daemon/do_selection.c
--- gpm-1.20.7-orig/src/daemon/do_selection.c 2012-10-27 10:21:38.000000000 +1300
+++ gpm-1.20.7-xclip/src/daemon/do_selection.c 2014-07-29 13:40:19.546689653 +1200
@@ -19,18 +19,49 @@
*
********/
+#include <sys/stat.h>
+#include <sys/wait.h>
#include "headers/message.h" /* messaging in gpm */
@dtrudg
dtrudg / singularity_clair.txt
Last active November 5, 2017 18:52
Singularity Container Scan with Clair
# Put the singularity image into a .tar.gz
singularity export ubuntu-blender.img > ubuntu-blender.tar
gzip ubuntu-blender.tar
# Get the SHA256 hash, which we'll use as a container name for Clair
sha256sum ubuntu-blender.tar.gz
# NOW - you need to upload the .tar.gz somewhere accessible over http from
# the Clair backend - it will pull it from there. I've used our BioHPC owncloud
# instance, so the image is available via an https URI.
@dtrudg
dtrudg / latest
Created June 19, 2017 19:02
Example manifest, quay.io
{
"schemaVersion": 1,
"name": "mulled/m4",
"tag": "latest",
"architecture": "",
"fsLayers": [
{
"blobSum": "sha256:76a19142909d9dfb909830f351fbab911427efb219bf965994f828f84aba3e6d"
},
{
@dtrudg
dtrudg / .nextflow.log
Created May 25, 2017 15:29
Nextflow crash
May-23 13:38:56.471 [main] DEBUG nextflow.cli.Launcher - Setting http proxy: [proxy.swmed.edu, 3128]
May-23 13:38:56.555 [main] DEBUG nextflow.cli.Launcher - Setting https proxy: [proxy.swmed.edu, 3128]
May-23 13:38:56.555 [main] DEBUG nextflow.cli.Launcher - $> /cm/shared/apps/nextflow/0.24.1-SNAPSHOT/bin/nextflow run rnaseq-cluster-slurm/main.nf --config /project/SCCC/DOrso_lab/s418665/config.txt --fasta genome.fa --gtf genes.gtf --lib p --readLen 75 --egs 2451960000 --strandInfo frFirstStrand --outdir results_star --aligner star
May-23 13:38:56.620 [main] INFO nextflow.cli.CmdRun - N E X T F L O W ~ version 0.24.1-SNAPSHOT
May-23 13:38:56.655 [main] INFO nextflow.cli.CmdRun - Launching `rnaseq-cluster-slurm/main.nf` [clever_roentgen] - revision: 95d562219a
May-23 13:38:56.668 [main] DEBUG nextflow.config.ConfigBuilder - Found config base: /project/SCCC/DOrso_lab/s418665/rnaseq-cluster-slurm/nextflow.config
May-23 13:38:56.670 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /project/SC
@dtrudg
dtrudg / .nextflow.log
Created September 30, 2016 14:11
Requeue test log
Sep-30 09:01:42.253 [main] DEBUG nextflow.cli.Launcher - Setting http proxy: [proxy.swmed.edu, 3128]
Sep-30 09:01:42.354 [main] DEBUG nextflow.cli.Launcher - Setting https proxy: [proxy.swmed.edu, 3128]
Sep-30 09:01:42.354 [main] DEBUG nextflow.cli.Launcher - $> ./nextflow -trace nextflow.executor run main.nf
Sep-30 09:01:42.416 [main] INFO nextflow.cli.CmdRun - N E X T F L O W ~ version 0.22.2-SNAPSHOT
Sep-30 09:01:42.428 [main] INFO nextflow.cli.CmdRun - Launching `main.nf` [reverent_easley] - revision: 8300612e43
Sep-30 09:01:42.437 [main] DEBUG nextflow.config.ConfigBuilder - Found config local: nextflow.config
Sep-30 09:01:42.439 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /home2/dtrudgian/Git/astrocyte_example_wordcount/workflow/nextflow.config
Sep-30 09:01:42.763 [main] DEBUG nextflow.config.ConfigBuilder - Setting config profile: 'standard'
Sep-30 09:01:42.828 [main] DEBUG nextflow.Session - Session uuid: 38109f9f-02e8-4363-be75-d76cb141dccb
Sep-30 09:01:42.828 [main] DEBUG n