Quantcast
Channel: Recent Gists from itamarhaber
Browsing index pages (36 articles)
↧

Redis key to hashslot in Lua

hashslot.lua This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode...

View Article


Dump a Redis key in TCL binary string encoding

tcl-dump.lua-- DUMPs a Redis key in TCL-compatible binary string encodinglocal b = redis.call("DUMP",KEYS[1])local s =""for i =1, string.len(b), 1do s = s...

View Article


Redis 6.0 & 6.2

part1.mdRedis 6.0 GA Apr 30, 2020Access Control List (ACL)Redis Serialization Protocol 3 (RESP3)Client Side Caching (CSC)SSL (#WontFix)Better expiry!!!Diskless replication!11more!!!111one...

View Article

mass.txt

mass.txt*3$3SET$3key$5value

View Article

structor mkdocs

docs.DockerfileFROM alpineENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/binCOPY requirements.txt /mkdocs/WORKDIR /mkdocsRUN apk --update upgrade \&& apk...

View Article


acl-app-profile.md

acl-app-profile.mdACL v6RC1 default app profileThe purpose of this exercise is to define a "default" application ACL profile that can access the all the data without being able to cause too much...

View Article

Naively call RedisTF from Python with redis-py

README.md Clone, sh get_deps.sh, and make run https://github.com/lantiga/RedisTF pip install redis tensorflow cd models Run python tf-minimal.py to prepare a minimal graph The attached redistf-py.py...

View Article

Edgexfoundry and Redis for Core Data PoC

edgex-go-redisdb.md Edgexfoundry and Redis for Core Data PoC Objectives Implement the Redis client for edgex-go core data client tests/benchmarks Compare between TCP, UDS and embedded Redis...

View Article


Some thoughts about "Building a sliding window rate limiter with Redis"

some_thoughts.md Reading Building a sliding window rate limiter with Redis, and w/o addressing the actual logic (which may or may not work). Optimize by: Lua seems a much better choice: idiompotent,...

View Article


Happy Xmas!

xmas.lua local h,d,r=9, 0,{} while h>0 do local l='' h=h-1 for x=0, 38 do local a=x-6 if a<0 then a = -a end if a <= d then l = l .. '*' elseif (0.3/ (h+1)) > math.random() then l=l..'.'...

View Article

A somewhat optimized scripted approach to complementing Redis with a...

setbitrange.lua --[[ Sets a bitmap range Bitmaps are stored as Strings in Redis. A range spans one or more bytes, so we can call `SETRANGE` when entire bytes need to be set instead of flipping...

View Article

Threaded Redis PubSub demonstration in Python w/ redis-py

pubsub.py # Demonstrates PubSub import threading import redis class Listener(threading.Thread): def __init__(self, r, p): threading.Thread.__init__(self) self.redis = r self.pubsub =...

View Article

A friend forwarded me this and swears this is a real email. I read it it like...

acme-voynich.md To: all@acme.org From: fjg332@acme.org Subject: Organizational challenges Hi, As CDO of this company, it is my job to also to organizate because that's what the big-O in my title is...

View Article


Keybase.io proof of identity

keybase.md Keybase proof I hereby claim: I am itamarhaber on github. I am itamarhaber (https://keybase.io/itamarhaber) on keybase. I have a public key whose fingerprint is 94E5 0F40 576C 29EA A92A...

View Article

Redis ASCII logos

orginal-redis-server-logo.txt _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 999.999.999 (3f9e2322/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-`...

View Article


Me and My Friend ZADD

poem.txt This is my friend His name is ZADD He's is a lad Who's always SADD It's really bad That ZADD is SADD I don't know why And that makes me SCARD I hope that he Will be someday glad And that...

View Article

Cron-like Redis module

.gitignore *.xo *.so *.o README.md Assumes: Redis unstable in .. hiredis in .., already made Makefile SHOBJ_CFLAGS ?= -W -Wall -fno-common -g -ggdb -std=c99 -O2 -pthread SHOBJ_LDFLAGS ?= -shared...

View Article


Module development environment walkthrough

README.md Redis module development environment This document outlines the set up of a development environment for Redis Modules. Prerequisites A Linux server (e.g. Ubuntu Gnome 16.10) Packages: sudo...

View Article

file2resp.sh

file2resp.sh #!/bin/bash # Why? Education & zero redis-cli dependecy # (it is a shame, however, that this functionality isn't a part of redis-cli... PR on the way) HOST=127.0.0.1 PORT=6379 if [ $#...

View Article

A micro OSS project, blog post or an addition to...

luainsider.md Luainsider - manage your Redis Lua scripts like a pro A methodology, approach and apparatus for semi-persisting and aliasing Redis Lua scripts. FAIR WARNING: this is WIP (i.e. could blow...

View Article
Browsing index pages (36 articles)


Latest Images