Skip to content

Instantly share code, notes, and snippets.

Avatar

Mustafa Akın mustafaakin

View GitHub Profile
@serkan-ozal
serkan-ozal / TransformableClassLoaderWhisperer.java
Created Jul 12, 2017
TransformableClassLoaderWhisperer - Add `ClassFileTransformer`s on the fly without Java agent
View TransformableClassLoaderWhisperer.java
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.IllegalClassFormatException;
import java.lang.reflect.Field;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Enumeration;
import java.util.List;
View 4.2-roadmap.md

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
@cryptix
cryptix / pgpTestTool.go
Created Dec 28, 2014
PGP file encryption in golang
View pgpTestTool.go
package main
import (
"archive/zip"
"fmt"
"log"
"os"
"time"
"github.com/cryptix/go/logging"
View aws-ec2-redis-cli.md
@bidulock
bidulock / tc-slow.sh
Last active Dec 28, 2019
Slow down traffic on localhost through a single port
View tc-slow.sh
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "You must run this as root."
exit 1
fi
I=lo
PORT=${PORT-23000}
DELAY=${DELAY-25ms}
@woods
woods / gen-key-script
Last active Sep 9, 2020
Creating gpg keys non-interactively
View gen-key-script
Key-Type: 1
Key-Length: 2048
Subkey-Type: 1
Subkey-Length: 2048
Name-Real: Root Superuser
Name-Email: root@handbook.westarete.com
Expire-Date: 0
You can’t perform that action at this time.