Skip to content

Instantly share code, notes, and snippets.

View thanhleviet's full-sized avatar
🤗
Focusing

Thanh Lee thanhleviet

🤗
Focusing
View GitHub Profile
@claczny
claczny / installing_singularity_on_macbook_pro_m1_pro.md
Last active December 8, 2024 09:50
This Gist describes the steps needed to install Singularity in a Parallels-Desktop-and-vagrant-managed arm64-compatible virtual machine on a MacBook Pro with an M1 Pro chip.

I wanted to install Singularity on my M1 Pro (Ventura 13.1). As this chip is arm64 based, it turned out rather tricky. Some resources that I consulted although none of them presented a self-contained solution are below. I hadn't tried the solution via UTM as I had access to a Parallels Desktop license and did not necessarily want to have yet-another-tool installed.

@thanhleviet
thanhleviet / singularity-ce.yml
Created July 1, 2022 13:00
Ansible script to install singularity deb
- hosts: all
become: true
become_user: root
vars:
singularity_version: 3.10.0
pre_tasks:
- name: Update apt packages
apt:
update_cache: true
cache_valid_time: 86400 #One day
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 7, 2025 07:10
set -e, -u, -o, -x pipefail explanation
@aksakalli
aksakalli / install-conda.yml
Created July 18, 2018 10:08
Installing Minicaonda/Anaconda from Ansible playbook for all
- name: Install Conda
block:
- name: Download Miniconda
get_url:
url: https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh
dest: /tmp/install-miniconda.sh
checksum: md5:a946ea1d0c4a642ddf0c3a26a18bb16d
mode: 0550
- name: Create conda folder
@hkwi
hkwi / README.md
Last active July 28, 2020 11:12
libvirt + prometheus + grafana
@hygull
hygull / LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143.md
Last active March 28, 2025 22:48
LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License

@zacharycarter
zacharycarter / wclwn.md
Last active August 19, 2024 03:44
Binding to C Libraries with Nim
@nsoranzo
nsoranzo / gist:c4856ad947ff2eaf6d43e3e471584312
Created February 3, 2017 19:56
Stop the scheduling of a Galaxy workflow invocation
If a handler log is full of messages like:
Workflow step 1585 of invocation 554 delayed
then probably a workflow invocation is stuck because a step was cancelled by a user. After verifying that this is the case, to stop the workflow invocation scheduling connect to the Galaxy database using psql and do the following:
galaxy_db=> SELECT * FROM workflow_invocation WHERE id=554;
id | create_time | update_time | workflow_id | history_id | state | scheduler | handler | uuid
-----+----------------------------+----------------------------+-------------+------------+-------+-----------+----------+----------------------------------
554 | 2016-11-16 17:24:38.586902 | 2016-11-16 17:26:34.555872 | 201 | 485 | ready | core | handler1 | 8d49678eac2111e697b90050569af9e3
@darogan
darogan / deinterleave_fastq.sh
Created June 17, 2016 16:07 — forked from nathanhaigh/deinterleave_fastq.sh
deinterleave FASTQ files
#!/bin/bash
# Usage: deinterleave_fastq.sh < interleaved.fastq f.fastq r.fastq [compress]
#
# Deinterleaves a FASTQ file of paired reads into two FASTQ
# files specified on the command line. Optionally GZip compresses the output
# FASTQ files using pigz if the 3rd command line argument is the word "compress"
#
# Can deinterleave 100 million paired reads (200 million total
# reads; a 43Gbyte file), in memory (/dev/shm), in 4m15s (255s)
#