Skip to content

Instantly share code, notes, and snippets.

View bmcculley's full-sized avatar

bmcculley

View GitHub Profile
@bmcculley
bmcculley / dummy-web-server.py
Last active February 28, 2025 17:20 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python (2/3). Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@bmcculley
bmcculley / README.md
Created October 4, 2017 00:51 — forked from guillaumevincent/README.md
Windows Service with Python 3.5 and pyinstaller
@bmcculley
bmcculley / README.md
Created October 10, 2017 03:00 — forked from theseanl/README.md
Collecting popup/popunder scripts.

Collecting popup/popunder scripts.

Obnoxious ones

  1. dai0eej.bid, found in http://www.nowvideo.li/video/81e35ec6727ee
  2. onclasrv.com, found in https://thehiddenbay.xyz/

Ordinary ones

  1. watchmygf.me, found in http://www.watchmygf.me/
@bmcculley
bmcculley / RVM-VirtualENV.md
Last active April 15, 2019 05:55 — forked from andrew-h-lee/RVM-VirtualENV.md
RVM for Ruby; VirtualENV for Python

RVM for Pythonistas, Virtualenv for Rubyists

For Python Developers: virtualenv, virtualenvwrapper or Buildout

Note: envs = environments

For Ruby Developers: rvm

Installation

@bmcculley
bmcculley / README.md
Last active January 18, 2018 03:39 — forked from mike10004/README.md
Reverse Shell Using Python
@bmcculley
bmcculley / index.html
Created January 19, 2018 19:01 — forked from johan/index.html
HTML5 GPS tracker
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 GPS</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="style.css">
</head>
@bmcculley
bmcculley / balloontip.py
Created February 13, 2018 18:35 — forked from wontoncc/balloontip.py
Balloon tip module, Python, using win32gui.
# -- coding: utf-8 --
from win32api import *
from win32gui import *
import win32con
import sys, os
import struct
import time
class WindowsBalloonTip:
@bmcculley
bmcculley / nginx-gitweb.md
Created February 22, 2018 02:11 — forked from mcxiaoke/nginx-gitweb.md
Set up Gitweb + Nginx from scratch on Debian Wheezy

This guide offers the least time-consuming way of setting up Nginx for serving Git repositories over HTTP using Gitweb. The stuff here has been tested with Git 1.9.1 and Nginx 1.6.0 on Debian Wheezy. Probably also works for Ubuntu, etc.

Total time ~ 10 minutes.

Install

Enable wheezy-backports by adding this line to /etc/apt/sources.list:

deb http://http.debian.net/debian wheezy-backports main
@bmcculley
bmcculley / gist:f70bfbd96e2c0c9e2f38de61b2c5d03b
Created February 22, 2018 03:13 — forked from stran12/gist:1394757
Step-by-step installation of cGit with Nginx

How to install cGit on Nginx (Ubuntu server)

Step-by-step installtion of cGit on nginx without funky rewrite rules.

Pre-requisites

This is for

@bmcculley
bmcculley / python_stop_thread.py
Created March 8, 2018 04:45 — forked from samarthbhargav/python_stop_thread.py
A 'stoppable' thread for Python
# source: https://www.safaribooksonline.com/library/view/python-cookbook-2nd/0596007973/ch09s03.html
import threading
class TestThread(threading.Thread):
def _ _init_ _(self, name='TestThread'):
""" constructor, setting initial variables """
self._stopevent = threading.Event( )
self._sleepperiod = 1.0
threading.Thread._ _init_ _(self, name=name)
def run(self):