Skip to content

Instantly share code, notes, and snippets.

View boris-chervenkov's full-sized avatar

Boris Chervenkov boris-chervenkov

View GitHub Profile
@boris-chervenkov
boris-chervenkov / chrome_history.py
Created January 6, 2015 14:28
Export Chrome/Chromium history directly from the browser's database. Based on http://stackoverflow.com/questions/2141537/convert-datetime-fields-in-chrome-history-file-sqlite-to-readable-format/3174614#3174614 , but works with more recent versions of the browser.
#!/usr/bin/env python
import os
import sys
import datetime
import sqlite3
SQL_VISITS = 'select v.visit_time, u.url from visits v inner join urls u on (v.url = u.id) order by v.visit_time'
@boris-chervenkov
boris-chervenkov / kivy-on-primary-screen.txt
Last active August 29, 2015 13:56
Kivy segfault on MacOS 10.9 when running on a secondary monitor
# Running the "animate" example from the installation DMG. Running other examples produces the same error.
# MacOS 10.9.1
# MacBook Pro 9,2
# - CPU: 2,5 GHz Intel Core i5
# - RAM: 8GB
# - Video: Intel HD Graphics 4000 1024 MB graphics
# - Primary screen: 1280x800
# JUST MOVED THE TERMINAL SCREEN TO THE PRIMARY SCREEN and ran it again