Skip to content

Instantly share code, notes, and snippets.

View Just4Ease's full-sized avatar
😍
Architecting Madness

⚡️Justice Nefe⚡️ Just4Ease

😍
Architecting Madness
View GitHub Profile
@Just4Ease
Just4Ease / rate_limit.py
Created February 25, 2022 14:33 — forked from josiahcarlson/rate_limit.py
Rate limiting with Redis primarily using Lua scripting
'''
rate_limit.py
Written May 7-8, 2014 by Josiah Carlson
Released under the MIT license.
Offers a simple interface for offering rate limiting on a per second, minute,
hour, and day basis. Useful for offering varying rate limits depending on user
behavior. Sliding window based limits offer per minute, hour, and day limits
@Just4Ease
Just4Ease / atoi_test.go
Created July 24, 2021 16:37 — forked from evalphobia/atoi_test.go
golang benchmark: String and Int conversions
package bench
import (
"strconv"
"testing"
)
var smallStr = "35"
var bigStr = "999999999999999"

Rename a git tag old to new:

git tag new old
git tag -d old
git push origin :refs/tags/old
git push --tags

The colon in the push command removes the tag from the remote repository. If you don't do this, git will create the old tag on your machine when you pull.

-- source http://stackoverflow.com/a/5719854/695454

//
// Panels
// --------------------------------------------------
// Base class
.panel {
margin-bottom: @line-height-computed;
background-color: @panel-bg;
border: 1px solid transparent;