Skip to content

Instantly share code, notes, and snippets.

DmitrII Gerasimenko kidig

Block or report user

Report or block kidig

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pylover /
Last active Sep 15, 2019
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3.5
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5.
Workaround for bug:
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
ricardo-rossi /
Last active Sep 9, 2019
Installing ElasticSearch on Ubuntu 14.04
### ./ 1.7 will install Elasticsearch 1.7
### ./ will fail because no version was specified (exit code 1)
### CLI options Contributed by @janpieper
### Check for latest version of ElasticSearch
alexanderjulo / gist:4073388
Created Nov 14, 2012
Python Tuple Lists with language codes (as of ISO 639-1) and country codes (as of ISO 3166)
View gist:4073388
languages = [
('aa', 'Afar'),
('ab', 'Abkhazian'),
('af', 'Afrikaans'),
('ak', 'Akan'),
('sq', 'Albanian'),
('am', 'Amharic'),
('ar', 'Arabic'),
('an', 'Aragonese'),
('hy', 'Armenian'),
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
taudep /
Created Jan 26, 2012
Sample Flask Python server
from flask import Flask, g, request, flash, url_for, redirect, render_template, abort
from flaskext.jsonify import jsonify
from flaskext.sqlalchemy import *
from sqlalchemy import *
from pyodbc import *
import logging
DATABASE = "dsn=Foo;Trusted_Connection=Yes"
SECRET_KEY = "asdasdfasd1234sdagfa23asdfg123"
You can’t perform that action at this time.