This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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$'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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" : " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| string="abc@hotmail.com;xyz@gmail.com;uvw@yahoo.com" | |
| str1=${string%%;*} | |
| str3=${string##*;} | |
| temp=${string#$str1;} | |
| str2=${temp#;$str3} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo aptitude install ruby-full | |
| sudo gem install sass | |
| sudo gem install compass |