Skip to content

Instantly share code, notes, and snippets.

View SteveHere's full-sized avatar
💭
Looking for work

Steve SteveHere

💭
Looking for work
View GitHub Profile
I was drawn to programming, science, technology and science fiction
ever since I was a little kid. I can't say it's because I wanted to
make the world a better place. Not really. I was simply drawn to it
because I was drawn to it. Writing programs was fun. Figuring out how
nature works was fascinating. Science fiction felt like a grand
adventure.
Then I started a software company and poured every ounce of energy
into it. It failed. That hurt, but that part is ok. I made a lot of
mistakes and learned from them. This experience made me much, much
@SteveHere
SteveHere / proxy_socks2http.py
Last active October 30, 2023 03:25 — forked from zengxs/proxy_socks2http.py
Prettification + update to current asyncio syntax (Python 3.11+)
import logging
import socks # use pysocks
import asyncio
from datetime import datetime
from itertools import cycle
logging.basicConfig(level=logging.INFO)
socks_router_loop = cycle(( # simple round-robin router to socks proxies
('127.2.0.0', 9050, None, None), # address, port, username, password
# ('127.3.0.0', 9050, "proxy", "passwordpassword"),
000(023Rb|001Rb)
001(017La|002Rb)
002(021La|003Rb)
003(021La|004La)
004(009Rb|005Lb)
005(004Ra|005La)
006(008La|007La)
007(009Rb|007La)
008(009Ra|008La)
009(010Ra|026Ra)
@SteveHere
SteveHere / formProgress.js
Last active December 29, 2020 14:28 — forked from adactio/formProgress.js
Show a progress bar with every form that has a method of POST. Particularly nice if there's a file upload involved.
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication: http://creativecommons.org/publicdomain/zero/1.0/
((win, doc)=>{ 'use strict';
[...doc.querySelectorAll('form[method="post"]')].forEach((formElement)=>{
function ajax (elem) {
let progressBar = Object.assign(doc.createElement('progress'), {max:100, value:0});
formElement.appendChild(progressBar);
let url = elem.action, xhr = new XMLHttpRequest();
xhr.open(elem.method, url, true);
xhr.onload=(ev)=>{ win.location = url; };
@SteveHere
SteveHere / keyservers.md
Created April 12, 2021 02:27 — forked from rjhansen/keyservers.md
SKS Keyserver Network Under Attack

SKS Keyserver Network Under Attack

This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.

Terminological Note

"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.

Who am I?

@SteveHere
SteveHere / astar.py
Created October 25, 2021 06:20 — forked from jamiees2/astar.py
A* Algorithm implementation in python.
# Enter your code here. Read input from STDIN. Print output to STDOUT
class Node:
def __init__(self,value,point):
self.value = value
self.point = point
self.parent = None
self.H = 0
self.G = 0
def move_cost(self,other):
return 0 if self.value == '.' else 1