Skip to content

Instantly share code, notes, and snippets.

View KazamaSion's full-sized avatar

Sion Kazama KazamaSion

View GitHub Profile
@KazamaSion
KazamaSion / lbrl.php
Created February 6, 2017 06:33
A php script of Load balancing + Rate Limiting via memcache.
<?php
$_token = array("token1", "token2");
if (in_array($_GET["token"], $_token)) {
get_info_simple();
} else {
header("HTTP/1.0 404 Not Found");
die("404 Not Found");
@KazamaSion
KazamaSion / keybase.md
Last active February 5, 2017 02:51
keybase verification

Keybase proof

I hereby claim:

  • I am KazamaSion on github.
  • I am kazamasion (https://keybase.io/kazamasion) on keybase.
  • I have a public key whose fingerprint is E032 43C4 D3B0 FBC2 CF65 6928 EE01 56AE 3BB3 C300

To claim this, I am signing this object:

@KazamaSion
KazamaSion / live_number.py
Last active August 29, 2015 14:27 — forked from cnbeining/live_number.py
A simple script to get lots of viewers of Bilibili Live
#!/usr/bin/env python
#coding:utf-8
# Author: Beining --<cnbeining#gmail.com>
# Purpose: A simple script to get lots of viewers of Bilibili Live
# Created: 08/11/2015
# Error report: http://www.cnbeining.com/?p=952
# https://github.com/cnbeining somewhere within my gists
import sys
import time