Skip to content

Instantly share code, notes, and snippets.

name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
lxc 20191218165750.534 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type u nsid 0 hostid 100000 range 999
lxc 20191218165750.534 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type g nsid 0 hostid 100000 range 999
lxc 20191218165750.534 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type u nsid 1000 hostid 1000 range 1
lxc 20191218165750.534 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type g nsid 1000 hostid 998 range 1
lxc 20191218165750.534 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type u nsid 1001 hostid 101001 range 98999
lxc 20191218165750.534 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type g nsid 1001 hostid 101001 range 99001
lxc 20191218165750.537 TRACE start - start.c:lxc_init_handler:748 - Created anonymous pair {12,13} of unix sockets
lxc 20191218165750.537 TRACE commands - commands.c:lxc_cmd_init:1248 - Creating abstract unix socket "/tmp/anbox-data/cont
@pkillnine
pkillnine / anbox-container.log
Created December 17, 2019 23:31
Anbox session-manager fails to run because the lxc container fails to start
lxc 20191217232527.470 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type u nsid 0 hostid 100000 range 999
lxc 20191217232527.470 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type g nsid 0 hostid 100000 range 999
lxc 20191217232527.470 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type u nsid 1000 hostid 1000 range 1
lxc 20191217232527.470 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type g nsid 1000 hostid 998 range 1
lxc 20191217232527.470 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type u nsid 1001 hostid 101001 range 98999
lxc 20191217232527.470 INFO confile - confile.c:set_config_idmaps:1673 - Read uid map: type g nsid 1001 hostid 101001 range 99001
lxc 20191217232527.471 TRACE start - start.c:lxc_init_handler:748 - Created anonymous pair {12,13} of unix sockets
lxc 20191217232527.471 TRACE commands - commands.c:lxc_cmd_init:1248 - Creating abstract unix socket "/tmp/anbox-data/cont
@pkillnine
pkillnine / config.scm
Created April 2, 2018 14:15 — forked from TeMPOraL/config.scm
GuixSD with custom kernel
(define-module (my packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages linux)
#:use-module (guix build-system trivial)
#:use-module (gnu)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix packages))
(define (linux-nonfree-urls version)
@pkillnine
pkillnine / get-latest-maemo-leste-image
Created March 2, 2018 13:28
A small script to automatically download the latest Maemo-Leste image from maedevu.maemo.org/images/n900
#!/bin/sh
DOWNLOAD_DIR="$HOME/Downloads"
if test -d $DOWNLOAD_DIR ; then
echo "Using specified download directory: $DOWNLOAD_DIR"
else
echo "Specified download directory doesn't exist: $DOWNLOAD_DIR"
exit
fi
@pkillnine
pkillnine / gist:56dcb44f7c3a5c60c4cdf52854712703
Created February 17, 2018 19:51
guix package-description generator (WIP)
#!/usr/bin/env python3
#https://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-import
#https://docs.python.org/3/library/argparse.html#argparse.Action
import json, argparse, re, subprocess, tempfile, os
CACHEFILE = os.path.expanduser("~/.cache/guix-module-creator-file-hashes.log")
def add_hash(metadata: dict):
"""Read from cache file which stores url hashes as '<url> <hash>'."""
@pkillnine
pkillnine / read
Created November 13, 2017 21:53
qutebrowser userscript: 'read' (emulates vim's 'read' command)
#!/usr/bin/env python3
#
# This script is a userscript for qutebrowser. Written by Pkill9. Contact me on IRC at #qutebrowser on Freenode for any questions.
#
# Emulates vim's 'read' command
#
# WARNING: the command outputs are stored in qutebrowser's
# debug log reachable via the url qute://log
import os
@pkillnine
pkillnine / url-filter
Last active December 25, 2022 19:13
qutebrowser url rewriter userscript
#!/usr/bin/env python
#more ideas https://addons.mozilla.org/en-US/firefox/addon/redirectbypasser/ https://github.com/mozlima/redirectbypasser https://github.com/D4Vinci/AdflyUrlGrabber/blob/master/AdflyUrlGrabber.py
#todo: check the new url that is found.
from sys import argv
from os import environ
domains = {
'l.facebook.com' : 'https:\/\/l\.facebook\.com\/l\.php\?u\=(?P<actual_url>.+)\&h\=',
@pkillnine
pkillnine / run-in-shell
Last active November 11, 2017 18:37
qutebrowser userscript: "run-in-shell"
#!/bin/sh
# qutebrowser userscript for executing shell commands
SHELL=sh
CMD=${@:2}
case $1 in
(--fish) SHELL=fish ;;
(--bash) SHELL=bash ;;
(*) CMD=$@ ;;
@pkillnine
pkillnine / config.py
Last active October 26, 2017 09:58
qutebrowser startpage config v0.1 - requires `sqlite3` in your shell's path.
N_OF_URLS = 10
WITHIN_LAST_DAYS = 31
HISTORYFILE = '{}/history.sqlite'.format(config.datadir)
STARTPAGE_DIR = str(config.datadir)
STARTPAGE_TITLE = "There's no place like ~"
TEMPLATE_FILE = "template.html" # Note: this path is relative to the path specified in STARTPAGE_DIR
def get_top_urls(n=N_OF_URLS, within_last_days=WITHIN_LAST_DAYS, historyfile=HISTORYFILE):
"""Read the history.sqlite file to get a list of the most accessed pages"""