Skip to content

Instantly share code, notes, and snippets.

@kinsamanka
kinsamanka / README.md
Last active July 22, 2025 01:33
Steps to install OpenStick on JZxx boards

These are the steps required to install OpenStick on JZxxx boards

The JZxxx board is a variant of the UFIxxx series, which enters EDL mode when the reset button is pressed during powerup.

To facilitate easy updates of the kernel and device tree files (or to run the mainline kernel), the latest version of lk2nd is used.


Disclaimer

Flashing Roms carries the risk of bricking your board, sometimes for good. We cannot be held responsible in the event something goes wrong with your board during the process of following this guide.

@kinsamanka
kinsamanka / swap.reg
Created December 7, 2022 02:31
Swap Left Ctrl and Windows keys under Win10
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,5b,e0,1d,00,1d,00,5b,e0,\
00,00,00,00
@kinsamanka
kinsamanka / DirMonService.c
Created December 2, 2022 01:49
Windows directory monitor service
#include <windows.h>
#include <winbase.h>
#include <tchar.h>
#include <stdio.h>
#include <stdlib.h>
#define BATCH_CMD "cmd /C c:\\output\\bin\\run.bat"
#define WATCH_DIR "C:\\output"
#define LOG_FILE "C:\\output\\tmp\\log.txt"
@kinsamanka
kinsamanka / install.bat
Last active November 10, 2022 03:21
Conda installer for Beremiz Editor
@echo off
set PWD=%~dp0
pushd "%PWD%"
set OPENPLC_DIR=%PWD%openplc
set CONDA_DIR=%PWD%conda
set CONDA_FNAME=Miniconda3-latest-Windows-x86_64.exe
set CONDA_URL=https://repo.anaconda.com/miniconda/%CONDA_FNAME%
@kinsamanka
kinsamanka / org.flatpak.openplc_editor.yml
Last active August 21, 2022 02:24
flatpak for OpenPLC Editor
app-id: org.flatpak.openplc_editor
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: openplc_editor.sh
finish-args:
- --share=network
- --filesystem=home
- --device=all
Parts List for picnc board
R1 = 330
R2 = 330
R3 = 1k
R4 = 1k
R5 = 1k
R6 = 1k
R7 = 1k
R8 = 1k
@kinsamanka
kinsamanka / gist:5235de4ff628612e0fff
Last active February 18, 2016 09:35
cmake output
mk@debian:~/build$ cmake /work/machinekit-hal/
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- python
-- serialization
-- thread
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mk/build
mk@debian:~/build$ ^Cake /work/machinekit-hal/
@kinsamanka
kinsamanka / mkros.py
Created January 18, 2016 13:52
machinekit rosbridge client
#! /usr/bin/env python
import json
from machinekit import hal
# maps msg types to HAL types
typemap = {
'float32' : hal.HAL_FLOAT,
'float64' : hal.HAL_FLOAT,
'int32' : hal.HAL_S32,
'uint32' : hal.HAL_U32,
@kinsamanka
kinsamanka / apt.md
Last active December 9, 2015 12:05
deb.mah.priv.at test
sudo sh -c \
  "apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-key 648D4DEF; \
  echo 'deb http://deb.mah.priv.at/debian wheezy main' > \
  /etc/apt/sources.list.d/mah-machinekit.list"
sudo apt-get update
@kinsamanka
kinsamanka / ERROR Output
Created December 7, 2015 12:51
reprepro problem
root@d50a1bab549e:/srv/reprepro/conf# reprepro -Vb /srv/reprepro processincoming default
No distribution found for 'machinekit_0.1.1449370874-1travis.kinsamanka.machinekit.travisssh.gitda542afe~1wheezy_amd64.changes'!
deleting '/srv/reprepro/incoming/machinekit-dev_0.1.1449370874-1travis.kinsamanka.machinekit.travisssh.gitda542afe~1wheezy_amd64.deb'...
deleting '/srv/reprepro/incoming/machinekit-posix_0.1.1449370874-1travis.kinsamanka.machinekit.travisssh.gitda542afe~1wheezy_amd64.deb'...
deleting '/srv/reprepro/incoming/machinekit-rt-preempt_0.1.1449370874-1travis.kinsamanka.machinekit.travisssh.gitda542afe~1wheezy_amd64.deb'...
deleting '/srv/reprepro/incoming/machinekit-xenomai_0.1.1449370874-1travis.kinsamanka.machinekit.travisssh.gitda542afe~1wheezy_amd64.deb'...
deleting '/srv/reprepro/incoming/machinekit_0.1.1449370874-1travis.kinsamanka.machinekit.travisssh.gitda542afe~1wheezy.debian.tar.bz2'...
deleting '/srv/reprepro/incoming/machinekit_0.1.1449370874-1travis.kinsamanka.machinekit.travisssh.gitda542