Skip to content

Instantly share code, notes, and snippets.

View jasodeep's full-sized avatar
👾
lorem ipsum

Jasodeep Chatterjee jasodeep

👾
lorem ipsum
  • Zoom
  • Bangalore
View GitHub Profile
@jasodeep
jasodeep / filebeat.yml
Created May 26, 2020 23:38
filebeat 7.x sample config file
filebeat.inputs:
- type: log
paths:
- /var/log/nginx/access.log
fields:
tags: ['nginx_access_log']
service: foobar
env: uat
fields_under_root: true
exclude_files: ['\.gz$']
sudo killall apt apt-get
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
sudo dpkg --configure -a
sudo apt update
sudo apt update -y && \
sudo apt install bash-completion && \
echo "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc && \
cat /etc/profile.d/bash_completion.sh
{
"Sachin Tendulkar" : {"run" : {"test" : "15921", "ODI" : "18426", "T20" : "148"}, "age" : "45" , "matches" : "463"},
"Sourav Ganguly" : {"run" : {"test" : "7212", "ODI" : "11221" , "T20" : ""}, "age" : "46" , "matches" : "311"},
"Rahul Dravid" : {"run" : {"test" : "13288", "ODI" : "10768" , "T20" : "31"}, "age" : "45" , "matches" : "344"},
"Virat Kohli" : {"run" : {"test" : "6331", "ODI" : "10232" , "T20" : "2167"}, "age" : "30" , "matches" : "216"},
"MS Dhoni" : {"run" : {"test" : "4876", "ODI" : "9999" , "T20" : "1487"}, "age" : "37" , "matches" : "332"},
"Mohammad Azharuddin" : {"run" : {"test" : "6216", "ODI" : "9378" , "T20" : ""}, "age" : "55" , "matches" : "334"},
"Yuvraj Singh" : {"run" : {"test" : "1900", "ODI" : "8609" , "T20" : "1177"}, "age" : "36" , "matches" : "304"},
"Virender Sehwag" : {"run" : {"test" : "8586", "ODI" : "7995" , "T20" : "394"}, "age" : "40" , "matches" : "251"},
"Rohit Sharma" : {"run" : {"test" : "1479", "ODI" : "7454" , "T20" : "
@jasodeep
jasodeep / gist:e56866c3807aab729ce2308440095afd
Created November 2, 2018 13:08 — forked from joshbc/gist:6bfc24166591e3075bad
Explode String Shell Script
string="abc@hotmail.com;xyz@gmail.com;uvw@yahoo.com"
str1=${string%%;*}
str3=${string##*;}
temp=${string#$str1;}
str2=${temp#;$str3}
@jasodeep
jasodeep / install-sass-and-compass
Created December 2, 2016 20:05
Install Sass & Compass on debian
sudo aptitude install ruby-full
sudo gem install sass
sudo gem install compass
@jasodeep
jasodeep / sources.list
Created December 2, 2016 10:16
Debian GNU/Linux 8 Jessie apt sourse list
deb http://httpredir.debian.org/debian/ jessie main contrib non-free
deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150908-22:02]/ jessie main
deb http://ftp.ua.debian.org/debian jessie main # contrib non-free #
deb http://ftp.ua.debian.org/debian jessie-updates main # contrib non-free #
deb http://http.debian.net/debian/ jessie main contrib non-free
deb https://apt.dockerproject.org/repo debian-jessie main