Skip to content

Instantly share code, notes, and snippets.

Avatar

Jurriaan H. Spaaks jspaaks

View GitHub Profile
@jspaaks
jspaaks / xenon-cli
Last active Dec 17, 2018
Code snippet for blog about Snakemake and Xenon
View xenon-cli
SUBMIT_CMD="xenon scheduler ${SCHEDULER} \
--location local:// \
submit \
--name smk.{rule} \
--inherit-env \
--procs-per-node {threads} \
--start-single-process \
--max-run-time 1 \
--max-memory {resources.mem_mb} \
--working-directory . \
@jspaaks
jspaaks / gist:df292d42ecbd5e28d4620f011c602b90
Created Feb 26, 2018
steps to delete a copyrighted file from a git repository using BFG-repo-cleaner
View gist:df292d42ecbd5e28d4620f011c602b90
# my local copy of the offending repo was at ~/github/nlesc/enram
# ================= stage 1 =================
# (I removed offending files with git rm, then commited and pushed to GitHub)
# key thing is: the HEAD needs to be clean of offending files
# I also cut all branches except master, not sure how that affects anything
# also important: merge any open pull requests, otherwise you end up undoing the
# history deletion when you merge them later
View index.html
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<title>punchcards: weekday-rect</title>
<script type="text/javascript" src="https://unpkg.com/crossfilter@^1.3.12/crossfilter.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/d3@^3.5.17/d3.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/moment@^2.14.1/moment.js"></script>
View index.html
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<title>punchcards: weekday-circle</title>
<script type="text/javascript" src="https://unpkg.com/crossfilter@^1.3.12/crossfilter.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/d3@^3.5.17/d3.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/moment@^2.14.1/moment.js"></script>
You can’t perform that action at this time.