This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
mkdir Packages | |
cd Packages/ | |
git clone https://github.com/hzeller/rpi-rgb-led-matrix | |
cd rpi-rgb-led-matrix/examples-api-use | |
make | |
sudo ./demo -D 9 --led-chain=3 --led-parallel=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
html { | |
height: 100%; | |
box-sizing: border-box; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y libncurses5-dev libgtk2.0-dev libatk1.0-dev \ | |
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ | |
python3-dev ruby-dev lua5.1 liblua5.1-dev libperl-dev | |
sudo apt-get remove -y vim vim-tiny vim-common vim-gui-common vim-nox | |
sudo apt-get autoremove -y | |
mkdir -p ~/src/github.com | |
git clone https://github.com/vim/vim.git ~/src/github.com/vim | |
cd ~/src/github.com/vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install git make cmake build-essential python python3 | |
git clone https://github.com/openssl/openssl.git | |
cd openssl | |
git checkout OpenSSL_1_1_1-stable | |
./config | |
make | |
make install | |
wget https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.gz | |
tar -xf boost*.gz | |
./bootstrap.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Convert dwg to projected geojson | |
ogr2ogr -f GeoJSON -s_srs epsg:2154 -t_srs epsg:4326 building.json building.dwg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sshfs $host:$remotepath $folder -o allow_other -o ro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from debian | |
run apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
git \ | |
g++-i686-linux-gnu \ | |
gcc-i686-linux-gnu \ | |
qemu-user | |
run git clone https://github.com/strangesast/fwlib.git /usr/src/fwlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
import os | |
libpath = ( | |
os.path.join(os.getcwd(), "Fwlib64.dll") | |
) | |
focas = ctypes.cdll.LoadLibrary(libpath) | |
#focas.cnc_startupprocess.restype = ctypes.c_short | |
#focas.cnc_exitprocess.restype = ctypes.c_short | |
focas.cnc_allclibhndl3.restype = ctypes.c_short |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "../../fwlib32.h" | |
#define MACHINE_HOST "127.0.0.1" | |
#define MACHINE_PORT 8193 | |
typedef struct odbdy2_t { |