Skip to content

Instantly share code, notes, and snippets.

View bak1an's full-sized avatar
🇺🇦

Anton Baklanov bak1an

🇺🇦
View GitHub Profile
@bak1an
bak1an / links_fix.diff
Created November 18, 2015 18:06
links_fix.diff
@bak1an
bak1an / gist:751ee40be42483af8d48
Created September 13, 2015 17:13
spelling fail
% make spelling -I-
sphinx-build -b spelling -n -d _build/doctrees -D language= . _build/spelling
Running Sphinx v1.2.3
Initializing Spelling Checker
loading translations []... not available for built-in messages
loading pickled environment... done
building [spelling]: all documents
updating environment: [config changed] 344 added, 0 changed, 0 removed
reading sources... [100%] topics/testing/tools
looking for now-outdated files... none found
@bak1an
bak1an / py27
Created September 10, 2015 14:57
parallel tests crash
./runtests.py -I-
Testing against Django installed in '/home/bak1an/workspaces/django/django/django'
Creating test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Creating test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
#logfile /var/log/gibson.log
# 0 = DEBUG, 1 = INFO, 2 = WARNING, 3 = ERROR
loglevel 1
# fflush the log every N entries
logflushrate 1
# server config, to create a tcp server instead use:
# address 127.0.0.1
# port 10128
unix_socket /tmp/gibson.sock
@bak1an
bak1an / show_host_config
Created November 19, 2014 14:27
search through ~/.ssh/config fastor! NO SMS, NO VIM REQUIRED
#!/bin/sh
if [ -z "$1" ]; then echo "whooot?"; exit 1; fi
cat "${HOME}/.ssh/config" | sed -n "/${1}/,+4p"
@bak1an
bak1an / Dockerfile
Last active August 29, 2015 14:09
geos_epel_6
FROM centos:centos6
RUN yum localinstall -y http://fedora.ip-connect.vn.ua/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
RUN yum install -y gdal geos python-devel python-pip
RUN yum groupinstall -y "Development Tools"
RUN pip install cython
RUN pip install shapely
ADD crash.py /crash.py
CMD python /crash.py
# adb protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", MODE="0600", OWNER="bak1an"
# fastboot protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", MODE="0600", OWNER="bak1an"
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0cf5", MODE="0600", OWNER="bak1an"
# adb protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", MODE="0600", OWNER="bak1an"
# fastboot protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", MODE="0600", OWNER="bak1an"
# adb protocol on stingray/wingray (Xoom)
@bak1an
bak1an / sphinx-err-1A4szw.log
Created February 10, 2014 14:06
docs build error
# Sphinx version: 1.2b1
# Python version: 2.7.5
# Docutils version: 0.10 release
# Jinja2 version: 2.7
Traceback (most recent call last):
File "/home/bak1an/.virtualenvs/django27/lib/python2.7/site-packages/sphinx/cmdline.py", line 247, in main
app.build(force_all, filenames)
File "/home/bak1an/.virtualenvs/django27/lib/python2.7/site-packages/sphinx/application.py", line 211, in build
self.builder.build_update()
File "/home/bak1an/.virtualenvs/django27/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 211, in build_update
import time
import threading
def stacktraces():
code = []
for threadId, stack in sys._current_frames().items():
code.append("\n# ThreadID: %s" % threadId)
for filename, lineno, name, line in traceback.extract_stack(stack):
code.append('File: "%s", line %d, in %s' % (filename, lineno, name))
if line:
@bak1an
bak1an / runjenkins.sh
Created October 2, 2013 11:35
silly jenkins start-stop scripts
#!/bin/sh
cd %JENKINS_DIR%
nohup java -jar jenkins.war --httpListenAddress=127.0.0.1 --httpPort=12121 > jenkins.log 2>&1 & echo $! > jenkins.pid