Skip to content

Instantly share code, notes, and snippets.

View MillironX's full-sized avatar
🐮
Feeling bullish

Thomas A. Christensen II MillironX

🐮
Feeling bullish
View GitHub Profile
@MillironX
MillironX / Earthfile
Created April 16, 2023 01:03
Julia CI Earthfile
VERSION 0.7
FROM alpine:3.17
docs:
FROM julia:latest
COPY --dir src .
COPY --dir docs .
COPY Project.toml .
RUN apk add --update --no-cache git
RUN julia --color=yes --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
@MillironX
MillironX / slurm-basics.md
Created March 9, 2022 19:45
KSUMNGS Slurm Basics

SLURM Basics

Before you start, outline the following three things for your computational task:

  1. How many threads (CPUs) you need
    • Will often be passed to a --threads option or similar
    • Using more than 32 in most cases will lead to slower execution times
    • We'll call this quanity $CPUS
  2. How much memory (RAM) you need
  • Try to convert this into megabytes (MB)
@MillironX
MillironX / setup.sh
Created March 8, 2022 19:15
SLURM Setup on CentOS 8
export MUNGEUSER=1001
groupadd -g $MUNGEUSER mungeuseradd -m -c "MUNGE Uid 'N' Gid Emporium" -d /var/lib/munge -u $MUNGEUSER -g munge -s /sbin/nologin munge
export SLURMUSER=1002
groupadd -g $SLURMUSER slurmuseradd -m -c "SLURM workload manager" -d /var/lib/slurm -u $SLURMUSER -g slurm -s /bin/bash slurm
dnf config-manager --enable powertools
dnf install epel-release -y
dnf install slurm slurm-slurmd slurm-slurmdtld -y
dnf install slurm slurm-slurmd slurm-slurmctld -y
create-munge-key
systemctl start munge
@MillironX
MillironX / nf-style.md
Last active January 3, 2022 20:40
Nextflow Code Style Proposal

Nextflow Code Style Proposal

Code formatting

Shebang

All Nextflow documents should start with the following lines, regardless of whether or not the file is intended to be used as an entry script

<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My sandbox website</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<style>
@MillironX
MillironX / gianu-improved.zsh-theme
Last active June 9, 2021 15:41
My take on the oh-my-zsh gianu theme
PROMPT='[%{$fg_bold[yellow]%}%n%{$reset_color%}@%{$fg_bold[red]%}%m%{$reset_color%} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)%{$reset_color%}]\$ '
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$fg_bold[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}"
@MillironX
MillironX / believer.zsh-theme
Created April 14, 2021 03:33
A fork of the agnoster theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@MillironX
MillironX / gist:ca4108b43cc7203de923ea3b8c111803
Created December 17, 2019 21:16
A series of useful Azure Analytics Queries
// Top 10 Browsers
pageViews
| where timestamp > ago(365d)
| summarize count() by client_Browser
| top 10 by count_ desc