Skip to content

Instantly share code, notes, and snippets.

Tru Huynh truatpasteurdotfr

Block or report user

Report or block truatpasteurdotfr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:32b6fcb08cf9b0c3b8df67af258a280d
{
"type": "bundle",
"id": "bundle--1e92024b-eb00-4a78-bcf2-b31d67c08a89",
"spec_version": "2.0",
"objects": [
{
"id": "identity--80a869f7-fe53-4b36-a214-394334f20dab",
"type": "identity",
"name": "ANSSI",
"identity_class": "organization",
View gist:073ddce073d7795a3afa06ec1171e338
```
$ sinfo -o "%25f %10G %4c %10m %N"
AVAIL_FEATURES GRES CPUS MEMORY NODELIST
(null) (null) 4+ 1200+ aio,aramaki,averell,azuma,batou,bigbelly,billythekid,calamityjane,casscasey,cheat,denvermiles,dickdigger,doxey,elliotbelt,felipe,guille,hatfield,holliday,ishikawa,jack,jessejames,jollyjumper,jossjamon,kusanagi,leonide,liberte,luckyluke,madalton,mafalda,manolito,mccoy,mestizo,miguelito,moneva,morgan,painfulgulch,patpoker,paz,phildefer,powell,rantanplan,roybean,saito,susanita,tachikoma,togusa,venetoclax,virgil,william,wyatt
gpu,GTX1080Ti,CC61 gpu:GTX108 6+ 12000+ borma,ld18-[1006,1010]
gpu,GTX1080,CC61 gpu:GTX108 16 128000 ibet,jq1
gpu,GTX1080Ti,CC61 gpu:GTX108 16+ 192000+ ld18-1007,margy
gpu,K10,K20,CC30 gpu:K10:2, 16 128000 oopy
gpu,M2090,CC20 gpu:M2090: 12 96000 scrappy
gpu,RTX2080Ti,CC75 gpu:RTX208 20 257000 ld19-1008
@truatpasteurdotfr
truatpasteurdotfr / gist:4a0d5c524e29f57a53f062da65a18f5a
Created Oct 3, 2019
rpm -qa --last for a CentOS-8 yum boostrapped singularity container
View gist:4a0d5c524e29f57a53f062da65a18f5a
Singularity c8-minimal-yum-2019-10-03-2339.sif:~> rpm -qa --last
yum-4.0.9.2-5.el8.noarch Thu Oct 3 23:39:34 2019
systemd-239-13.el8_0.5.x86_64 Thu Oct 3 23:39:34 2019
python3-dnf-plugins-core-4.0.2.2-3.el8.noarch Thu Oct 3 23:39:34 2019
python3-dnf-4.0.9.2-5.el8.noarch Thu Oct 3 23:39:34 2019
libreport-filesystem-2.9.5-6.el8.x86_64 Thu Oct 3 23:39:34 2019
libmodulemd-2.0.0-5.el8.x86_64 Thu Oct 3 23:39:34 2019
dnf-utils-4.0.2.2-3.el8.noarch Thu Oct 3 23:39:34 2019
dnf-plugins-core-4.0.2.2-3.el8.noarch Thu Oct 3 23:39:34 2019
dnf-data-4.0.9.2-5.el8.noarch Thu Oct 3 23:39:34 2019
@truatpasteurdotfr
truatpasteurdotfr / RPM-GPG-KEY-centosofficial
Created Sep 25, 2019
/etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
View RPM-GPG-KEY-centosofficial
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (GNU/Linux)
mQINBFzMWxkBEADHrskpBgN9OphmhRkc7P/YrsAGSvvl7kfu+e9KAaU6f5MeAVyn
rIoM43syyGkgFyWgjZM8/rur7EMPY2yt+2q/1ZfLVCRn9856JqTIq0XRpDUe4nKQ
8BlA7wDVZoSDxUZkSuTIyExbDf0cpw89Tcf62Mxmi8jh74vRlPy1PgjWL5494b3X
5fxDidH4bqPZyxTBqPrUFuo+EfUVEqiGF94Ppq6ZUvrBGOVo1V1+Ifm9CGEK597c
aevcGc1RFlgxIgN84UpuDjPR9/zSndwJ7XsXYvZ6HXcKGagRKsfYDWGPkA5cOL/e
f+yObOnC43yPUvpggQ4KaNJ6+SMTZOKikM8yciyBwLqwrjo8FlJgkv8Vfag/2UR7
JINbyqHHoLUhQ2m6HXSwK4YjtwidF9EUkaBZWrrskYR3IRZLXlWqeOi/+ezYOW0m
View showvars.py
# Show any DNF variables
#
# Copyright (2018). Fermi Research Alliance, LLC
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY expressed or implied, including the implied warranties of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
View gist:c8370f3b8afe86203a129bae6b7b46b6
Singularity> guix pull -n
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
guix https://git.savannah.gnu.org/git/guix.git c42db89
substitute: Backtrace:
substitute: 6 (apply-smob/1 #<catch-closure 132a300>)
substitute: In ice-9/boot-9.scm:
substitute: 705:2 5 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
substitute: In ice-9/eval.scm:
substitute: 619:8 4 (_ #(#(#<directory (guile-user) 13f0140>)))
View gist:c239c7895de88cdf42f48749351e8cde
[centos@localhost ~]$ module av
------ /usr/share/Modules/modulefiles -----------------------------
dot module-git module-info modules null use.own
[centos@localhost ~]$ module show dot
-------------------------------------------------------------------
/usr/share/Modules/modulefiles/dot:
module-whatis adds `.' to your PATH environment variable
append-path PATH .
@truatpasteurdotfr
truatpasteurdotfr / Singularity
Created Jun 9, 2019
ubuntu lts 18.04 Singularity recipe
View Singularity
Bootstrap: library
From: ubuntu:18.04
%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
# non interactive debian
View gist:90b07de9fda04e61311ccd2c5789167f
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 / gist:756e9be3207b6a13519648ae3b8bc21b
Created Jun 2, 2019
singularity builder setup and building singularity-3.2.1
View gist:756e9be3207b6a13519648ae3b8bc21b
abuild-keygen -a
mkdir singularity-build
cd singularity-build
wget https://gist.githubusercontent.com/truatpasteurdotfr/fe52ec25e217c175ea5d0220373cebf8/raw/87a361c443c75d3b79162b576471ef0195507e0e/APKBUILD
#add go from the community repository
sudo cp /etc/apk/repositories /etc/apk/repositories.orig
sed 's/^#\(http.*community.*\)/\1/g' /etc/apk/repositories > /tmp/repositories && sudo cp /tmp/repositories /etc/apk/repositories
sudo apk add go
abuild checksum
abuild -r
You can’t perform that action at this time.