This file contains hidden or 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 ruby | |
# frozen_string_literal: true | |
require 'English' | |
# direction: in|out | |
# network: cidr | |
allow_rule = lambda { |direction, network| | |
"pass #{direction} quick inet from any to #{network} flags any keep state" |
This file contains hidden or 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
diff --git a/app/views/dashboard/projects/index.html.haml b/app/views/dashboard/projects/index.html.haml | |
index 7a16b81..53abf27 100644 | |
--- a/app/views/dashboard/projects/index.html.haml | |
+++ b/app/views/dashboard/projects/index.html.haml | |
@@ -3,7 +3,7 @@ | |
= auto_discovery_link_tag(:atom, dashboard_projects_url(format: :atom, private_token: current_user.private_token), title: "All activity") | |
- page_title "Projects" | |
-- header_title "Projects", root_path | |
+- header_title "Projects", dashboard_projects_path |
This file contains hidden or 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
% 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 |
This file contains hidden or 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
./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'... |
This file contains hidden or 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
#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 |
This file contains hidden or 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
#!/bin/sh | |
if [ -z "$1" ]; then echo "whooot?"; exit 1; fi | |
cat "${HOME}/.ssh/config" | sed -n "/${1}/,+4p" |
This file contains hidden or 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
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 |
This file contains hidden or 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 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) |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
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: |
NewerOlder