Skip to content

Instantly share code, notes, and snippets.

@florianroulet
florianroulet / gist:effb3728609fda064afc3252fc519ffa
Created October 21, 2019 14:39
vmware CCID / e-TOKEN USB device
To mount an e-TOKEN / CCID usb device on a vmware virtual machine with linux host / windows guest,
one should add the following line to the .vmx file of its vm :
usb.generic.allowCCID = "TRUE"
https://communities.vmware.com/thread/560151
@florianroulet
florianroulet / readme.md
Created February 18, 2019 08:31
prioritize network interfaces
@florianroulet
florianroulet / gist:888f108604ca9f4667f1f4f0fce0add6
Last active December 20, 2018 17:17
set correct rules for android device / adb
@florianroulet
florianroulet / readme.md
Created September 14, 2018 20:31
allow arduino IDE to flash ESP8266 (or other) board

sudo chmod a+rw /dev/ttyUSB0

@florianroulet
florianroulet / windows licence
Created September 13, 2018 18:42
how to retreive windows licence under linux
sudo cat /sys/firmware/acpi/tables/MSDM | tail -c 32 | xargs -0 echo
@florianroulet
florianroulet / readme.md
Last active September 13, 2018 13:52
docker user id as current user
@florianroulet
florianroulet / dockerInSnapPermission
Last active August 27, 2018 07:59
docker in snap SuperUser persmission
# add the docker group
sudo groupadd docker
# add the group to your user
sudo gpasswd -a ${USER} docker
# restart the docker daemon
sudo service docker restart # Or docker.io for older versions
# 18.04+ with snap:
sudo systemctl restart snap.docker.dockerd
# log off and log on
@florianroulet
florianroulet / end code
Created August 26, 2018 12:30
cura3 anet A8 conf
M104 S0 ;chauffage de l'extrudeuse éteint
M140 S0 ;chauffe-lit chauffant éteint
G91 ;positionnement relatif
G1 E-1 F300 ;rétracter un peu le filament avant de soulever la buse, pour libérer une partie de la pression
G1 Z+0.5 E-5 X-20 Y-20 F9000 ;déplacez Z un peu et retirez le filament encore plus
G28 X0 Y0 ;déplacez X / Y jusqu'à la butée min, de sorte que la tête soit à l'écart
G90 ;positionnement absolu
G1 Y190 F9000 ;le lit se déplace vers l'avant
M84 ;steppers off
@florianroulet
florianroulet / create a wifi bridge with a raspberry.md
Created August 9, 2018 20:22
create a wifi bridge with a raspberry

prerequisite : have a functionnal raspberry with ssh access configured see here

  • install dependencies sudo apt install hostapd hostap-utils iw bridge-utils rfkill
  • set file /etc/hostapd/hostapd.conf as in this gist. Don't forget to set the SSID, channel, country and passphrase following your requirement
  • set file /etc/network/interfaces as in this gist
  • set file /etc/default/hostapd as in this gist
  • reboot sudo reboot
  • Have Fun
@florianroulet
florianroulet / headless_raspberry_setup.md
Last active August 9, 2018 19:18
headless raspberry pi preparation
  • burn raspbian image to SD card with etcher
  • enable ssh connection by creating a file named ssh on boot partition (touch ssh)
  • set the [name] of your pi by editing /etc/hosts (only 127.0.1.1 line) and /etc/hostname on rootfs partition
  • in case of wifi connection, edit the /etc/wpa_supplicant/wpa_supplicant.conf file to add your AP and PSK. see here
  • unmount SD card, put it in raspberry, power up and let it a few minutes to boot.
  • add your local ssh public key to your pi with the command ssh-copy-id pi@[name].local
  • access the pi with ssh pi@[name].local. ([name].local is working as avahi is setup by default on raspbian, otherwise find and use th raspberry IP adress)
  • the default password is still raspberry, don't forget to change it with command passwd. Eventualy disable ssh password authentication by setting