I hereby claim:
- I am demaniak on github.
- I am demaniak (https://keybase.io/demaniak) on keybase.
- I have a public key whose fingerprint is DE9C C375 035F 5A9A DF47 0860 6265 CE7E 2880 579E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# Simple wrapper script for the python visualizer created by [Kobus van Schoor](https://gist.github.com/kobus-v-schoor) | |
# Runs the visualizer in a docker container | |
# | |
if [ ! -f viz.py ]; then | |
curl -L https://gist.github.com/kobus-v-schoor/ec1923bb09858a5037df21444aeabbcd/raw/7c282e7fac668e1771d0ccd29dc583cb7738430c/viz.py > viz.py | |
chmod +x viz.py | |
fi |
FROM ubuntu | |
RUN apt-get update && \ | |
apt-get install -y curl apt-utils \ | |
libasound2 libatk-bridge2.0-0 libcairo2 libcups2 libgdk-pixbuf2.0-0 \ | |
libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 \ | |
libsecret-1-0 libx11-xcb1 libxcomposite1 libxcomposite1 \ | |
libxss1 apt-transport-https libxkbfile1 | |
COPY teams.deb /tmp/teams.deb |
#! /usr/bin/env python3 | |
import json | |
import os | |
import sys | |
import math | |
import time | |
import sys | |
PLAYER = ['1', '2'] |
#!/bin/bash | |
# After the lenovo legion laptop with Nvidia discrete graphics is woken up from sleep mode, | |
# and the screen where X is running is black, go to a text terminal (CTRL+ALT+F1). | |
# Log in, then run this script. | |
# While it is running, go back to the screen X is running on, typically CTRL+ALT+F7. | |
# After a moment or two, your X-session should come back. | |
# | |
# PS: I found ths somewhere on the web, I don't remember where. It has helped me at least. | |
# |
# Step 1: device nodes | |
Use [this project](https://github.com/allfro/device-mapping-manager) to brute force device nodes into running containers. | |
Do this by running it as a docker swarm service like so: | |
`docker-compose.yml`: | |
``` | |
services: | |
device-mapping-manager: |