Skip to content

Instantly share code, notes, and snippets.

package main
import (
"flag"
"fmt"
"log"
"net"
"net/http"
"io")
from twisted.application import internet, service
from twisted.web import proxy, server, vhost
from twisted.internet.protocol import Factory, Protocol
from twisted.internet import reactor
from twisted.names import dns
from twisted.names import client
from twisted.names.server import DNSServerFactory
from twisted.python import log
from twisted.internet import defer
import socket, sys
from twisted.internet.protocol import Factory, Protocol
from twisted.internet import reactor
from twisted.names import dns
from twisted.names import client, server
from twisted.python import log
from twisted.internet import defer
from twisted.names.common import ResolverBase
@hagna
hagna / generichid_plugin
Created July 19, 2012 21:08
generichid series patch1 plugin
diff --git a/Makefile.am b/Makefile.am
index 45a811c..a033de1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -185,8 +185,18 @@ if HOGPLUGIN
builtin_modules += hog
builtin_sources += profiles/input/hog_manager.c profiles/input/hog_device.h \
profiles/input/hog_device.c profiles/input/uhid_copy.h
+
endif
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2007 Nokia Corporation
* Copyright (C) 2004-2009 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2007 Nokia Corporation
* Copyright (C) 2004-2009 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2007 Nokia Corporation
* Copyright (C) 2004-2009 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2007 Nokia Corporation
* Copyright (C) 2004-2009 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
(ns bot1.core
;; To run this (on windows linux or osx) you need lein which isn't much
;; just follow the instructions in the README at
;; https://github.com/technomancy/leiningen
;;
;; In an (ns ..) form, you typically use keywords. These are flags
;; telling ns what to do, which is why it is different from the REPL
;; and outside of an ns form. These are flags that call the
;; functions/macros for you.
(:require hobbit.bitly)
(ns bot1.core
(import (org.jibble.pircbot PircBot))
(require hobbit.bitly)
(import (hobbit.bitly Bitly)))
(def *bot*)
(def url-regex #"[A-Za-z]+://[^ ^/]+\.[^ ^/]+[^ ]+")