Skip to content

Instantly share code, notes, and snippets.

View bendlas's full-sized avatar

Herwig Hochleitner bendlas

  • Austria
View GitHub Profile
@bendlas
bendlas / journalctl -b
Created April 21, 2015 02:59
nixos qemu gnome316 errors
...
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_
@bendlas
bendlas / bendlas.clj
Created May 9, 2015 20:06
An experiment with collection updates
(ns user.bendlas
(:require [criterium.core :as crit]))
;; # Overview
;; ## Two new core operations
;; ### pretial -- partial for the first param
;; This is the main proposition: introduce an operation that lets one
these derivations will be built:
/nix/store/qg62fjwj9mqdiv1i8n7w7myrjmlbz1p1-wineWow-1.7.42-staging.drv
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 gitapply.sh
gitapply.sh: 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
bendlas / build-output
Created May 26, 2015 06:35
`debootstrap jessie ./jessie-chroot` failure on nixos
I: Keyring file not available at /usr/share/keyrings/debian-archive-keyring.gpg; switching to https mirror https://mirrors.kernel.org/debian
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
bendlas / antimony.nix
Created June 1, 2015 22:51
antimony nix packaging
{ stdenv, fetchgit, git, boost, python3, mesa, qt5, ncurses }:
let
boost_py3 = boost.override { python = python3; };
in stdenv.mkDerivation {
name = "antimony";
src = fetchgit {
url = "https://github.com/mkeeter/antimony";
rev = "16629e0caefa595c532ae95f1822493e7d2d8ba3";
@bendlas
bendlas / on_data_readers.md
Last active October 1, 2015 05:39
On source code configuration in the clojure family of languages

statement of issue

The current requirement for defining a data_readers.clj at the source-path root makes creating libraries, that define reader-tags, cumbersome:

  • Users need to paste the library reader-tags into their data_readers.clj
  • Maintainers won't want to use reader tags in the library's own source, because users might forget to paste them
  • Shipping a data_readers.clj (like datomic does) bears the risk of libraries randomly clobbering each other (see lein-collisions)

Also other interactions arount reader tags could be improved:

Verifying that +bendlas is my blockchain ID. https://onename.com/bendlas
@bendlas
bendlas / user.clj
Last active March 10, 2016 14:47
block scoping for generating ids in edn
(require '[clojure.edn :as edn] '[clojure.zip :as zip] '[clojure.pprint :as pp])
(defrecord Kwid [kw])
(defrecord Dbid [part id])
(defn empty [o] ;; overwrite clojure's builtin, see http://dev.clojure.org/jira/browse/CLJ-1893
(if (instance? clojure.lang.MapEntry o)
[] (clojure.core/empty o)))
(def coll-zipper (partial zip/zipper coll? seq #(into (empty %1) %2)))
clang-linux.link ../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/clasp
"clang++" -o "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/clasp" -Wl,--start-group "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/main.o" "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/gc_interface.o" "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/gcFunctions.o" "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/gctoolsPackage.o" "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/globals.o" "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/gcStack.o" "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/telemetry.o" "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/gcalloc.o" "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/gcweak.o" "../../src/main/bin/clang-linux-linux/release/gc-boehm/program-clasp/memoryManagemen
==> Creating nixpkgs repo in /home/herwig/.nox/nixpkgs
==> We're in a git repo, trying to fetch it
Traceback (most recent call last):
File "/nix/store/sqrhxqg685wvxz81ahc5si05crqj5lrm-nox-0.0.2/bin/.nox-review-wrapped", line
12, in <module>
sys.exit(cli())
File "/nix/store/dwmlgbb16ggdmshpc4d3l4mbh23scf6c-python3.4-click-6.3/lib/python3.4/site-p
ackages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/nix/store/dwmlgbb16ggdmshpc4d3l4mbh23scf6c-python3.4-click-6.3/lib/python3.4/site-p