Redis user permissions (ACL) and python connection

 Recently, I was working on setting up a redis cluster along with separate users for readwrite and readonly. I setup the readonly user using the below privileges (ACLs):   user redisreadonly on >mySuperSecretPassword ~* resetchannels -@all +@read +ping +asking   Once this is setup, I wrote a simple program in python to connect to the redis cluster using the readonly credentials and print the number of keys.   #!/usr/bin/env python3 """ pip3 install redis """ from redis.cluster import RedisCluster, ClusterNode # ─────── Cluster connection ─────── startup_nodes = [ ClusterNode("redis_host_1", 6379), ClusterNode("redis_host_2", 6379), ClusterNode("redis_host_3", 6379) ] rc = RedisCluster(startup_nodes=startup_nodes,decode_responses=True,username='redisreadonly',password='mySuperSecretPassw...

Configure Linksys Wireless Router WRT54GC with BSNL SmartAX MT882 modem

It has been a long time since I blogged (almost 2 months, to be precise), more due to paucity of time than anything else.

In the meantime, I have been busy configuring the Linksys Wireless Router and my new HTC smartphone.

I had to struggle a lot to configure the Linksys router WRT54GC to work with the BSNL (ISP) provided modem SmartAX MT882. So, I have prepared a list of steps that can be used to configure the Linksys router with BSNL (though the navigation is specific to SmartAX MT882, I believe the solution can be transposed on any other type of modem too).

Click here for the step by step configuration guide.

Comments

Popular posts from this blog

Elasticsearch: Get output in CSV format using curl and jq

EXCEPTION_ACCESS_VIOLATION in Jinitiator and IE crashes

Redis user permissions (ACL) and python connection