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 / clickshare.md
Created April 4, 2023 16:19
sudo iw dev wlan0 interface add wlan1 type station

Connect to Barco Clickshare via Linux

The USB-C Clickshare is just an external Network card.

Get the password of the Clickshare network and connect to it.

Create a virtual Wifi card so that you can still access the web:

Replace wlan0 by your own card:

sudo iw dev wlan0 interface add wlanvirt type station 
@ymollard
ymollard / invite_body.html
Last active January 10, 2023 21:48
Mattermost invite body personnalisé
{{define "invite_body"}}
<!-- FILE: invite_body.mjml -->
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>
</title>
<!--[if !mso]><!-->
import time
def log(*args):
if not hasattr(log, "t0"):
log.t0 = time.time()
print("t+" + str(int(time.time()-log.t0)) + "\t: ", end="")
print(*args)
from datetime import datetime
class BankAccount:
def __init__(self, owner: str, initial_balance:int):
self._owner = owner
self._balance = initial_balance
def print(self):
print(f"This account belongs to {self._owner} with a balance of ${self._balance}")
DxlCommunicationError                     Traceback (most recent call last)
<ipython-input-3-277838a6949f> in <module>
      1 with Dxl320IO("/dev/ttyAMA0") as f:
----> 2     print(f.scan())
      3 

~/pyenv/lib/python3.7/site-packages/pypot/dynamixel/io/abstract_io.py in scan(self, ids)
    219     def scan(self, ids=range(254)):
    220         """ Pings all ids within the specified list, by default it finds all the motors connected to the bus. """
Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/poppy/pyenv/lib/python3.7/site-packages/pypot/utils/stoppablethread.py", line 130, in _wrapped_target
self._target()
File "/home/poppy/pyenv/lib/python3.7/site-packages/pypot/utils/stoppablethread.py", line 205, in run
make_update_loop(self, self._update)
from datetime import datetime
class BankAccount:
def __init__(self, owner: str, initial_balance: int = 0):
self._owner = owner
self._balance = initial_balance
def print(self):
print(f"This account belongs to {self._owner} and has a balance of ${self._balance}")
rosrun ros4pro_custom manipulate.py
[ INFO] [1648045282.089866728]: Loading robot model 'poppy_ergo_jr'...
[ INFO] [1648045282.112056133]: No root/virtual joint specified in SRDF. Assuming fixed joint
[ WARN] [1648045282.112710544]: Could not identify parent group for end-effector 'fixed_tip'
[ WARN] [1648045282.112856214]: Could not identify parent group for end-effector 'moving_tip'
[ INFO] [1648045283.378258795]: cache file /home/ubuntu/catkin_ws/src/ros4pro_custom/src/poppy_ergo_jrarm_base_linkfixed_tip_5000_1.000000_1.000000.ikcache initialized!
[ INFO] [1648045283.824455476]: Found 2 IK solutions for a 6-dof system with 1 end effectors in /home/ubuntu/catkin_ws/src/ros4pro_custom/src/poppy_ergo_jrarm_and_finger_base_linkmoving_tip_5000_1.000000_1.000000.ikcache
[ INFO] [1648045283.824846103]: freeing buffer
[ INFO] [1648045283.825067761]: freed buffer
[ INFO] [1648045283.825317731]: cache file /home/ubuntu/catkin_ws/src/ros4pro_custom/src/poppy_ergo_jrarm_and_finger_base_linkmoving_tip_5000_1.000000_1.0
import time
def log(*args):
if not hasattr(log, "t0"):
log.t0 = time.time()
print("t+" + str(int(time.time()-log.t0)) + "\t: ", end="")
print(*args)
@ymollard
ymollard / pdf_rat.modules.php.md
Created February 3, 2022 16:46
Dolibarr timesheet bug