Skip to content

Instantly share code, notes, and snippets.

View alguevara7's full-sized avatar

Alexei Guevara alguevara7

View GitHub Profile
docker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 -it --rm -u $(id -u):$(id -g) -e HOME=$HOME -e USER=$USER -v $HOME:$HOME -p 8181:8888 nvcr.io/nvidia/tensorflow:21.12-tf2-py3
sudo nmcli radio wifi off
@alguevara7
alguevara7 / sed with xargs
Created November 10, 2018 04:03
multiple file rename
ls | sed 's/interior_//g' | xargs -I {} mv interior_{} "interior.{}"
xargs -I % echo mv % %.jpg
- use `xinput` to find DEVICE
- use `xrandr` to find OUTPUT
xsetwacom set DEVICE MapToOutput OUTPUT
more info https://ubuntuforums.org/showthread.php?t=1656089

Keybase proof

I hereby claim:

  • I am zb0th on github.
  • I am zb0th (https://keybase.io/zb0th) on keybase.
  • I have a public key whose fingerprint is 932E ABC8 3146 DBFE D040 F618 CC03 C942 116E 1E20

To claim this, I am signing this object:

osascript -e 'tell application "iTunes" to play playlist "Intro to The xx"';
(defn pfargs
[f & colls]
(let [p (promise)
futs (for [args colls]
(future (let [r (apply f args)] (when-not (nil? r) (deliver p r)))))]
(doall futs)
(let [v @p]
(doseq [fut futs] (when-not (future-done? fut) (future-cancel fut)))
v)))