Skip to content

Instantly share code, notes, and snippets.

View bmcculley's full-sized avatar

bmcculley

View GitHub Profile
@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 / README.md
Last active January 18, 2018 03:39 — forked from mike10004/README.md
Reverse Shell Using Python
@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
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 / README.md
Created October 4, 2017 00:51 — forked from guillaumevincent/README.md
Windows Service with Python 3.5 and pyinstaller
@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 / auto-deploy.md
Created January 4, 2017 15:03 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

@bmcculley
bmcculley / actions.py
Created September 15, 2016 13:26 — forked from mgerring/actions.py
"Export to CSV" action for django admin
import unicodecsv
from django.http import HttpResponse
def export_as_csv_action(description="Export selected objects as CSV file",
fields=None, exclude=None, header=True):
"""
This function returns an export csv action
'fields' and 'exclude' work like in django ModelForm
'header' is whether or not to output the column names as the first row
"""
@bmcculley
bmcculley / xml.py
Last active January 10, 2022 02:52 — forked from chrisguitarguy/xml.py
Parse an XML sitemap with Python, requests and BeautifulSoup4 (works with python3)
from argparse import ArgumentParser
import requests
from bs4 import BeautifulSoup
def parse_sitemap(url):
resp = requests.get(url)
# we didn't get a valid response, bail
if 200 != resp.status_code:
return False
@bmcculley
bmcculley / tornado_github_auth.py
Created February 26, 2016 15:57 — forked from FZambia/tornado_github_auth.py
tornado github oauth
# coding: utf-8
#
# Copyright (c) Alexandr Emelin. BSD license.
# All rights reserved.
#
"""
class GithubAuthHandler(BaseHandler, auth.GithubMixin):
x_site_token = 'application'