Skip to content

Instantly share code, notes, and snippets.

View benchonaut's full-sized avatar
👻

Benjamin Freitag benchonaut

👻
  • ( yes )
  • World
  • 05:53 (UTC +02:00)
View GitHub Profile
@rakshith48
rakshith48 / TesseractOpenCV.ipynb
Created December 21, 2019 11:53
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benoitpetit
benoitpetit / cmder_context_disable.reg
Created December 21, 2019 11:51
Adding Cmder to the Windows Explorer Context Menu
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\cmder]
@stewartadam
stewartadam / main.py
Last active March 5, 2024 16:02 — forked from gear11/main.py
Simple Python proxy server based on Flask and Requests with support for GET and POST requests.
"""
A simple proxy server, based on original by gear11:
https://gist.github.com/gear11/8006132
Modified from original to support both GET and POST, status code passthrough, header and form data passthrough.
Usage: http://hostname:port/p/(URL to be proxied, minus protocol)
For example: http://localhost:5000/p/www.google.com
"""
import re
@milnerm
milnerm / gist:2877e2f1e950e0da631edd568880e0ba
Created December 11, 2017 17:25
Basic cURL PHP http to local https pass through
<?php if(!empty($_GET['httpurl'])){
/**
* Basic cURL script for passing http through https locally, to get around mixed-security issues in browsers
* not fully tested; can handle GET and POST data as needed.
* $_GET['httpurl'] is urlencoded
*/
$cookie = tmpfile();
$userAgent = 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31';
$thisurl=urldecode($_GET['httpurl']);
//basic check for domain
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active April 28, 2024 16:35
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)