Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

ᎠᎡ. Ѕϵrgϵ Ѵictor ser

🎯
Focusing
Block or report user

Report or block ser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ser
ser / reflect.py
Created Jul 12, 2019 — forked from 1kastner/reflect.py
A simple echo server to inspect http web requests
View reflect.py
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from http.server import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@ser
ser / btcpay.py
Created Mar 11, 2019
soon it will be on github
View btcpay.py
@blueprint.route('/admin/pair', methods=['GET', 'POST'])
@roles_accepted('admin')
def btcpaypair():
"""Payment processor pairing."""
btcpaypem_location = current_app.config.get('APP_DIR')+'/data/btcpayserver.key'
btcpaytoken_location = current_app.config.get('APP_DIR')+'/data/btcpayserver.token'
# Recognise if pairing is done and valid
try:
btcpayuri = current_app.config.get('BTCPAY_URI')
btcpaycode = current_app.config.get('BTCPAY_CODE')
View matrix-phpbb-rest.php
<?php
/**
*
* This file is not a part of the phpBB Forum Software package.
* Please be sure what you are doing.
*
* This code is based on code written by Matthias Kesler
* Licensed under the Apache License, Version 2.0 (the "License");
* https://github.com/krombel/matrix-register-bot/
@ser
ser / lxd.sh
Created Mar 15, 2017
lxd deployment
View lxd.sh
!/bin/bash
# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2
#
#set -x
# Create LXD container
#
if [ $# -eq 0 ]
then
echo "dolxd \$NAME \$IP \$GW"
echo "dolxd kupa 10.33.1.1 10.33.0.1"
View keybase.md

Keybase proof

I hereby claim:

  • I am ser on github.
  • I am ser (https://keybase.io/ser) on keybase.
  • I have a public key whose fingerprint is B4AE 2A51 65F3 DDB7 992B 77E3 D0DF 1943 6128 3431

To claim this, I am signing this object:

You can’t perform that action at this time.