Skip to content

Instantly share code, notes, and snippets.

@steinarb
steinarb / elasticsearch.yml
Last active Jan 1, 2016
/etc/elasticsearch/elasticsearch.yml from deb package with EC2 stuff added, used in Ubuntu 12.04 EC2 instance
View elasticsearch.yml
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
@steinarb
steinarb / gist:7c42b8475ce191c851c0
Created Dec 28, 2015
eclipse mars configuration
View gist:7c42b8475ce191c851c0
*** Date: mandag 28. desember 2015 14.59.29 sentraleuropeisk normaltid
*** Platform Details:
*** System properties:
applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi
awt.toolkit=sun.awt.windows.WToolkit
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=4.5.1.M20150904-0015
eclipse.commands=-os
View raspberry pi router with sd card issues dmesg
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.9-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #884 SMP Fri May 6 17:28:59 BST 2016
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
[ 0.000000] cma: Reserved 8 MiB at 0x3a800000
[ 0.000000] Memory policy: Data cache writealloc
View raspberry pi sd card FAT Partition fsck result
root@lorenzo:~# dosfsck -w -r -l -a -v -t /dev/sdd1
fsck.fat 3.0.27 (2014-11-12)
Checking we can access the last sector of the filesystem
0x25: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
Automatically removing dirty bit.
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
8192 bytes per cluster
@steinarb
steinarb / 0001-Gnus-Emacs-Cloud-fixes-and-refactoring.patch
Last active Jun 21, 2016
gnus-cloud changes made to gnus in the emacs repository
View 0001-Gnus-Emacs-Cloud-fixes-and-refactoring.patch
From 743e6b6ceee7eee1fbeb01e4ecc4e39e636c20d8 Mon Sep 17 00:00:00 2001
From: Ted Zlatanov <tzz@lifelogs.com>
Date: Wed, 15 Jun 2016 14:36:24 -0400
Subject: [PATCH] Gnus/Emacs Cloud fixes and refactoring
* add storage method and minor cleanups
* whitespace cleanups
* get upload/download and EPG working
---
lisp/gnus/gnus-cloud.el | 374 ++++++++++++--------
@steinarb
steinarb / 0001-Gnus-Emacs-Cloud-fixes-and-refactoring-modified-to-gnus-repo.patch
Created Jun 21, 2016
gnus-cloud changes made to gnus in the emacs repository translated to the old gnus git repository layout
View 0001-Gnus-Emacs-Cloud-fixes-and-refactoring-modified-to-gnus-repo.patch
From 743e6b6ceee7eee1fbeb01e4ecc4e39e636c20d8 Mon Sep 17 00:00:00 2001
From: Ted Zlatanov <tzz@lifelogs.com>
Date: Wed, 15 Jun 2016 14:36:24 -0400
Subject: [PATCH] Gnus/Emacs Cloud fixes and refactoring
* add storage method and minor cleanups
* whitespace cleanups
* get upload/download and EPG working
---
lisp/gnus-cloud.el | 374 ++++++++++++--------
@steinarb
steinarb / c:\ProgramData\Squeezebox\Logs\server.log
Created Dec 26, 2016
The end of the server.log file of a failing Logitech Media Server 7.7.5 installation
View c:\ProgramData\Squeezebox\Logs\server.log
[16-12-26 08:59:50.0626] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::imageTitlesQuery]: [Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::db selectrow_array failed: near ")": syntax error [for Statement "
SELECT COUNT(*) FROM ( SELECT images.hash AS 'images.hash', images.title AS 'images.title', images.titlesearch AS 'images.titlesearch', images.titlesort AS 'images.titlesort' FROM images GROUP BY images.hash ORDER BY images.titlesort COLLATE ) AS t1
"] at /<C:\PROGRA~2\SQUEEZ~1\server\SqueezeSvr.exe>Slim/Schema/Storage.pm line 126
]
[16-12-26 09:00:00.0780] Slim::Schema::Storage::throw_exception (122) Error: DBI Exception: DBD::SQLite::db selectrow_array failed: near ")": syntax error [for Statement "
SELECT COUNT(*) FROM ( SELECT videos.titlesearch AS 'videos.titlesearch', videos.hash AS 'videos.hash', videos.title AS 'videos.title', videos.titlesort AS 'videos.titlesort' FROM videos GROUP BY videos.hash ORDER BY videos.titlesort COL
@steinarb
steinarb / gist:ee23224f35c0e9c0d3d46a305cc3a4f1
Created Jan 20, 2017
mvn clean install output for maven-bundle-plugin version 2.5.3
View gist:ee23224f35c0e9c0d3d46a305cc3a4f1
-*- mode: compilation; default-directory: "~/workspaces/ws06/ukelonn/ukelonn.bundle.test.db/" -*-
Compilation started at Fri Jan 20 21:52:06
mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Ukelonn webapp derby test database OSGi bundle 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
@steinarb
steinarb / gist:95c5ed52a3cef3f2a3ac2e16e1e3dbc4
Created Jan 20, 2017
mvn clean install output for maven-bundle-plugin version 2.5.4
View gist:95c5ed52a3cef3f2a3ac2e16e1e3dbc4
-*- mode: compilation; default-directory: "~/workspaces/ws06/ukelonn/ukelonn.bundle.test.db/" -*-
Compilation started at Fri Jan 20 21:55:51
mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Ukelonn webapp derby test database OSGi bundle 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
@steinarb
steinarb / FildeleIntegrationTest.java
Created Oct 7, 2017
Pax-exam test that fails because it can't get the BundleContext
View FildeleIntegrationTest.java
package no.priv.bang.fildele.tests;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import static org.ops4j.pax.exam.CoreOptions.*;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.*;
import java.io.File;
import java.io.IOException;
import java.net.ServerSocket;