Skip to content

Instantly share code, notes, and snippets.

View gist:08d2e5b16e0dcecb0a3337121ef467ef
[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 *
View gist:1109d7c2452feb6960aeb1b66d904bb0
let barposition = "bottom"
map J nextTab
map K previousTab
let hintcharacters = "asdfghjklqwert"
let blacklists = ["http://newsblur.com/*","https://www.ebay.com/*"]
View setup.sh
#!/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 Aug 2, 2016
qutebrowser
View bash
~/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 Nov 5, 2013
subversion, build log
View gist:7318259
%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
View ocr.markdown

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.

View gist:6917820
import os
import signal
import sys
import errno
from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer
# BOOK-KEEPING
_PIDS = []
@ibeex
ibeex / proxy.py
Last active Dec 23, 2015 — forked from bxt/proxy.py
View 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
View gist:5568501
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 Mar 12, 2013
Gtk+ failed to build on 10.8.2
View gist:5141917
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