Skip to content

Instantly share code, notes, and snippets.

@bumplzz69
bumplzz69 / 0_urllib2.py
Created October 16, 2019 19:32 — forked from kennethreitz/0_urllib2.py
urllib2 vs requests
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
gh_url = 'https://api.github.com'
req = urllib2.Request(gh_url)
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm()
@bumplzz69
bumplzz69 / gen.sh
Created April 29, 2019 20:05 — forked from mik01aj/gen.sh
#!/bin/bash
# Usage: ./gen.sh collected-stacks.txt
TMPSTACKS=/tmp/flamegraph-stacks-collapsed.txt
TMPPALETTE=/tmp/flamegraph-palette.map
./stackcollapse-jstack.pl $1 > $TMPSTACKS
# 1st run - hot: default
@bumplzz69
bumplzz69 / buttond.py
Last active April 29, 2019 19:48 — forked from gholms/buttond.py
Unifi wireless voucher generator and requestor button
#!/usr/bin/python3
# Copyright 2017 William Klope
#
# 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 the
# Free Software Foundation; either version 3 of the License or (at your
# option) any later version accepted by the Santa Barbara Hackerspace (or
# its successor approved by the Santa Barbara Hackerspace), which shall
# act as a proxy as defined in Section 14 of version 3 of the license.
@bumplzz69
bumplzz69 / gist:03fd3f20383883cae32a900532861dee
Created December 15, 2018 02:35 — forked from mralexgray/gist:2959642
ipv6 tunnelbroker / he.net dyndns setup / update
echo `curl -k --trace -s https://domain.com:[email protected]/nic/update?hostname=domain.com`
// XXXXXXXXXXXXXXXXX = dns.he.net key
-ERROR: Missing parameter(s).
Usage: https://ipv4.tunnelbroker.net/ipv4_end.php?ip=IPV4ADDR&pass=MD5PASS&apikey=USERID&tid=TUNNELID
-or-: https://USERNAME:[email protected]/ipv4_end.php?tid=TUNNELID (auto-detect IP)
https://USERNAME:[email protected]/ipv4_end.php?tid=TUNNELID&ip=IPV4ADDR
IPV4ADDR: Your IPv4 endpoint. Set to AUTO to determine your IP based on the IP you requested this page from. Previously passed as ipv4b.
@bumplzz69
bumplzz69 / setup.md
Created October 3, 2018 03:51 — forked from xt0rted/setup.md
Setting up node in bash on WSL

Setting up node in bash on WSL

Setting up Node on WSL is easiest when done with NVM. To do this go into bash and run the following:

touch ~/.bashrc
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Once NVM is installed close and reopen bash, then run the following:

@bumplzz69
bumplzz69 / setup.md
Created October 3, 2018 03:51 — forked from xt0rted/setup.md
Setting up node in bash on WSL

Setting up node in bash on WSL

Setting up Node on WSL is easiest when done with NVM. To do this go into bash and run the following:

touch ~/.bashrc
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Once NVM is installed close and reopen bash, then run the following: