Skip to content

Instantly share code, notes, and snippets.

[I] ➜ qutebrowser --debug
11:31:15 DEBUG init earlyinit:init_log:366 Log initialized.
11:31:15 DEBUG init earlyinit:fix_harfbuzz:204 Using system harfbuzz engine (auto)
11:31:16 DEBUG init app:__init__:762 Qt arguments: ['/nix/store/fg1jg2hvk8626p9b45ib78q8hf46qw1n-qutebrowser-0.10.1/bin/.qutebrowser-wrapped'], based on Namespace(backend=None, basedir=None, color=True, command=[], debug=True, debug_exit=False, enable_webengine_inspector=False, force_color=False, harfbuzz='auto', json_args=None, json_logging=False, logfilter=None, loglevel='info', loglines=2000, no_err_windows=False, nowindow=False, override_restore=False, pdb_postmortem=False, qt_arg=None, qt_flag=None, relaxed_config=False, session=None, target=None, temp_basedir=False, temp_basedir_restarted=None, temp_settings=[], url=[], version=False)
Gtk-Message: Failed to load module "unity-gtk-module"
(python3.6m:22623): Gtk-WARNING **: Theme parsing error: gtk-dark.css:384:8: not a number
(python3.6m:22623): Gtk-WARNING *
let barposition = "bottom"
map J nextTab
map K previousTab
let hintcharacters = "asdfghjklqwert"
let blacklists = ["http://newsblur.com/*","https://www.ebay.com/*"]
#!/bin/bash
set -eu
_UID=$(id -u)
GID=$(id -g)
# give lxd permission to map your user/group id through
grep root:$_UID:1 /etc/subuid -qs || sudo usermod --add-subuids ${_UID}-${_UID} --add-subgids ${GID}-${GID} root
# set up a separate key to make sure we can log in automatically via ssh
# with $HOME mounted
@ibeex
ibeex / bash
Created August 2, 2016 18:11
qutebrowser
~/Downloads ❯❯❯ python3 -c "import PyQt5; print(PyQt5)" ⏎
<module 'PyQt5' from '/usr/local/lib/python3.5/dist-packages/PyQt5/__init__.py'>
~/Downloads ❯❯❯ python3 -vc "from PyQt5 import QtWebKit" 2&> pyqtbw
import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
@ibeex
ibeex / gist:7318259
Created November 5, 2013 12:21
subversion, build log
%brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew.git
HEAD: 83234d9ceb6c88592dd3bb4848e31b59d3da81eb
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.8.5-x86_64
Xcode: 5.0.1
CLT: 5.0.1.0.1.1377666378

Install ImageMagick (>= 6.8.0-10) for image conversion:

brew install imagemagick

Install leptonica (>= 1.69) and tesseract (>= 3.02.02) for OCR:

brew install leptonica
brew install tesseract --all-languages

Or install without --all-languages and install them manually as needed.

import os
import signal
import sys
import errno
from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer
# BOOK-KEEPING
_PIDS = []
@ibeex
ibeex / proxy.py
Last active December 23, 2015 10:19 — forked from bxt/proxy.py
# Originally from http://sharebear.co.uk/blog/2009/09/17/very-simple-python-caching-proxy/
#
# Usage:
# Stup localhost 80000 as proxy in web browser cache will cache the files
# on disc and not redownload it again.
# To clear the cache simply do a `rm *.cached`. To stop the server simply
# send SIGINT (Ctrl-C). It does not handle any headers or post data.
import BaseHTTPServer
import hashlib
@ibeex
ibeex / gist:5568501
Created May 13, 2013 13:59
livestreamer
livestreamer -p "/Applications/VLC.app/Contents/MacOS/VLC -vvv" --verbose-player http://www.twitch.tv/thegdstudio 480p
[cli][info] Found matching plugin justintv for URL http://www.twitch.tv/thegdstudio
[cli][info] Opening stream: 480p
[cli][info] Starting player: /Applications/VLC.app/Contents/MacOS/VLC -vvv
VLC media player 2.0.6 Twoflower (revision 2.0.6-9-gda489c1)
[0x1002070a0] main libvlc debug: VLC media player - 2.0.6 Twoflower
[0x1002070a0] main libvlc debug: Copyright © 1996-2013 VLC authors and VideoLAN
[0x1002070a0] main libvlc debug: revision 2.0.6-9-gda489c1
[0x1002070a0] main libvlc debug: configured with ../extras/package/macosx/../../../configure '--prefix=/Users/fkuehne/Desktop/videolan/gits/vlc-2.0/release/vlc_install_dir' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-growl' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-realrtsp' '--enable-libass' '--enable-macosx-audio' '--enable-macosx-eyetv' '--enable-macosx-qtki
@ibeex
ibeex / gist:5141917
Created March 12, 2013 10:41
Gtk+ failed to build on 10.8.2
brew doctor
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install gtk+
Run `brew missing` for more details.
brew --config
HOMEBREW_VERSION: 0.9.4