Quantcast
Channel: Recent Gists from itamarhaber
Browsing all 36 articles
Browse latest View live

Butt Emoticons

butt-emoticons.md Butt Emoticons (!) the basic one (_!_) the fuller one (.) the flat one (:) the one plus one, a.k.a colons (8) the too weird one (,) the caught in the act one (;) the 60FPS one (*)...

View Article


Regex-like key name pattern matching in Redis

Redis SCAN by "regex" foo@bar:~$ redis-cli 127.0.0.1:6379> dbsize (integer) 0 127.0.0.1:6379> set user:1 1 OK 127.0.0.1:6379> set use:the:force luke OK 127.0.0.1:6379> set non:user a OK...

View Article


Image may be NSFW.
Clik here to view.

Haber's Benchmarking Theorem (as postulated for Ask a Redis Expert™ Webinar:...

00_benchmarking-theorem.png benchmarking-theorem.py """ Haber's Benchamarketing Theorem """ import numpy as np import matplotlib.pyplot as plt import matplotlib.font_manager as fm with plt.xkcd(): fig...

View Article

20150513 Ask a Redis Expert Webinar - How to achieve 1.5M ops sec with Redis

external-references.md Slide deck Ask a Redis Expert Webinar - How to achieve 1.5M ops/sec with Redis:...

View Article

Lost in translation - Redis Watch #44

00_Redis_Watch_44.NFO ii ii ii ii ii ii ii ii ii ii ii i ii ii ii ii i ii iii ii iiii ii ii ii iiiiii iiiiii iiiiiiii ii iiiiii ii ii iiiiiiiiiiiiii iiiiii iiiiiii iiiiiiiiiiiiii iiiiiiiii ii iiiiii...

View Article


Redis & MongoDB Stop Big Data Indigestion Before It Starts

urls.md Redis Watch - a weekly newsletter about everything Redis: http://bit.ly/RedisWatch WiredTiger iiBench Results: https://github.com/wiredtiger/wiredtiger/wiki/iiBench-results Redis Website:...

View Article

What happens to volatile keys when loading from RDB in Redis?

redis rdb ttl foo@bar:~$ redis-cli 127.0.0.1:6379> flushall OK 127.0.0.1:6379> save OK 127.0.0.1:6379> set p persistent OK 127.0.0.1:6379> set v volatile OK 127.0.0.1:6379> expire v...

View Article

Redis absolute TTL (accuracy +/- 1 second)

absttl.lua -- Returns a key's absolute TTL local t = tonumber(redis.call('TTL', KEYS[1])) if t > 0 then t = t + tonumber(redis.call('TIME')[1]) end return t

View Article


Image may be NSFW.
Clik here to view.

Ten Redis Commandments

10-redis-commandments.md "Went up the mountain, spent some time there, a bush or something was burning and I must have inhaled the smoke because I came back down carrying these two slabs of stone...",...

View Article


20150903 Ask a Redis Expert Webinar - Why Your MongoDB�Needs Redis

external-references.md Slide deck Ask a Redis Expert Webinar - Why Your MongoDB Needs Redis: http://www.slideshare.net/itamarhaber/why-your-mongodb-needs-redis URLs Redis Watch Newsletter:...

View Article

Image may be NSFW.
Clik here to view.

Use Redis in Odd and Unusual Ways - Percona LIVE! Europe 2015

00_external_references.md Slidedeck: https://www.slideshare.net/itamarhaber/use-redis-in-odd-and-unusual-ways Redis Watch - a periodic newsletter about everything Redis: http://bit.ly/RedisWatch Redis...

View Article

memtier_benchmark results for Memcached and Redis using the defaults on a i5...

output.txt foo@bar:~/memtier_benchmark$ ./memtier_benchmark -p 11211 -P memcache_text -x 1 [RUN #1] Preparing benchmark client... [RUN #1] Launching threads now... [RUN #1 100%, 46 secs] 0 threads:...

View Article

Redis Quadtrees in Hash - finally motivated because of...

formal-benchmark.txt foo@bar:~/src/quadtree$ redis-cli zcard x (integer) 100000 foo@bar:~/src/quadtree$ redis-cli zcard y (integer) 100000 foo@bar:~/src/quadtree$ redis-cli hlen qt (integer) 56325...

View Article


Trash Mention's alerts

code.py import requests import json jt = json.dumps({'trashed': True}) url = 'https://api.mention.net/api/accounts/<account identifier>/alerts/<alert identifier>/mentions' gh = {'Accept':...

View Article

Loading a binary value from a file with redis-cli

method-1-binary-file.md Create the file with the actual bytes, not the '\xnn\ representation. For example, in Python: f = open('filename', 'w') f.write('\x01\x02\x03') f.close() Load the file with...

View Article


Learn Lua quickly with this short yet comprehensive and friendly script. It's...

learn.lua -- Two dashes start a one-line comment. --[[ Adding two ['s and ]'s makes it a multi-line comment. --]] ---------------------------------------------------- -- 1. Variables and flow control....

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


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

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

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
Browsing all 36 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>