Skip to content

Instantly share code, notes, and snippets.


Herwig Hochleitner bendlas

  • Austria
View GitHub Profile
View dev.clj
(ns dev
cemerick.austin cemerick.austin.repls webnf.server
[net.cgrand.enlive-html :refer [deftemplate content set-attr]]
[net.cgrand.moustache :refer [app]]
[ring.util.response :refer [not-found]]
[ring.middleware.file :refer [wrap-file]]))
(def repl-env)
bendlas / journalctl -b
Created Apr 21, 2015
nixos qemu gnome316 errors
View journalctl -b
Apr 21 04:45:06 nitox gnome-session[891]: Gjs-Message: JS LOG: GDBus.Error:org.freedesktop.DBus.Error.Failed: Error calling StartServiceByName for org.freedesktop.DBus: GDBus.Error:org.freedesktop.DBus.Error.NoMemory: Error return with empty body:
Apr 21 04:45:06 nitox gnome-session[891]: (.gnome-shell-wrapped:946): Gjs-WARNING **: JS ERROR: could not get remote objects for service org.gnome.SettingsDaemon.Smartcard path /org/gnome/SettingsDaemon/Smartcard: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon.Smartcard was not provided by any .service files
Apr 21 04:45:06 nitox gnome-session[891]: _proxyInvoker/asyncCallback@resource:///org/gnome/gjs/modules/overrides/Gio.js:83
Apr 21 04:45:06 nitox gnome-session[891]: (gnome-settings-daemon:910): color-plugin-WARNING **: There is no colord server available
Apr 21 04:45:07 nitox org.gnome.Shell.CalendarServer[895]: (.gnome-shell-calendar-server-wrapped:963): libecal-CRITICAL **: e_cal_client_set_default_
View build log
these derivations will be built:
building path(s) ‘/nix/store/gi6x0ac3x5v4vac919d2gb8d4093jrs5-wineWow-1.7.42-staging’
unpacking source archive /nix/store/wqf0ca54qgw8b5pagm3cqja1x8iiha2h-wine-1.7.42.tar.bz2
source root is wine-1.7.42
patching script interpreter paths in tools
find: `tools': No such file or directory
patching script interpreter paths in interpreter directive changed from "/usr/bin/env bash" to "/nix/store/xlxjcjq3bnbwnzq82irlzwxhmx6fvc2w-bash-4.3-p33/bin/bash "
Applying /tmp/nix-build-wineWow-1.7.42-staging.drv-0/patches/Compiler_Warnings/0001-Appease-the-blessed-version-of-gcc-4.5-when-Werror-i.patch
bendlas / build-output
Created May 26, 2015
`debootstrap jessie ./jessie-chroot` failure on nixos
View build-output
I: Keyring file not available at /usr/share/keyrings/debian-archive-keyring.gpg; switching to https mirror
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: acl adduser dmsetup insserv libaudit-common libaudit1 libbz2-1.0 libcap2 libcap2-bin libcryptsetup4 libdb5.3 libdebconfclient0 libdevmapper1.02.1 libgcrypt20 libgpg-error0 libkmod2 libncursesw5 libprocps3 libsemanage-common libsemanage1 libslang2 libsystemd0 libudev1 libustr-1.0-1 procps systemd systemd-sysv udev
I: Found additional base dependencies: libcurl3-gnutls libdns-export100 libffi6 libgmp10 libgnutls-deb0-28 libgnutls-openssl27 libgssapi-krb5-2 libhogweed2 libicu52 libidn11 libirs-export91 libisc-export95 libisccfg-export90 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libmnl0 libnetfilter-acct1 libnettle4 libnfnetlink0 libp11-kit0 li
bendlas / antimony.nix
Created Jun 1, 2015
antimony nix packaging
View antimony.nix
{ stdenv, fetchgit, git, boost, python3, mesa, qt5, ncurses }:
boost_py3 = boost.override { python = python3; };
in stdenv.mkDerivation {
name = "antimony";
src = fetchgit {
url = "";
rev = "16629e0caefa595c532ae95f1822493e7d2d8ba3";
View timer.clj
(ns timer
(:import [java.util Timer TimerTask]))
(def the-timer (Timer.))
(defn timer
"Schedules a callback for delayed execution.
Returns a function, that accepts a parameter:
:bump to restart the timer, returning true only if timer was active, hence was extended by that call
:cancel to abort the timer, returning true only if timer was active, hence was canceled b.t.c."
View Fix for checked esceptions
class ExceptionAdapter extends RuntimeException {
private final String stackTrace;
public Exception originalException;
public ExceptionAdapter(Exception e) {
originalException = e;
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
stackTrace = sw.toString();
View Swank_clojure_setup_for_hardcore_Emacs_users.el
;; First fetch CVS version of slime, git version of clojure, swank-clojure, clojure-contrib and clojure-mode
;; Create ~/bin/clojure script which starts clojure repl and adds clojure-contrib src dir and swank-clojure src dir to classpath. I used clj-env helper from clojure-contrib
(pushnew '("\.clj$" . clojure-mode) auto-mode-alist)
(require 'clojure-mode)
;;;; Slime configuration stuff
(setf slime-lisp-implementations
'((ecl("~/bin/ecl" "--heap-size" "1024000000") :coding-system utf-8-unix)
bendlas / gist:726251
Created Dec 2, 2010
test case for clojureql
View gist:726251
(use 'clojureql.core)
(def users (project (table server/*db* :user_view)
:lname :fname]))
(def groups (aggregate
(join (table server/*db* :groups)
(table :user_groups)
bendlas / gist:728427
Created Dec 4, 2010
Case for wrapped exception issue
View gist:728427
(defn failing []
(throw (IndexOutOfBoundsException. "Failed")))
(defn wrappy []
(catch Throwable e
(throw (IllegalArgumentException. "Wrapped Fail" e)))))