Skip to content

Instantly share code, notes, and snippets.

View ymollard's full-sized avatar
🐧
Art, engineering & digital training

Yoan Mollard ymollard

🐧
Art, engineering & digital training
View GitHub Profile
@ymollard
ymollard / quick_logging.py
Last active November 19, 2021 01:03
Python 3 quick stdout logging
import logging, sys
logging.basicConfig(stream=sys.stderr, level="DEBUG")
# Parent module switched to debug for both the logger and the stream handler
import logging
h = logging.StreamHandler()
h.setLevel("DEBUG")
l = logging.getLogger("pypot")
l.setLevel("DEBUG")
l.addHandler(h)
@ymollard
ymollard / persistent_ubuntu.md
Last active January 22, 2023 21:58
Create, customize, and duplicate Ubuntu Live USB sticks with persistence

1. If you are creating the image

1.1. Create the Live stick

Install DUS/MKUSB :

sudo add-apt-repository ppa:mkusb/ppa
sudo apt update
sudo apt install mkusb mkusb-nox usb-pack-efi
dus
  1. i (install)
[
[
[
{
"universe": 7,
"dmx": 18
},
{
"universe": 6,
"dmx": 18
@ymollard
ymollard / temporary_connect.md
Created September 16, 2019 14:08
Temprarily access to the web
sudo mv /etc/netplan/10-arbalet.yaml /etc/netplan/.10-arbalet.yaml
sudo reboot
sudo service arbalet stop
cd frontage/prod
docker-composer down
sudo service systemd-resolved restart
ping debian.org    # Should work, or force the DHCP client:
# dhclient enp0s31f6 -v
@ymollard
ymollard / find_busy_port.md
Created August 15, 2019 19:41
Find who's occupying a port
sudo lsof -i:53
@ymollard
ymollard / k1000C.md
Last active July 24, 2019 11:55
k1000C for UCS512C

UCS512

  1. Use 2 signal wiring diagram
  2. Power on the K-1000C
  3. Keep CHIP pressed and press MODE
  4. Select 64 (UCS512C) with button CHIP
  5. With SPEED+ and SPEED- buttons, select the address gap between UCS512C (3 for RGB)
  6. Press MODE... AAA means it's setting addresses
  7. When A000 is displayed, pressing MODE again scans all fixtures and lit them in white (R=512, G=512, B=512)
@ymollard
ymollard / frontage-release-notes.md
Last active October 1, 2018 18:56
Arbalet Frontage Release Notes

Backend versions

release-1.3.0 [01/10/2018]

  • Added "Freehand Drawing" app
  • Improved stability of AMQP connection and redis
  • Bigger joysticks
  • i18n of workshops only in frontend
  • Fixed CRLF issues on Windows

release-1.2.0 [23/09/2018]

  • Higher stability on time (no AMQP heartbeat)
  • Manunal service restart feature
@ymollard
ymollard / IRC_search.md
Created September 16, 2018 22:38
Search IRC channels

Finding Channels on freenode

/msg alis LIST *searchterm*
@ymollard
ymollard / gpx_gpicsync.md
Created August 18, 2018 00:14
Generating GPX by hand and Geocoding pictures with GPicSync on Linux

Generating GPX by hand and Geocoding pictures with GPicSync

This reminder applies if you have pictures that need geocoding (e.g. to be uploaded on Mapillary) but you have no GPX file. We assume you have captured pictures alonside a path from a start point to an en point and that you are able to redraw this path precisely on a map. The first step will be to generate manually a GPX file, then to synchronize it with your pictures thanks to timestamps, and then GPicSync will geocode.

  1. Download GPicSync, install dependencies and make sure you can run the GUI with Python 2, e.g. python2 gpicsync-GUI.py
  2. Draw you actual path on https://geojson.net/ with these recommandations:
  • Place points at every key location, e.g. when you turned or passed in front of a remarkable location that is easy to distinguish visually on pictures (building, square, monuments...)
  • Find a good compromise between numerous points (= very accurate pat
@ymollard
ymollard / xcode_provisioning.md
Last active August 26, 2018 16:09
XCode provisionging/signing mess

Problem

AppName has conflicting provisioning settings.
AppName is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to iPhone Developer in the build settings editor, or switch to manual signing in the project editor.`

Solution

  1. In left section, double click the project name to open the project editor
  2. In left section, Select the project (AF), select Build settings, then All and Combined
  3. In Signing section select iOS Developer for all entries within Code Signing identity
  4. In left section, Select the target (AF), select Build settings, then All and Combined