Skip to content

Instantly share code, notes, and snippets.

@ionspin
ionspin / 01README.md
Created December 19, 2021 22:54 — forked from xor-gate/01README.md
Semhosting

QEMU Cortex-m3 with semihosting

@ionspin
ionspin / How-To.md
Created December 14, 2021 09:54 — forked from vinnyt/How-To.md
How to make an up-to-date OpenWRT image for loading onto a Raspberry Pi Compute Module 4 with a DFRobot Router Carrier Board.

The background is that the default OpenWRT image for Raspberry Pi lacks drivers for the LAN port (RTL8111) on the DFRobot board. DFRobot provide an image, but that one is made from a quite old daily snapshot of OpenWRT which is not entirely stable. Also, it is better to know how to fish than be given a fish.

DFRobot's page about the router board:
https://wiki.dfrobot.com/Compute_Module_4_IoT_Router_Board_Mini_SKU_DFR0767

OpenWRT main page:
https://openwrt.org/

You are expected to have some general knowledge on Linux and OpenWRT. The instructions for flashing the resulting firmware image are presented on DFRobot's page.

@ionspin
ionspin / CLA-Crypto.txt
Created January 9, 2021 12:55
CLA-Crypto
Contributor Agreement
Individual Contributor exclusive License Agreement
(including the TRADITIONAL PATENT LICENSE OPTION)
Thank you for your interest in contributing to Ugljesa Jovanovic's Kotlin Multiplatform Crypto ("We" or "Us").
The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://cla-assistant.io.
How to use this Contributor Agreement
If You are an employee and have created the Contribution as part of your employment, You need to have Your employer approve this Agreement or sign the Entity version of this document. If You do not own the Copyright in the entire work of authorship, any other author of the Contribution should also sign this – in any event, please contact Us at ugljesa.jovanovic@ionspin.com
@ionspin
ionspin / CLA-Libsodium.txt
Last active January 9, 2021 12:53
CLA-Libsodium.txt
Contributor Agreement
Individual Contributor exclusive License Agreement
(including the TRADITIONAL PATENT LICENSE OPTION)
Thank you for your interest in contributing to Ugljesa Jovanovic's Kotlin Multiplatform Libsodium ("We" or "Us").
The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://cla-assistant.io.
How to use this Contributor Agreement
If You are an employee and have created the Contribution as part of your employment, You need to have Your employer approve this Agreement or sign the Entity version of this document. If You do not own the Copyright in the entire work of authorship, any other author of the Contribution should also sign this – in any event, please contact Us at ugljesa.jovanovic@ionspin.com

Keybase proof

I hereby claim:

  • I am ionspin on github.
  • I am ionspin (https://keybase.io/ionspin) on keybase.
  • I have a public key ASDDBzuM8o47cYTTZCG-5TrUOfQlzA7sk920HuMw0TOxCQo

To claim this, I am signing this object:

@ionspin
ionspin / st_nucleo_446re.cfg
Created August 18, 2019 20:38
ST Nucleo 446RE OpenOCD configuration
#This is an ST NUCLEO F446RE board with a single STM32F446RE MCU.
#https://www.st.com/en/evaluation-tools/nucleo-f446re.html
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32f4x_stlink.cfg]
# use hardware reset, connect under reset
@ionspin
ionspin / CLA.txt
Last active March 18, 2019 23:14
Kotlin Multiplatform BigNum CLA
Contributor Agreement
Individual Contributor exclusive License Agreement
(including the TRADITIONAL PATENT LICENSE OPTION)
Thank you for your interest in contributing to Ugljesa Jovanovic's Kotlin Multiplatform BigNum ("We" or "Us").
The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://cla-assistant.io.
How to use this Contributor Agreement
If You are an employee and have created the Contribution as part of your employment, You need to have Your employer approve this Agreement or sign the Entity version of this document. If You do not own the Copyright in the entire work of authorship, any other author of the Contribution should also sign this – in any event, please contact Us at ugljesa.jovanovic@ionspin.com
@ionspin
ionspin / Gan-run-1
Last active May 1, 2018 11:16
FrozenLayer vs Sgd 0.0
Sample after run with Sgd 0.0
Gan: Generator layer 0 [[ 0.0656, 0.1325, -0.0652 ... 0.0014 0.0011, 0.0017]]
Gan: Generator with discriminator layer 0 [[ 0.0650, 0.1302, -0.0667 ... 0.0010 0.0011, 0.0034]]
Gan: Generator layer 1 [[ 0.9972, 0.9969, 1.0016 ... 0.2509 0.2590, 0.2426]]
Gan: Generator with discriminator layer 1 [[ 0.9941, 0.9932, 1.0053 ... 0.2432 0.2539, 0.2394]]
Gan: Generator layer 2 [[ 0.0414, 0.0245, 0.0477 ... 0.0015 0.0006, 0.0021]]
Gan: Generator with discriminator layer 2 [[ 0.0418, 0.0247, 0.0485 ... 0.0017 0.0025, 0.0014]]
Gan: Generator layer 3 [[ 0.9973, 0.9993, 0.9991 ... 0.3907 0.2894, 0.4206]]
Gan: Generator with discriminator layer 3 [[ 0.9971, 0.9967, 1.0042 ... 0.4146 0.2828, 0.4333]]
@ionspin
ionspin / build.gradle
Created February 23, 2018 11:18
Successful build with findbugs excluded
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 26
defaultConfig {
applicationId "test.test.test"