Skip to content

Instantly share code, notes, and snippets.

View MaxPayne86's full-sized avatar

Massimo Pennazio MaxPayne86

View GitHub Profile
docker pull ubuntu:18.04
docker run -it -d --network host -v ~/Stuff/lv2:/lv2 --name "mod-sdk" ubuntu:18.04 bash
docker exec -it mod-sdk bash
apt-get update
apt-get install -y build-essential liblilv-dev phantomjs python3-pil python3-pystache python3-setuptools python3-pyinotify git
cd /home
git clone https://github.com/tornadoweb/tornado.git
cd tornado
git checkout v4.3.0
python3 setup.py build
@MaxPayne86
MaxPayne86 / check_deps
Created June 6, 2022 21:22
check_deps
#!/bin/bash
obj=$1
echo "Checking dependencies for $obj"
deplist=$(objdump -p $obj 2>/dev/null | grep NEEDED | tr -d " NEEDED ")
for dep in $deplist; do
res=$(find /usr/lib -name "$dep" 2>/dev/null)
if [ "$res" == "" ]; then
res=$(find /lib -name "$dep" 2>/dev/null)
if [ "$res" == "" ]; then
# Select the i2c bus
i2c dev <bus>
i2c dev 0
# Probe the device
i2c probe <chip>
i2c probe 0x60
# Read from the device
i2c read <chip> <chip address> <length> <memory address>