Skip to content

Instantly share code, notes, and snippets.

@xnyo
xnyo / semver.go
Created July 27, 2023 14:55
Simple Go semver package
package semver
import (
"errors"
"fmt"
"strconv"
"strings"
)
type SemVer string

Keybase proof

I hereby claim:

  • I am xnyo on github.
  • I am nnyyoo (https://keybase.io/nnyyoo) on keybase.
  • I have a public key ASBDet3bi4zjWvUd0cWIOgXLP7l4ggIcgyq9MgkFSDT88go

To claim this, I am signing this object:

@xnyo
xnyo / hosts
Created October 16, 2019 18:52
51.15.26.118 osu.ppy.sh
51.15.26.118 c.ppy.sh
51.15.26.118 c1.ppy.sh
51.15.26.118 c2.ppy.sh
51.15.26.118 c3.ppy.sh
51.15.26.118 c4.ppy.sh
51.15.26.118 c5.ppy.sh
51.15.26.118 c6.ppy.sh
51.15.26.118 ce.ppy.sh
51.15.26.118 a.ppy.sh

Command

wrk -c 500 -t 16 -d 30 http://127.0.0.1:8000/

Results

sanic

Running 30s test @ http://127.0.0.1:8000/
  16 threads and 500 connections
import random
import sys
if len(sys.argv) < 2:
print("Usage: dilsessico.py <sentence>")
sys.exit()
s = " ".join(sys.argv[1:])
s = s.lower().split(" ")
r = ""
for i in s:
[db]
host = localhost
username = root
password =
database = ripple
pingtime = 600
[server]
server = tornado
host = 0.0.0.0