Skip to content

Instantly share code, notes, and snippets.

Working from home

He Long tolerious

Working from home
Block or report user

Report or block tolerious

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
tolerious / install_pip
Created Oct 16, 2014
pip install script
View install_pip
This file has been truncated, but you can view the full file.
#!/usr/bin/env python
# Hi There!
# You may be wondering what this giant blob of binary data here is, you might
# even be worried that we're up to something nefarious (good for you for being
# paranoid!). This is a base64 encoding of a zip file, this zip file contains
# an entire copy of pip.
# Pip is a thing that installs packages, pip itself is a package that someone
View TypeError
/home/osqa/osqa/forum/modules/ TIME: 2014-10-10 03:41:03,168 MSG: Error importing settings from module <module 'forum_modules.default_badges' from '/home/osqa/osqa/forum_modules/default_badges/__init__.pyc'>
Traceback (most recent call last):
File "/home/osqa/osqa/forum/modules/", line 18, in get_modules_script
all.append(__import__('%s.%s' % (m.__name__, script_name), globals(), locals(), [m.__name__]))
File "/home/osqa/osqa/forum_modules/default_badges/", line 1, in <module>
from forum.settings import BADGES_SET
ImportError: cannot import name BADGES_SET
/home/osqa/osqa/forum/modules/ TIME: 2014-10-10 03:41:03,170 MSG: Error importing settings from module <module 'forum_modules.updates' from '/home/osqa/osqa/forum_modules/updates/__init__.pyc'>
Traceback (most recent call last):
File "/home/osqa/osqa/forum/modules/", line 18, in get_modules_script
View demo.css
/* keyboard - demo CSS */
html, body, div, input, textarea {
font-family: Verdana,Tahoma,Segoe,sans-serif;
font-size: 14px;
body { background: #333; color: #ddd; height: 98%; margin: 0 auto; padding: 0; }
a:link { color: #9fcdff; text-decoration: none; }
a:hover { color: #fff; }
a:visited,a:active { color: #53a5ff; }
View bash-autocomplete-script
curl -o ~/.git-completion.bash
echo "source ~/.git-completion.bash" >> ~/.bash_profile
View nginx.conf
# 1. Make sure you have nginx sub module compiled in
# nginx -V 2>&1 | grep --color=always '\-\-with\-http_sub_module'
# 2. add two directives below at HTTP level
# nginx.conf
http {
# ......
sub_filter '</head>' '<style type="text/css">html{ filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); -webkit-filter: grayscale(100%); filter: url("data:image/svg+xml;utf8,<svg xmlns=\'\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
View sources.list
## Major bug fix updates produced after the final release of the
## distribution.
deb maverick main restricted
deb-src maverick main restricted
deb maverick-updates main restricted
deb-src maverick-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb maverick universe
View gist:5261297
#!/usr/bin/env python
import simplejson
import logging
import random
import re
import datetime
import string
import time
import sys
import urllib
You can’t perform that action at this time.