This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./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) | |
---- **** ----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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) |