Skip to content

Instantly share code, notes, and snippets.

Redis 4.2 roadmap

  1. Redis Cluster
  • Speed up key -> hashslot association. Now makes RBB loading 4x slower when there are many small keys.
  • Better multi data center story
  • redis-trib C coded and moved into redis-cli
  • Backup / Restore of Cluster
  • Non blocking MIGRATE (also consider not using 2X memory)
  • Faster resharding
  • Bug fixing and stress testing to bring it to next level of maturity
This was complex, here's the basic setup:
- Pentium 4 tower 2.0 GHz (found on side of the road in 2004) running Ubuntu
- Pentium D tower (overclockable) power machine (got from Tom Baker) running Windows (gaming / media machine)
- 14" Core2Duo inspiron laptop w/ broken screen (connected via VGA) running Hackintosh
- toshiba tablet pc, also connected to a screen
- some crappy other dell laptop running another linux i think
all hubbed into the campus network bypassing their security software, so I could get pretty impressive download speeds
@graceavery
graceavery / harryPotterAliases
Last active May 10, 2023 02:51
bash aliases for Harry Potter enthusiasts
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'
#!/bin/bash
# update apt-get
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get update
# remove previously installed Docker
sudo apt-get purge lxc-docker*
sudo apt-get purge docker.io*
00000000 78 03 00 4d 53 57 49 4e 34 2e 31 00 02 08 2a 00 |x..MSWIN4.1...*.|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 f8 0f 00 fd 03 00 00 00 00 00 00 01 01 00 00 |................|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 00 29 d0 3f 17 96 4e 4f 20 4e 41 4d 45 20 20 |..).?..NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 00 00 00 00 00 00 | FAT32 ......|
00000060 00 00 00 00 00 00 00 00 60 55 b1 77 35 7f 00 00 |........`U.w5...|
00000070 ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000080 00 00 00 00 00 00 00 00 f0 33 00 60 35 7f 00 00 |.........3.`5...|
00000090 ff ff ff ff ff ff ff ff 00 00 00 00 00 00 00 00 |................|
@addyosmani
addyosmani / 12-days.js
Last active February 3, 2016 18:31
12 Days of Christmas in ES2015 - paste this into your DevTools console!
// adapted from https://tonicdev.com/n3dst4/twelve-days-of-emoji
// full credit to n3dst4. I just rewrote this to be browser developer tools friendly.
const pressies = [
"🐦🍐🌳",
"🐢🐦",
"🇫🇷🐔",
"📞🐦",
"💛💍",
"🐦🍳 ",
"🐦🏊",
@kevinkindom
kevinkindom / Python Socket 编程详细介绍.md
Last active June 17, 2024 06:48
Python Socket 编程详细介绍

Python Socket 编程详细介绍

Python 提供了两个基本的 socket 模块:

  • Socket 它提供了标准的BSD Socket API。
  • SocketServer 它提供了服务器重心,可以简化网络服务器的开发。

下面讲解下 Socket模块功能。

Socket 类型

@Karlina-Bytes
Karlina-Bytes / HashTable.cpp
Created June 2, 2015 02:08
Hash Table Example
//*****************************************************************
// HashTable.cpp
// HashTable
//
// Created by Kar Beringer on June 18, 2014.
//
// This header file contains the Hash Table class definition.
// Hash Table array elements consist of Linked List objects.
//*****************************************************************
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@elvestar
elvestar / _globals.html
Last active September 5, 2015 06:01
Jinja2:定义全局变量,并在各个模板中使用
{% set LOG_CLASS_BRIEF = {
'user_behaviour': '用户行为数据',
'non_user_behaviour': '非用户行为业务数据',
'monitor': '监控数据',
'debug': '错误或调试数据'} %}