Skip to content

Instantly share code, notes, and snippets.

@tankala
tankala / data.json
Last active March 2, 2022 08:31
Write/Convert Nested JSON data to CSV for all keys or specific keys. For more details read my article https://blog.tanka.la/2020/03/29/write-convert-nested-json-data-to-csv-for-specific-subset-keysheaders/
[
{
"_id": "5e7f55e2f065ef934a048d32",
"index": 0,
"guid": "88647c07-bf2a-42c3-8e23-cec1ed731f2f",
"isActive": false,
"balance": "$1,254.74",
"picture": "http://placehold.it/32x32",
"age": 40,
"eyeColor": "green",
@tankala
tankala / README.md
Last active April 14, 2023 11:46
Redis key expire listener

Redis key expire listener

This code listens to redis key expire notifications

Installation

Set config in Redis config file as "notify-keyspace-events Ex"

pip3 install redis
@tankala
tankala / appArmorDockerProfileCorrpution.md
Created May 23, 2021 11:53
AppArmor docker profile corrpuption problem

Due to a file corruption or some reason I started getting below error

AppArmor enabled on system but the docker-default profile could not be loaded: strconv.Atoi: parsing "found": invalid syntax

I followed below steps to fix this problem. Please take backup of AppArmor profiles if you created any before running below commands

sudo rm -rf /etc/apparmor*
@tankala
tankala / vuex-persist-could-not-resolve-dependency.md
Last active December 18, 2022 14:33
Unable to install vuex-persist due to dependency resolve issue

Due to dependency issues I got this error

npm ERR! Found: [email protected]
npm ERR! node_modules/vue
npm ERR! vue@"^2.7.10" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^3.2.0" from [email protected]
npm ERR! node_modules/vuex