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)
wget https://download.kde.org/stable/krita/4.2.1/gmic_krita_qt-x86_64.appimage.sig https://download.kde.org/stable/krita/4.2.1/krita-4.2.1-x86_64.appimage.sig https://download.kde.org/stable/krita/4.2.1/gmic_krita_qt-x86_64.appimage https://download.kde.org/stable/krita/4.2.1/krita-4.2.1-x86_64.appimage
gpg --recv-key 722EA3BD
gpg --verify krita-4.2.1-x86_64.appimage.sig
gpg --verify gmic_krita_qt-x86_64.appimage.sig
[tru@elitebook840g3 shm]$ uname -a
Linux elitebook840g3 3.10.0-957.12.2.el7.x86_64 #1 SMP Tue May 14 21:24:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[tru@elitebook840g3 shm]$ ./krita-4.2.1-x86_64.appimage
./krita-4.2.1-x86_64.appimage: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /tmp/.mount_krita-RI51WX/usr/bin/../lib/libkritaui.so.18)
./krita-4.2.1-x86_64.appimage: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /tmp/.mount_krita-RI51WX/usr/bin/../lib/libkritaui.so.18)
./krita-4.2.1-x86_64.appimage: /lib64/libstdc++.so.6: version `CXXABI_1.3.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 / gist:d541cd279b9f7bf38ce967aa3743dfcb
Last active September 3, 2020 13:11
building bazel on CentOS-6
# install environment to build bazel
# adapted from https://github.com/bazelbuild/bazel/wiki/FAQ
# nice to see that they are using my old devtoolset-2
sudo yum -y install wget which findutils tar gzip zip unzip git zlib-devel
sudo yum -y install java-1.8.0-openjdk-devel
# one should really use the latest devtoolset-N from scl-rh
# to use newer gcc versions
# devtoolset-2-gcc.x86_64 4.8.2-15.el6 @devtools
# devtoolset-3-gcc.x86_64 4.9.2-6.2.el6 @centos-sclo-rh
# devtoolset-4-gcc.x86_64 5.3.1-6.1.el6 @centos-sclo-rh