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 / to_pypi.bash
Last active July 5, 2021 13:35
Create tags to trigger publishing to Pypi
git commit -am "Version bump"
git push origin master
git tag 4.0.3
git push origin 4.0.3
@ymollard
ymollard / jitsi_crop_1920x1080.bash
Last active March 14, 2021 01:38
Crop and blur Jitsi from 1920x1080 screen captures
#!/bin/bash
type convert || exit(1);
for i in Capture*png; do
convert "$i" \
-region 1600x800+300+200 -blur 0x9 \
"tmp-$i";
convert "tmp-$i" \
-crop 1920x930+0+120 \
@ymollard
ymollard / old_versions_poppy_or_ros.md
Last active February 12, 2021 16:24
Few steps to debug old versions of Poppy Python Ubuntu etc

Poppy notebook dealing with old versions

No installed poppy creature were found!

Solution:

pip install ikpy==2.3.3

Rapyuta

  • From 16.04 ROS Kinetic
  • pip install pip==9.0.1
@ymollard
ymollard / multipass.md
Last active February 4, 2021 14:35
Multipass VMs

Build a custom image

multipass launch           # will create a 20.04
sudo apt update
sudo apt upgrade
sudo apt install ubuntu-desktop xrdp
sudo passwd ubuntu         # Change the password
File "/usr/share/system-config-printer/printerproperties.py", line 1425, in load
option.reinit (value, supported=supported)
File "/usr/share/system-config-printer/options.py", line 229, in reinit
self.set_widget_value (self.original_value)
File "/usr/share/system-config-printer/options.py", line 257, in set_widget_value
index = self.combobox_map.index (ipp_value)
ValueError: 0 is not in list
@ymollard
ymollard / count_files_by_extension.bash
Created December 9, 2020 21:54
Count files by extension
find -type f | rev | cut -d. -f 1 | rev | sort | uniq -c | sort -n

https://github.com/LLK/scratch-gui/wiki/Getting-Started#example-scratch-gui-vm-and-blocks-linked

mkdir scratch && cd scratch
git clone https://github.com/aubrune/scratch-gui # if making changes fork the project and check out your copy
git clone https://github.com/aubrune/scratch-vm # if making changes fork the project and check out your copy
git clone https://github.com/aubrune/scratch-blocks # if making changes fork the project and check out your copy
cd scratch-vm
npm install
sudo npm link
git clone git clone https://github.com/arbalet-project/frontage-frontend.git -b ionic_5
cd frontage-frontend
npm i
ionic build
# Generate assets with cordova
ionic capacitor open ios # Close Xcode then
npm install -g cordova-res
cordova-res ios
wget https://gist.githubusercontent.com/dalezak/a6b1de39091f4ace220695d72717ac71/raw/3c858045b84dab9d39bd53cb2d19fba3e523bef4/resources.js
@ymollard
ymollard / config.json
Created September 26, 2020 17:32 — forked from EtienneSchmitz/config.json
Frontage/Bordeaux
{
"apps": [
"Flags",
"RandomFlashing",
"SweepRand",
"SweepAsync",
"Tetris",
"Snake",
"Drawing"
],
{
"apps": [
"Flags",
"RandomFlashing",
"SweepRand",
"SweepAsync",
"Tetris",
"Snake",
"Drawing"
],