Skip to content

Instantly share code, notes, and snippets.

View truatpasteurdotfr's full-sized avatar

Tru Huynh truatpasteurdotfr

View GitHub Profile
@truatpasteurdotfr
truatpasteurdotfr / linkback.html
Created November 7, 2022 09:08
mastodon verification
<a rel="me" href="https://fosstodon.org/@tru">Mastodon</a>
#!ipxe
:MENU
menu
item --gap -- https://gist.github.com/truatpasteurdotfr/d5c3c250b3fcc41813c2b00e305b843f
item --gap -- iPXE boot menu ----------------
item --gap -- ------------------------------------------------
item c7-rescue CentOS-7 x86_64 rescue
item c8-stream-rescue Stream-8 x86_64 rescue
item --gap -- ------------------------------------------------
item memtest - memtest (from Stream 8)
@truatpasteurdotfr
truatpasteurdotfr / non-root.txt
Created March 21, 2022 08:29
apptainer -d exec docker://busybox /bin/busybox 2>&1 | tee /tmp/non-root.txt; doas apptainer -d exec docker://busybox /bin/busybox 2>&1 | tee /tmp/root.txt
DEBUG [U=2765,P=17030] persistentPreRun() Apptainer version: 1.0.1
DEBUG [U=2765,P=17030] persistentPreRun() Parsing configuration file /etc/apptainer/apptainer.conf
DEBUG [U=2765,P=17030] handleConfDir() /home/tru/.apptainer already exists. Not creating.
DEBUG [U=2765,P=17030] getCacheParentDir() environment variable APPTAINER_CACHEDIR not set, using default image cache
DEBUG [U=2765,P=17030] parseURI() Parsing docker://busybox into reference
INFO [U=2765,P=17030] pull() Using cached SIF image
DEBUG [U=2765,P=17030] execStarter() Saving umask 0022 for propagation into container
DEBUG [U=2765,P=17030] execStarter() Checking for encrypted system partition
DEBUG [U=2765,P=17030] Init() Image format detection
DEBUG [U=2765,P=17030] Init() Check for sandbox image format
@truatpasteurdotfr
truatpasteurdotfr / APKBUILD
Created February 13, 2022 17:51
apptainer 1.0.0rc2 for alpine linux
# Contributor: "Tru Huynh <tru@pasteur.fr>"
# Maintainer: "Tru Huynh <tru@pasteur.fr>"
pkgname=apptainer
pkgver=1.0.0_rc2
realpkgver=1.0.0-rc.2
pkgrel=0
pkgdesc="Apptainer: Application containers for Linux"
url="https://github.com/apptainer/apptainer"
arch="x86_64"
# https://raw.githubusercontent.com/apptainer/apptainer/main/LICENSE.md
sshpw --username=root centos7 --plaintext
reboot
url --url="http://mirror.sov.uk.goscomb.net/centos/7/os/x86_64"
text
eula --agreed
%packages
@core
%end
%pre
@truatpasteurdotfr
truatpasteurdotfr / Singularity
Created December 14, 2020 16:22
quick and dirty miniconda on CentOS7 for R 4.0 and python 3.6
Bootstrap: docker
From: centos:7
%post
yum -y update && \
yum -y install bzip2 && \
yum -y clean all
# install miniconda
curl -qsSLkO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
name: RAW
channels:
- conda-forge
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- blas=1.0=mkl
- ca-certificates=2020.6.20=hecda079_0
- cairo=1.14.12=h8948797_3
- certifi=2020.6.20=py37he5f6b98_2
name: doglycans
channels:
- openbabel
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- blas=1.0=mkl
- bzip2=1.0.8=h7b6447c_0
- ca-certificates=2020.10.14=0
- cairo=1.14.12=h8948797_3
@truatpasteurdotfr
truatpasteurdotfr / Singularity
Created June 12, 2020 15:45
Singularity(alternative a docker build host) recipe for a CentOS-7 based veyon builder
Bootstrap: docker
From: centos:7
%post
mkdir -p /selinux /misc /net
mkdir -p /pasteur
mkdir -p /local-storage /mnt/beegfs /baycells/home /baycells/scratch /c6/shared /c6/eb /local/gensoft2 /c6/shared/rpm /Bis/Scratch2 /mnt/beegfs
mkdir -p /c7/shared /c7/scratch /c7/home
yum -y update
# -*- rpm-spec -*-
Summary: Open source computer monitoring and classroom management
Name: veyon
Version: 4.4.0
Release: 1%{?dist}
License: GPLv2
Group: unknown
Vendor: Veyon Solutions
# ~/rpmbuild/SOURCES/veyon-4.3.5-src.tar.bz2
Source: %{name}-%{version}-src.tar.bz2