Skip to content

Instantly share code, notes, and snippets.

View tristan-k's full-sized avatar

ʞ-uɐʇsıɹʇ tristan-k

View GitHub Profile
@tristan-k
tristan-k / compress.log
Created January 24, 2017 16:10
./manage.py compress
$ ./manage.py compress
/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py:345: RemovedInDjango110Warning: OptionParser usage for Django management commands is deprecated, use ArgumentParser instead
self.fetch_command(subcommand).run_from_argv(self.argv)
CommandError: Compressor is disabled. Set the COMPRESS_ENABLED setting or use --force to override.
$ ./manage.py compress --force
/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py:345: RemovedInDjango110Warning: OptionParser usage for Django management commands is deprecated, use ArgumentParser instead
self.fetch_command(subcommand).run_from_argv(self.argv)
@tristan-k
tristan-k / collectstatic.log
Created January 24, 2017 16:08
./manage.py collectstatic
$ ./manage.py collectstatic
You have requested to collect static files at the destination
location as specified in your settings:
/var/www/booktype/instance1/static
This will overwrite existing files!
Are you sure you want to do this?
@tristan-k
tristan-k / celery_worker.log
Last active January 24, 2017 16:09
./manage.py celery worker --concurrency=10 -l debug
$ ./manage.py celery worker --concurrency=10 -l debug
[2017-01-24 13:05:33,516: DEBUG/MainProcess] | Worker: Preparing bootsteps.
[2017-01-24 13:05:33,518: DEBUG/MainProcess] | Worker: Building graph...
[2017-01-24 13:05:33,518: DEBUG/MainProcess] | Worker: New boot order: {Beat, Timer, Hub, Queues (intra), Pool, Autoreloader, StateDB, Autoscaler, Consumer}
[2017-01-24 13:05:33,520: DEBUG/MainProcess] | Consumer: Preparing bootsteps.
[2017-01-24 13:05:33,520: DEBUG/MainProcess] | Consumer: Building graph...
[2017-01-24 13:05:33,522: DEBUG/MainProcess] | Consumer: New boot order: {Connection, Events, Mingle, Gossip, Tasks, Control, Heart, Agent, event loop}
-------------- celery@h2632466.stratoserver.net v3.1.25 (Cipater)
---- **** -----
@tristan-k
tristan-k / createbooktype.log
Created January 24, 2017 16:05
./createbooktype -p dev --check-versions --database postgresql /var/www/booktype/instance1
$ ./createbooktype -p dev --check-versions --database postgresql /var/www/booktype/instance1
+ Trying to import Django. [OK]
+ Trying to import booktype. [OK]
+ Trying to import lxml. [OK]
+ Trying to import Python Imaging Library (PIL/Pillow). [OK]
+ Trying to import Redis module. [OK]
+ Trying to import Unidecode module. [OK]
+ Creating data directory. [OK]
+ Creating logs directory. [OK]
+ Creating static directory. [OK]
@tristan-k
tristan-k / pg_hba.conf
Created January 24, 2017 16:03
pg_hba.conf
cat /etc/postgresql/9.4/main/pg_hba.conf | grep host
# This file controls: which hosts are allowed to connect, how clients
# host DATABASE USER ADDRESS METHOD [OPTIONS]
# hostssl DATABASE USER ADDRESS METHOD [OPTIONS]
# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS]
# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
# ADDRESS specifies the set of hosts the record matches. It can be a
# host name, or it is made up of an IP address and a CIDR mask that is
# specifies the number of significant bits in the mask. A host name
@tristan-k
tristan-k / openpgp.txt
Created October 23, 2016 21:44
Verknüpfte OpenKeychain-Identität
Dieses Gist bestätigt die Verknüpfte-Identität innerhalb meines OpenPGP-Schlüssels und verknüpft es mit diesem GitHub-Benutzerkonto.
Token des Nachweises:
[Verifying my OpenPGP key: openpgp4fpr:2389e18fe58313ad1c74522d9e113ac793d35042]
@tristan-k
tristan-k / openpgp.txt
Created October 23, 2016 21:43
Verknüpfte OpenKeychain-Identität
Dieses Gist bestätigt die Verknüpfte-Identität innerhalb meines OpenPGP-Schlüssels und verknüpft es mit diesem GitHub-Benutzerkonto.
Token des Nachweises:
[Verifying my OpenPGP key: openpgp4fpr:2389e18fe58313ad1c74522d9e113ac793d35042]
@tristan-k
tristan-k / a2dp.py
Created September 17, 2016 19:13 — forked from pylover/a2dp.py
#! /usr/bin/env python3.5
"""
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
See `a2dp.py -h` for info.
https://gist.github.com/pylover/d68be364adac5f946887b85e6ed6e7ae
Vahid Mardani
@tristan-k
tristan-k / ChromeAppDownloader.py
Created August 30, 2016 12:35 — forked from arulrajnet/ChromeAppDownloader.py
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
# -*- coding: utf-8 -*-
"""
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
Referred from http://chrome-extension-downloader.com/how-does-it-work.php
"""
from __future__ import division
import argparse
import requests
@tristan-k
tristan-k / odroid-c1 adb logact bootup
Last active August 29, 2015 14:15
When rebooting the odroid-c1 without the wlan dongle plugged in
$ adb logcat
- waiting for device -
--------- beginning of /dev/log/main
I/Netd ( 111): Netd 1.0 starting
W/InterfaceController( 111): Warning (dlopen failed: library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library
I/installd( 121): installd firing up
I/DEBUG ( 112): debuggerd: Dec 11 2014 15:40:51
--------- beginning of /dev/log/system
I/Vold ( 108): Vold 2.1 (the revenge) firing up
D/Vold ( 108): Volume usbstorage state changing -1 (Initializing) -> 0 (No-Media)