Skip to content

Instantly share code, notes, and snippets.

View RO-29's full-sized avatar
πŸ‘¨β€πŸ’»
balance is the key 🎯

Rohit Jain RO-29

πŸ‘¨β€πŸ’»
balance is the key 🎯
View GitHub Profile
@RO-29
RO-29 / haproxy_rate_limiting.md
Created September 8, 2025 07:37 — forked from procrastinatio/haproxy_rate_limiting.md
Rate limiting with HAproxy

Introduction

So HAProxy is primalery a load balancer an proxy for TCP and HTTP. But it may act as a traffic regulator. It may also be used as a protection against DDoS and service abuse, by maintening a wide variety of statistics (IP, URL, cookie) and when abuse is happening, action as denying, redirecting to other backend may undertaken ([haproxy ddos config], [haproxy ddos])

@RO-29
RO-29 / Activate Office 2019 for macOS VoL.md
Created May 23, 2021 07:44 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

// ensure the leaf corresponds to the private key and matches the certKey type
func (v *validateCert) validateLeaf(hello *tls.ClientHelloInfo, leaf *x509.Certificate, key crypto.Signer) (*x509.Certificate, error) {
isRSA := !v.supportsECDSA(hello)
switch pub := leaf.PublicKey.(type) {
case *rsa.PublicKey:
prv, ok := key.(*rsa.PrivateKey)
if !ok {
return nil, errors.New("private key type does not match public key type")
}
if pub.N.Cmp(prv.N) != 0 {

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@RO-29
RO-29 / Kippt
Last active December 18, 2015 01:49
kippt api request
import urllib2
import urllib
import ConfigParser
import sys
def post_to_kippt(config_filename):
config = ConfigParser.ConfigParser()
link="https://techieb.tk"
description="way too awesome"
title="Awesome!"