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 {
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 Moi.qml
text: "moi"
anchors.centerIn: parent
onClicked: t.start()
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") }
View obsmonitorrefresh.user.js
// ==UserScript==
// @name reload monitor
// @namespace rradb
// @include*
// @version 1
// @grant none
// ==/UserScript==
setTimeout(function(){ location.reload(); }, 10*1000);
View gist:3fee3a3f2b080530aad3349d481cd203
D/audio_hw_primary( 1205): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=1;
D/audio_hw_primary( 1205): select_devices: out_snd_device(6: voice-handset) in_snd_device(55: voice-dmic-ef)
D/hardware_info( 1205): hw_info_append_hw_type : device_name = voice-speaker
D/hardware_info( 1205): hw_info_append_hw_type : device_name = voice-speaker-dmic-ef
W/msm8974_platform( 1205): Codec backend bitwidth 16, samplerate 48000
W/msm8974_platform( 1205): platform_check_codec_backend_cfg:Use default bw and sr for voice/voip calls
D/hardware_info( 1205): hw_info_append_hw_type : device_name = voice-handset