Skip to content

Instantly share code, notes, and snippets.

➜ ~ deluged -d -P /home/eddie/.config/deluge/deluge.pid
/usr/lib/python2.7/site-packages/twisted/internet/_sslverify.py:184: UserWarning: You do not have the service_identity module installed. Please install it from <https://pypi.python.org/pypi/service_identity>. Without the service_identity module and a recent enough pyOpenSSL tosupport it, Twisted can perform only rudimentary TLS client hostnameverification. Many valid certificate/hostname mappings may be rejected.
verifyHostname, VerificationError = _selectVerifyImplementation()
[ERROR ] 02:01:00 component:118 [Failure instance: Traceback: <type 'exceptions.KeyError'>: -1
/usr/lib/python2.7/site-packages/deluge/main.py:230:start_daemon
/usr/lib/python2.7/site-packages/deluge/core/daemon.py:161:__init__
/usr/lib/python2.7/site-packages/deluge/component.py:296:start
/usr/lib/python2.7/site-packages/deluge/component.py:124:_component_start
--- <exception caught here> ---
/usr/lib/python2.7/site-packages/twisted/internet/defer.py:139:maybeDeferred
@AcouBass
AcouBass / default.nix
Last active January 17, 2018 13:33
runescape .nix - no longer needs curl-compat!
{ pkgs ? import <nixpkgs> {} }:
let
env = pkgs.buildEnv {
name = "runscape-env";
paths = with pkgs; [
/* required by launcher executable */
xorg.libSM xorg.libXxf86vm libpng12 xorg.libX11 expat.out
webkitgtk glib.out pango.out cairo.out gdk_pixbuf gtk2.out
stdenv.cc.cc.lib glib_networking.out curl.out
[eddie@nixos:~/nixpkgs]$ ./result/bin/runescape-launcher
/nix/store/rwzbifh7lm2723rlab2nzdw6xscxqzra-runescape-2.2.2/bin/.runescape-launcher-wrapped: line 13: /nix/store/rwzbifh7lm2723rlab2nzdw6xscxqzra-runescape-2.2.2/share/games/runescape-launcher/runescape: No such file or directory
[nix-shell:~]$ file /nix/store/rwzbifh7lm2723rlab2nzdw6xscxqzra-runescape-2.2.2/share/games/runescape-launcher/runescape
/nix/store/rwzbifh7lm2723rlab2nzdw6xscxqzra-runescape-2.2.2/share/games/runescape-launcher/runescape: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/zc3azgj5rlbjff8vyrl2jx1r5r0nlsv5-glibc-2.23-dev/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=1d0bb03ac9ba2a3402a9fd3ee6f5971e298f4966, stripped
@AcouBass
AcouBass / compat.nix
Last active September 10, 2016 00:54
curl compat - no versioned symbols, for runescape nix
{ stdenv, fetchurl, gnutls, pkgconfig, perl
, http2Support ? false, nghttp2
, idnSupport ? false, libidn ? null
, ldapSupport ? false, openldap ? null
, zlibSupport ? false, zlib ? null
, sslSupport ? false, openssl ? null
, scpSupport ? false, libssh2 ? null
, gssSupport ? false, gss ? null
, c-aresSupport ? false, c-ares ? null
}:
@AcouBass
AcouBass / build.sh
Last active August 20, 2016 18:02
files for packaging crane gps watch in NixOS
source $stdenv/setup
PATH=$PATH
unpackFile $src
cd crane_gps_watch
./configure --prefix=$out
make
make install
@AcouBass
AcouBass / configuration.nix
Last active December 17, 2021 16:33
NixOS configuration for my laptop
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
{
imports =
{ stdenv, fetchFromGitHub, libxml2 }:
stdenv.mkDerivation rec {
name = "crane-gps-watch";
src = fetchFromGitHub {
owner = "mru00";
repo = "crane_gps_watch";
rev = "221f99dc2925a07658f7b6e01789ced1a18cc08c";
sha256 = "0ji50yg85a114pdvw8k5jgfxq312frlxq67bazfaws9mkhnkpi9v";
};
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce.
(use-modules (gnu) (gnu system nss) (gnu packages))
(use-service-modules desktop)
(use-package-modules mail gnuzilla gnustep certs)
(operating-system
(host-name "GuixLaptop")
(timezone "Europe/London")
@AcouBass
AcouBass / python-packages.nix testing
Last active May 20, 2017 14:40
attempt at packaging sc-controller
sc-controller = buildPythonPackage {
name = "sc-controller";
version = "0.3.10";
src = pkgs.fetchFromGitHub {
owner = "kozec";
repo = "sc-controller";
rev = "v0.3.10";
sha256 = "0i4qg4ljnd1l1vq3n2i0q141qbfh733k0iyqcnpagh4w1glhhaa6";
};
@AcouBass
AcouBass / default.nix
Last active November 25, 2017 16:55
OpenRCT2 nix
{ stdenv, fetchFromGitHub, mesa, libX11, SDL2, SDL2_ttf, curl, cmake, jansson, speexdsp, openssl, libpng12, fontconfig, libzip, pkgconfig, glew }:
stdenv.mkDerivation rec {
version = "0.1.1";
name = "OpenRCT2-${version}";
src = fetchFromGitHub {
owner = "OpenRCT2";
repo = "OpenRCT2";
rev = "46012651c531e9d5b5202b9521ced8126e30ce8f";
sha256 = "1xxwqx2gzvsdrsy76rz3sys9m4pyn9q25nbnkba3cw1z4l2b73lg";