Skip to content

Instantly share code, notes, and snippets.

View icaoberg's full-sized avatar

icaoberg icaoberg

View GitHub Profile
@icaoberg
icaoberg / asana.py
Created May 12, 2023 15:12
Top 10 Asana Tasks
import os
import asana
from pathlib import Path
from tqdm import tqdm
import pandas as pd
import warnings
warnings.filterwarnings("ignore")
# @icaoberg Read secrets. assumes file exists in ~/.ASANA_SECRETS
@icaoberg
icaoberg / sq.sh
Created December 16, 2022 01:59
A better version of squeue
alias sq='squeue -o "%.18i %.9P %.50j %.8u %.2t %.10M %.6D %R"'
@icaoberg
icaoberg / script.sh
Last active December 26, 2021 02:42
Fill metadata on mp3 files
for F in *.mp3
do
ALBUM='Room Service (Extended Version)'
ARTIST='Roxette'
SONG=$(basename $F .mp3 | cut -d'-' -f2-25 | xargs -0)
GENRE='Pop'
YEAR=2020
mid3v2 -a "$ARTIST" -A "$ALBUM" -t "$SONG" -g $GENRE -y $YEAR $F
done
@icaoberg
icaoberg / README.md
Created June 3, 2021 19:15
README.md template

singularity-PACKAGE

Singularity recipe for PACKAGE.

Installing the container on Bridges 2

Copy the

  • SIF file
  • and the PACKAGE script

to /opt/packages/PACKAGE/VERSION.

@icaoberg
icaoberg / Singularity
Created June 3, 2021 02:31
Singularity recipe for spellcheck
Bootstrap: docker
From: debian:latest
%labels
AUTHOR icaoberg
MAINTAINER icaoberg@psc.edu
WEBSITE https://www.andrew.cmu.edu/~icaoberg
VERSION 0.5.0
%post
@icaoberg
icaoberg / Singularity
Created June 2, 2021 21:37
Singularity recipe for tokei
Bootstrap: docker
From: alpine:edge
%labels
AUTHOR icaoberg
MAINTAINER icaoberg@psc.edu
WEBSITE https://www.andrew.cmu.edu/~icaoberg
VERSION 12.1.2
%post
@icaoberg
icaoberg / Singularity
Last active June 2, 2021 21:26
Singularity recipe for hyperfine
Bootstrap: docker
From: alpine:edge
%labels
AUTHOR icaoberg
MAINTAINER icaoberg@psc.edu
WEBSITE https://www.andrew.cmu.edu/~icaoberg
VERSION 1.11.0
%post
@icaoberg
icaoberg / bioinformatics
Last active May 26, 2021 19:45
Simple script that lists modulefiles in the 'Biological Sciences' category
#!/bin/bash
module keywords "Biological Sciences"
@icaoberg
icaoberg / example.gnu
Created May 3, 2021 02:41
GNUplot example script
set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400
set output 'image.png'
set key outside right top vertical Right noreverse enhanced autotitle nobox
set title "plot with filledcurve [options]"
set xrange [ * : * ] noreverse writeback
set x2range [ * : * ] noreverse writeback
set yrange [ * : * ] noreverse writeback
set y2range [ * : * ] noreverse writeback
set zrange [ * : * ] noreverse writeback
set cbrange [ * : * ] noreverse writeback
@icaoberg
icaoberg / Singularity
Last active May 4, 2021 16:11
GROMACS 2021 Spack+Singularity recipe
Bootstrap: docker
From: spack/ubuntu-bionic
%labels
MAINTAINER icaoberg
EMAIL icaoberg@psc.edu
WEBSITE http://github.com/icaoberg/singularity-gromacs
COPYRIGHT Copyright © 2021 Pittsburgh Supercomputing Center. All Rights Reserved.
VERSION 2021.1