Skip to content

Instantly share code, notes, and snippets.


Kimmo Lindholm kimmoli

View GitHub Profile
View gist:90241a64f5b9b369224731251062f1f5
Welcome to the 64180/Z818X bank setup utility.
Your logical 64K memory map is divided in 3 parts:
1. A root code area (Common area 0) which will hold
interrupts, non-banked functions and assembly support
routines. This block starts at address 0x0000
2. A bank area which will hold your banked C code.
3. A fixed data area (Common area 1) which starts above
the bank are and ends at 0xFFFF. This is where you
View marshal.cs
/* C++ */
typedef struct {
unsigned long address;
unsigned long length;
unsigned char * data;
unsigned long SetElement(ELEMENT Element);
/* C# */
View Kt.txt
| SailfishOS (Iijoki) (armv7hl)
[nemo@Sailfish ~]$ harbour-kitchentimer
[D] unknown:0 - Using Wayland-EGL
[W] unknown:0 - Defaulting to webview scaling factor
of 1.0
[W] unknown:89 - file:///usr/share/harbour-kitchentim
er/qml/harbour-kitchentimer.qml:89:18: Type TimerPage
initialPage: TimerPage {

Setup your SDK


export MER_ROOT="$HOME/mer"
export ANDROID_ROOT="$MER_ROOT/android/droid"
export VENDOR="OnePlus"
export DEVICE="onyx"
export PORT_ARCH="armv7hl"
View Moi.qml
text: "moi"
anchors.centerIn: parent
onClicked: t.start()
kimmoli /
Created Nov 1, 2018 — forked from stefanozanella/
Configuring SSL certificate / private key pair in Gerrit to talk with LDAPS backend

Making Gerrit and LDAP speak in tongues together via SSL

If you're an experienced Java developer or container/AS user, you'll probably want to just skip this, since it involves just some Java tools and standards techniques.
If you, however, like me, have only scratched the surface of the ceremony of the Java world (no troll intended), then you can probably find this useful, since I couldn't find proper documentation about this but had to assembly it together from various sources.

I started to configure a Gerrit instance on our company's server to start putting a bit of order in the mess that is our structure by now. Since the instance is private, I didn't want to enable OpenID authentication, nor I wanted to set it in development mode (aka everyone's invited). Having to choose between offloading authentication to an HTTP proxy and setting up an LDAP backend, I opted for the latter. Also, to complicate things further, I have not only enabled SSL support on the LDAP server, but I required _strict client c

View steps.qml
import QtQuick 2.0
import Sailfish.Silica 1.0
import org.nemomobile.dbus 2.0
property var stepsNow: 0
View blinky.qml
Page {
Rectangle {
id: rect
anchors.fill: parent
color: "white"
opacity: 1.0
Behavior on opacity {
NumberAnimation {
duration: 450
easing.type: Easing.InOutQuad
View Keystest.qml
import QtQuick 2.0
import Sailfish.Media 1.0
MediaKey { enabled: true; key: Qt.Key_MediaTogglePlayPause; onReleased: console.log("playPause") }
MediaKey { enabled: true; key: Qt.Key_MediaPlay; onReleased: console.log("play") }
MediaKey { enabled: true; key: Qt.Key_MediaPause; onReleased: console.log("pause") }