Skip to content

Instantly share code, notes, and snippets.

@wolkenschieber
wolkenschieber / resize.sh
Last active May 21, 2018 19:35
Fit pictures to digital photoframe
#! /usr/bin/env bash
# Fit pictures to digital photoframe
#Samsung SPF-107H
#================
#
#Resolution: 1024x600
#
#Fit height:
@wolkenschieber
wolkenschieber / .SRCINFO
Last active December 28, 2017 08:01
PKGBUILD for antergos-kde-setup-1.1-4
# Generated by mksrcinfo v8
# Sat Jul 29 17:45:58 UTC 2017
pkgbase = antergos-kde-setup
pkgdesc = Setup configuration for Antergos KDE
pkgver = 0.1.9
pkgrel = 1
url = http://www.antergos.com
install = antergos-kde-setup.install
arch = any
license = GPL3
@wolkenschieber
wolkenschieber / build.output
Created October 24, 2017 09:49
Build output
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jpeek 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ jpeek ---
[INFO] Deleting ~/jpeek/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @ jpeek ---
@wolkenschieber
wolkenschieber / p2.options
Last active October 13, 2017 06:22
p2 core debug and trace options + p2 engine
#Turn on debugging for p2
org.eclipse.equinox.p2.core/debug=true
#Detailed debugging information while parsing p2 data files
org.eclipse.equinox.p2.core/core/parseproblems=true
#Detailed debugging information when a repository is removed from a repository manager
org.eclipse.equinox.p2.core/core/removeRepo=true
#Detailed debugging information while parsing site.xml and feature.xml files in the generator
#!/usr/bin/env bash
set -euo pipefail
##########
# Config #
##########
readonly GIT_BRANCH='android-8.0.0_r12'
readonly API_LEVEL='26'
@wolkenschieber
wolkenschieber / letsencrypt-to-keystore.sh
Created June 7, 2017 12:50
Bundle letsencrypt certificate with full chain in java keystore
#!/bin/bash
set -o errexit -o nounset
DOMAIN="example.com"
PASSWORD="changeit"
TEMP_PKCS12="temp.p12"
KEYSTORE="keystore.jks"
openssl pkcs12 -export -in "/etc/letsencrypt/live/${DOMAIN}/fullchain.pem" -inkey "/etc/letsencrypt/live/${DOMAIN}/privkey.pem" -out "${TEMP_PKCS12}" -password pass:"${PASSWORD}"
@wolkenschieber
wolkenschieber / CreateLotteries.java
Last active October 28, 2016 18:09
Requery transaction blocking?
public class CreateLotteries
{
private static final String LOG_TAG = "CreateLotteries";
private final SingleEntityStore<Persistable> data;
public CreateLotteries(SingleEntityStore<Persistable> data)
{
this.data = data;
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "de.comp.pingme"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
@wolkenschieber
wolkenschieber / sqlite3-to-mysql.py
Last active August 24, 2016 09:58
Convert sqlite3 dump to mysql dump
#! /usr/bin/env python
import re, fileinput, tempfile
from optparse import OptionParser
IGNOREDPREFIXES = [
'PRAGMA',
'BEGIN TRANSACTION;',
'COMMIT;',
'DELETE FROM sqlite_sequence;',
@wolkenschieber
wolkenschieber / qownnotes-converttomediawiki.qml
Created August 22, 2016 06:18
QML-script to convert markdown from QOwnNotes to MediaWiki
import QtQml 2.0
import com.qownnotes.noteapi 1.0
QtObject {
function init() {
script.registerCustomAction("convertToMediaWiki", "Convert note to MediaWiki", "Convert to MediaWiki" );
}
function customActionInvoked(identifier) {