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
| [tool.poetry] | |
| name = "project" | |
| version = "0.1.0" | |
| description = "" | |
| authors = ["Example Author <example@example.com>"] | |
| packages = [ | |
| { include = "project" } | |
| ] | |
| [tool.poetry.dependencies] |
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
| 2018/08/01 16:32:44 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161 | |
| 2018/08/01 16:32:44 [INFO] Go runtime version: go1.9 | |
| 2018/08/01 16:32:44 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"} | |
| 2018/08/01 16:32:44 [DEBUG] Attempting to open CLI config file: /home/xxxxxxx/.terraformrc | |
| 2018/08/01 16:32:44 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
| 2018/08/01 16:32:44 [INFO] CLI command args: []string{"plan"} | |
| 2018/08/01 16:32:44 [INFO] command: empty terraform config, returning nil | |
| 2018/08/01 16:32:44 [DEBUG] command: no data state file found for backend config | |
| 2018/08/01 16:32:44 [DEBUG] New state was assigned lineage "a9872a3b-0002-40d8-a9f9-46d7fc56fcdc" | |
| 2018/08/01 16:32:44 [INFO] command: backend initialized: <nil> |
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
| #!/bin/bash | |
| watch "passenger-status --show=pool | grep 'Last used' | perl -p -e 's/^.*(Last[ ]*used[:].*[hms])[ ]*.*/\$1/g; s/(\d+)h/60*60*\$1/ge; s/(\d+)m/60*\$1/ge; s/(\d+)s/\$1/g; s/(\d+)[ ]*(\d+)?[ ]*(\d+)?/\$1+\$2+\$3/ge; s/(\d+)/\$1s ago/g;' | sort -k3g | uniq -c | awk 'BEGIN {FS=\" \"; OFS=\"\\t\";} {c=\$1; \$1=\"\"; print \"Last used \"\$4\" ago:\", gensub(\"0\", \"#\", \"g\", sprintf(\"%0\"c\"d (%s)\", 0, c));}'" |
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
| #!/bin/bash | |
| period_s=$1 | |
| window_size=$2 | |
| target_metric=$3 | |
| metric_command=$4 | |
| half_window=$((${window_size} / 2)) | |
| metric="" | |
| metrics=() |
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
| #!/usr/bin/env cwl-runner | |
| cwlVersion: draft-3 | |
| class: CommandLineTool | |
| inputs: | |
| - id: message | |
| type: string | |
| inputBinding: | |
| position: 1 |
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
| #include <stdio.h> | |
| #include <rodsClient.h> | |
| static struct { | |
| rcComm_t *conn; | |
| rodsEnv env; | |
| } irods = { NULL }; | |
| //extern "C" int irods_init(); |
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
| #!/bin/bash | |
| cat AncestryDNA.txt | awk 'BEGIN {OFS="\t";} $1~/^#/ {print} $1=="rsid" {print "#",$0} $1!~/^#/ && $1!="rsid" { if($4=="0") {$4="-"}; if($5=="0") {$5="-"}; if($2=="23") {$2="X"}; if($2=="24") {$2="Y"}; if($2=="25") {$2="X"}; if($2=="26") {$2="MT"}; print $1, $2, $3, $4$5;}' > AncestryDNA_23andme_format.txt |
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
| FROM ubuntu:14.04 | |
| MAINTAINER jcrandall@alum.mit.edu | |
| # Switch to root user for installation | |
| USER root | |
| # Install updated packages and prerequisites | |
| RUN \ | |
| apt-get -q=2 update && \ | |
| apt-get -q=2 -y upgrade && \ |
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
| #!/bin/bash | |
| set -euf -o pipefail | |
| ARVADOS_API_HOST="api.arvados.sanger.ac.uk" | |
| SCRATCH_PATH="/data/crunch-tmp" | |
| LOG_PATH="/var/log/arvados-node-ping.log" | |
| UUID=$(grep \"uuid\" /root/node.json |cut -f4 -d\") | |
| PING_SECRET=$(grep \"ping_secret\" /root/node.json |cut -f4 -d\") |
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
| for uuid in $(arv node list --select='["uuid","hostname"]' | jq -r '.items[] | select(.hostname | test("humgen-0[1234]")) | .uuid'); do arv node update --uuid ${uuid} --node "$(arv node get --uuid ${uuid} | jq 'with_entries(select(.key=="properties") | .value.total_cpu_cores=40 | .value.total_ram_mb=192 | .value.total_scratch_mb=1000000)')"; done | |
| for uuid in $(arv node list --select='["uuid","hostname"]' | jq -r '.items[] | select(.hostname | test("humgen-05")) | .uuid'); do arv node update --uuid ${uuid} --node "$(arv node get --uuid ${uuid} | jq 'with_entries(select(.key=="properties") | .value.total_cpu_cores=32 | .value.total_ram_mb=256 | .value.total_scratch_mb=750000)')"; done |