Posts

Showing posts from June, 2015

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...

Is my server physical or virtual?

Am I real or virtual? That is the question! That's the realm of philosophy and adhyatma . When and if I put this question to my server, it becomes technical and here's the answer. On Linux # dmidecode | more or dmidecode -s system-manufacturer Sample Output # dmidecode | more # dmidecode 2.9 SMBIOS 2.4 present. 364 structures occupying 17030 bytes. Table at 0x000E0010. Handle 0x0000, DMI type 0, 24 bytes BIOS Information         Vendor: Phoenix Technologies LTD         Version: 6.00         Release Date: 04/14/2014         Address: 0xEA050         Runtime Size: 90032 bytes         ROM Size: 64 kB         Characteristics:                 ISA is supported                 PCI is supported               ...

Popular posts from this blog

Interesting Oracle Applications (EBS) Interview Questions

Modify retention period of workflow queues

Check if UTL_FILE and FND_FILE are working fine