$ docker run
$ docker create
$ docker run -a
| # Encuentras el idVendor y el idProduct haciendo | |
| cat /proc/bus/input/devices | |
| # Despues de guardar hacer como root (sin necesidad de reboot) | |
| udevadm control --reload-rules && udevadm trigger | |
| # Ubicación | |
| # /etc/udev/rules.d/80-touchscreen.rules | |
| SUBSYSTEM=="usb", ATTRS{idVendor}=="04f3", ATTRS{idProduct}=="20d0", ATTR{authorized}="0" |
| Instalar Windows 10 | |
| $ sudo woeusb --tgt-fs NTFS -d /path/of/iso /path/of/dev/usb |
| function imageToBase64(img) | |
| { | |
| var canvas, ctx, dataURL, base64; | |
| canvas = document.createElement("canvas"); | |
| ctx = canvas.getContext("2d"); | |
| canvas.width = img.width; | |
| canvas.height = img.height; | |
| ctx.drawImage(img, 0, 0); | |
| dataURL = canvas.toDataURL("image/png"); |
| #!/usr/bin/env bash | |
| # Use this one-liner to produce a JSON literal from the Git log: | |
| git log \ | |
| --pretty=format:'{%n "commit": "%H",%n "author": "%aN <%aE>",%n "date": "%ad",%n "message": "%f"%n},' \ | |
| $@ | \ | |
| perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \ | |
| perl -pe 's/},]/}]/' |