based on rage-quit support for bash
Put the files below inside ~/.oh-my-zsh/custom/plugins/fuck
Also chmod a+x
the flip
command.
based on rage-quit support for bash
Put the files below inside ~/.oh-my-zsh/custom/plugins/fuck
Also chmod a+x
the flip
command.
import socket,asyncore | |
class forwarder(asyncore.dispatcher): | |
def __init__(self, ip, port, remoteip,remoteport,backlog=5): | |
asyncore.dispatcher.__init__(self) | |
self.remoteip=remoteip | |
self.remoteport=remoteport | |
self.create_socket(socket.AF_INET,socket.SOCK_STREAM) | |
self.set_reuse_addr() | |
self.bind((ip,port)) |
import asyncore | |
import socket | |
class EchoHandler(asyncore.dispatcher_with_send): | |
def handle_read(self): | |
data = self.recv(8192) | |
if data: | |
self.send(data) |
import zmq | |
import sys | |
import random | |
port = "5559" | |
context = zmq.Context() | |
print "Connecting to server..." | |
socket = context.socket(zmq.REQ) | |
socket.connect ("tcp://localhost:%s" % port) | |
client_id = random.randrange(1,10005) |
import zmq | |
def main(): | |
try: | |
context = zmq.Context(1) | |
# Socket facing clients | |
frontend = context.socket(zmq.SUB) | |
frontend.bind("tcp://*:5559") | |
import zmq | |
def main(): | |
try: | |
context = zmq.Context(1) | |
# Socket facing clients | |
frontend = context.socket(zmq.PULL) | |
frontend.bind("tcp://*:5559") | |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="agnoster" | |
# Example aliases |
def fib(): | |
x, y = 0,1 | |
while True: | |
yield x | |
x, y = y,x+y | |
fibgen=fib() | |
print [fibgen.next() for x in xrange(40)] |
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
Base57 Module For Encode and Decode | |
{A..Z} {a..z} {1..9} without | |
'O o 0 1 l I'which chars easily mistype | |
""" | |
# WARNING DON'T CHANGE the BASE |
from gevent import monkey | |
monkey.patch_all() | |
from dns import resolver | |
from tuck import tuck | |
def get_mail_server(receiver=''): | |
user, domain = receiver.split('@') | |
dest_list = sorted([x.to_text().strip('.').split(' ') |