Skip to content

Instantly share code, notes, and snippets.

View jgwill's full-sized avatar

Guillaume Descoteaux-Isabelle jgwill

View GitHub Profile
@jgwill
jgwill / x__github_api__nodejs__2012030818.dissimination-method-.md
Last active December 3, 2020 13:56
@stcgoal Create Gist really quickly when experimenting

#--@STCGoal Create Gist really quickly when experimenting

##--@STCIssue Why creating Gist when Experimenting ?


Well, what else ??

Here is what created that content anyway

@jgwill
jgwill / 00-status-WSL-Ubuntu-setup-20112611.md
Last active May 9, 2022 19:26
WSL Ubuntu setup 2011261142

Docker Desktop WSL 2 backend is not supported yet with GPUs. You will have to install Docker as you would traditionally in Linux for WSL 2 and then install NVIDIA Container Toolkit (or nvidia-docker2) for now. nvidia-container-toolkit and nvidia-docker2 in the end are just wrappers. There is a slight variation depending on which version of Docker you use (19.03 vs. 18.09), but if you chose to install nvidia-docker2, then that works across both releases of Docker. I’ll look into making that more clear in the documentation. nvidia-smi does not work because we don’t support NVML in WSL 2 yet - this is part of the Known Limitations in the user-guide. We will be adding support for it in the near future. >https://forums.developer.nvidia.com/t/hiccups-setting-up-wsl2-cuda/128641

@jgwill
jgwill / ai-tf2-setup.sh
Last active November 22, 2020 17:42
Linux platform build by steps (Matching Docker images)
#!/bin/env bash
pip3 install IPython
pip3 install matplotlib
@jgwill
jgwill / gui-run-on-docker.md
Last active November 9, 2020 14:51
Run GUI app on docker local or remote

How to run a GUI app from a docker image ?

Summary

  • X server install on windows (VcXsrv)
  • Sample docker file build (firefox)
  • Environment setup and launch (Powershell)

Prerequisite

//Lire un fichier et imprimer son contenu
var fs = require('fs');
fs.readFile('README.md', 'utf8', function(err, contents) {
console.log(contents);
//contents object has the data
});
#!/bin/bash
export rendercmd="/opt/hfs18.0/bin/hbatch-bin"
export end_cmd=";quit";
cd ~/nad.previz/x/x__for_fun__191122
#volcano_smoke_column.hiplc
@jgwill
jgwill / config.yml
Created February 16, 2020 21:44
CI: get Latest commit message in a Workflow
version: 2
jobs:
build:
docker:
- image: circleci/node:10.0.0
steps:
- checkout
@jgwill
jgwill / houBatch.py
Created November 21, 2019 02:59 — forked from crydalch/houBatch.py
houBatch helper script
"""
A simple script to kick off a certain ROP remotely, optionally
with a given framerange.
Usage: hython path/to/script/houBatch.py /path/to/hipfile /hou/path/to/rop
TODO: Add options for multiple ROPs, hperf.
"""
import hou, sys
@jgwill
jgwill / git-save-credential-http.sh
Created May 21, 2019 00:00
GIT Bash - credentials - How to save username and password in GIT?
# credentials - How to save username and password in GIT? - Stack Overflow
#Run :
git config credential.helper store
#then
git pull
@jgwill
jgwill / count-files-bash.aliases.sh
Last active May 12, 2019 14:32
Count files in the current dir
#@STCGoal Count files in the current dir
alias countfiles="du -a . | wc -l"