Skip to content

Instantly share code, notes, and snippets.

@glenuidev
glenuidev / gist:11062070
Created April 18, 2014 20:06
kebase.md
### Keybase proof
I hereby claim:
* I am glenuidev on github.
* I am glen (https://keybase.io/glen) on keybase.
* I have a public key whose fingerprint is 6341 C252 729B 8A65 CEDC 3ECC 5B19 BA88 31F7 A68E
To claim this, I am signing this object:
@glenuidev
glenuidev / ratelimit.rb
Last active March 22, 2018 07:05
DDoS IP Filter
# api limit = 2
# refresh interval = 1 second
# is_allowed(source_ip)
class RateLimit
Api_limit = 2
Refresh_interval = 1
Active_users = {}