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
prologic@daisy | |
Wed Dec 17 09:22:34 | |
~ | |
$ echo "/1/docs" | nc localhost 70 | |
Error: File or directory not found! | |
______________________________________________________________________ | |
Gophered by Gophernicus/1.6 on /3.12 x86_64 | |
prologic@daisy | |
Wed Dec 17 09:23:25 |
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
set mime.extension.jpg="image/jpeg" | |
set mime.extension.jpeg="image/jpeg" | |
set mime.extension.png="image/png" | |
set mime.extension.gif="image/gif" | |
set mime.extension.bmp="image/bmp" | |
set mime.handler.image_viewer.unix.ask = 1 | |
set mime.handler.image_viewer.unix-xwin.ask = 0 | |
set mime.handler.image_viewer.unix.block = 1 |
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/bash | |
# | |
# By Sirupsen @ http://sirupsen.dk | |
# | |
# Description: Very simple script to make you | |
# select a region of your screen, which will be captured, and | |
# then uploaded. The URL will then be injected into your clipboard. | |
# | |
# Dependencies: | |
# |
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 python | |
from __future__ import print_function | |
from collections import deque | |
from gopherlib import Gopher, GopherMenu |
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
# Description: | |
# URL: | |
# Maintainer: | |
# Packager: | |
# Depends on: | |
name=gophernicus | |
version=1.6 | |
release=1 | |
source=(http://gophernicus.org/software/$name/$name-$version.tar.gz) |
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 random import randint | |
>>> import struct | |
>>> inc = randint(0, 0xFFFFFF) | |
>>> oid = struct.pack(">i", inc)[1:4] | |
>>> inc | |
3266098 | |
>>> oid | |
'1\xd62' | |
>>> inc = (inc + 1) % 0xFFFFFF | |
>>> inc |
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
$ python | |
Python 2.7.6 (default, Mar 22 2014, 22:59:56) | |
[GCC 4.8.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from pkg_resources import parse_version | |
>>> xs = ['113.8', '114.1', '114.2', '114.9', '114.10'] | |
>>> ys = map(parse_version, xs) | |
>>> ys | |
[('00000113', '00000008', '*final'), ('00000114', '00000001', '*final'), ('00000114', '00000002', '*final'), ('00000114', '00000009', '*final'), ('00000114', '00000010', '*final')] | |
>>> zx = sorted(ys) |
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
$ curl -v -o - http://localhost:3141/root/pypi/+simple/circuits | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 3141 (#0) | |
> GET /root/pypi/+simple/circuits HTTP/1.1 | |
> User-Agent: curl/7.39.0 | |
> Host: localhost:3141 | |
> Accept: */* | |
> | |
* Recv failure: Connection reset by peer |
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
prologic@daisy | |
Fri Nov 28 20:02:34 | |
~ | |
$ cat .pip/pip.conf | |
[global] | |
index-url = http://localhost:3141/root/pypi/+simple/ | |
prologic@daisy | |
Fri Nov 28 20:02:39 | |
~ |
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
[prologic|daisy ~]% xterm-255color | |
if [ -e /usr/share/terminfo/x/xterm-256color ]; then | |
export TERM='xterm-256color' | |
else | |
export TERM='xterm-color' | |
fi |