Skip to content

Instantly share code, notes, and snippets.

View dranikpg's full-sized avatar

Vladislav dranikpg

  • Planet Earth
  • 18:32 (UTC +01:00)
View GitHub Profile
@dranikpg
dranikpg / example.cpp
Last active July 22, 2025 11:28
Crow sessions example
#include "crow.h"
#include "crow/middlewares/session.h"
#include <iostream>
#include <cstring>
/*
An example for the upcoming Sessions middleware feature.
This is a small website with login functionality.
@dranikpg
dranikpg / lmmove_test.py
Created July 6, 2022 13:00
LMMOVE fuzzy tester
from threading import Thread
import redis
import time
import random
r = redis.Redis(host='localhost', port=6379, db=0)
def rtest(func):
def wrapper():
func()