Skip to content

Instantly share code, notes, and snippets.

View ipbastola's full-sized avatar

IP Bastola ipbastola

View GitHub Profile
@ipbastola
ipbastola / Custom Addons Unresolved odoo reference issue in PyCharm.md
Created May 25, 2022 04:48
Custom Addons Unresolved odoo reference issue in PyCharm
@ipbastola
ipbastola / how-to-use-find-and-locate-to-search-for-files-on-linux.md
Created January 8, 2021 09:36
How To Use Find and Locate to Search for Files on Linux

How To Use Find and Locate to Search for Files on Linux

Please explore the tutorial below as it has the indepth explaination:

Tutorial Link

@ipbastola
ipbastola / find-duplicates-in-excel.md
Created June 20, 2019 05:26
ow to find duplicates in Excel: identify, highlight count, filter, and more
@ipbastola
ipbastola / jq to filter by value.md
Last active December 3, 2024 11:48
JQ to filter JSON by value

JQ to filter JSON by value

Syntax: cat <filename> | jq -c '.[] | select( .<key> | contains("<value>"))'

Example: To get json record having _id equal 611

cat my.json | jq -c '.[] | select( ._id | contains(611))'

Remember: if JSON value has no double quotes (eg. for numeric) to do not supply in filter i.e. in contains(611)

@ipbastola
ipbastola / free-system-space.md
Last active May 19, 2019 13:48
Free System space from massive log files

Free System Space from Massive Logs

  1. Remove compressed log files from /var/log
$ sudo find /var/log -type f -name "*.gz" -delete
  1. Truncate Log files
$ cd /var/log
@ipbastola
ipbastola / clean-up-boot-partition-ubuntu.md
Last active August 16, 2024 13:39
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@ipbastola
ipbastola / cifs-mount.md
Created July 21, 2016 12:29
How to mount CIFS into Ubuntu 14.04-x64 LTS

CIFS Mount on Ubuntu 14.04

1. Install packages

$ sudo apt-get install cifs-utils

2. Create a Mount point Directory

$ sudo mkdir /mnt/CIFSMOUNT