Skip to content

Instantly share code, notes, and snippets.

distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
&& curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
&& curl -s -L https://nvidia.github.io/libnvidia-container/experimental/$distribution/libnvidia-container.list | \
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
@mctouch
mctouch / runhugectr
Created February 13, 2021 14:40
runhugectr
docker run --runtime=nvidia --rm -v /.:/HugeCTR_Container -w /HugeCTR_Container -it -u $(id -u):$(id -g) -it nvcr.io/nvidia/hugectr:v2.3
@mctouch
mctouch / index.html
Created January 17, 2020 05:26
PURE CSS 3D SLIDER
<section id="slider">
<input type="radio" name="slider" id="s1">
<input type="radio" name="slider" id="s2">
<input type="radio" name="slider" id="s3" checked>
<input type="radio" name="slider" id="s4">
<input type="radio" name="slider" id="s5">
<label for="s1" id="slide1"></label>
<label for="s2" id="slide2"></label>
<label for="s3" id="slide3"></label>
<label for="s4" id="slide4"></label>
@mctouch
mctouch / index.html
Created March 13, 2019 02:19
Mermaid Demo
<div>
This Pen makes use of
<a href="https://knsv.github.io/mermaid" target="_blank">mermaid.js</a> to describe diagrams like a <a href="https://en.wikipedia.org/wiki/Gantt_chart" target="_blank">Gantt</a> with Markdown. The example code is taken from <a href="https://knsv.github.io/mermaid/live_editor/" target="_blank">their live editor</a>.
</div>
<div>
<textarea name="" id="input" cols="30" rows="10">
sequenceDiagram
A->> B: Query
B->> C: Forward query
Note right of C: Thinking...
#!/bin/bash -e
DATE=`date`
# log file when the script is executed
OUTFILE="outfile.txt"
. ./appd_alert.sh "$@"
echo "$SEVERITY"
echo "$APP_NAME"
echo "$HEALTH_RULE_NAME"
<custom-actions>
<action>
<type>textfileout</type>
<executable>wrapper.sh</executable>
</action>
</custom-actions>
@mctouch
mctouch / keybase.md
Created November 7, 2017 01:13
keybase.md

Keybase proof

I hereby claim:

  • I am mctouch on github.
  • I am mctouch (https://keybase.io/mctouch) on keybase.
  • I have a public key ASDWhJMm_9hM1v7ICNvriBY5QC5UkGSNhdQV7TQw3VRuCQo

To claim this, I am signing this object:

@mctouch
mctouch / byobuCommands
Created May 20, 2016 15:42 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window