Skip to content

Instantly share code, notes, and snippets.

View mitsuhiko's full-sized avatar
🖥️
What's happening

Armin Ronacher mitsuhiko

🖥️
What's happening
View GitHub Profile

Hello Armin,

I'll be happy to help you with this. Currently, the price does not factor in any transactional sales tax, including VAT. GitHub is responsible for remitting these taxes directly to the appropriate jurisdiction by the applicable tax laws.

If you are a business with a valid VAT number on file for your GitHub account, then the transaction is exempt from VAT and no VAT is included. Our VAT registration number is EU528001391. That is a general EU VAT number. We are registered as a single point of registration (SOR) in the Netherlands and pay out the VAT collecting jurisdictions via their portal.

Hope that clears things up, please let me know if you have any other questions.

Cheers,
Matt

import time
import zlib
from threading import Lock, Thread
class Metric(object):
def add(self, value):
raise NotImplementedError()
def flush(self):
function crc32(value: string): number {
return 0xd0d0deadbeef;
}
type SerializedMetric = Array<number> | number;
interface Metric<T> {
add(value: T): void;
flush(): SerializedMetric;
}
location /webhook/17cbb307-94ec-446b-a17b-ab82594c974c {
if ($request_method != 'POST') {
return 405;
}
content_by_lua 'ngx.print(io.popen("/path/to/script.sh"):read("*a"))';
}
from sre_parse import Pattern, SubPattern, parse as sre_parse
from sre_compile import compile as sre_compile
from sre_constants import BRANCH, SUBPATTERN
class Scanner(object):
def __init__(self, tokens, flags=0):
subpatterns = []
pat = Pattern()
from flask import request, url_for
def url_for_here(**changed_args):
args = request.args_args.copy()
args.update(request.view_args)
args.update(changed_args)
return url_for(request.endpoint, **args)
app.jinja_env.globals['url_for_here'] = url_for_here
#!/usr/bin/env python
# Quick and dirty demonstration of CVE-2014-0160 by
# Jared Stafford (jspenguin@jspenguin.org)
# Modified so that it finds cookies
import sys
import struct
import socket
import time
import select
@mitsuhiko
mitsuhiko / .gitconfig
Last active January 30, 2021 20:22
Adds the ultimate of all pull request commands to git
# Alternatively don't use slog but something else. I just like that more.
[aliases]
slog = log --pretty=format:"%C(auto,yellow)%h%C(auto)%d\\ %C(auto,reset)%s\\ \\ [%C(auto,blue)%cn%C(auto,reset),\\ %C(auto,cyan)%ar%C(auto,reset)]"
addprx = "!f() { b=`git symbolic-ref -q --short HEAD` && \
git fetch origin pull/$1/head:pr/$1 && \
git fetch -f origin pull/$1/merge:PR_MERGE_HEAD && \
git rebase --onto $b PR_MERGE_HEAD^ pr/$1 && \
git branch -D PR_MERGE_HEAD && \
git checkout $b && echo && \
git diff --stat $b..pr/$1 && echo && \

wsgi.input_terminated Proposal

Problem Description

Currently WSGI servers or WSGI middlewares cannot accept chunked requests or perform request filtering because a WSGI application needs to depend on the content length as this is the only thing that the specification currently guarantees will work.