https://github.com/kumar-shridhar/utils
Some basic needed utilities
https://github.com/kumar-shridhar/utils
Last synced: about 2 months ago
JSON representation
Some basic needed utilities
- Host: GitHub
- URL: https://github.com/kumar-shridhar/utils
- Owner: kumar-shridhar
- Created: 2018-06-30T16:14:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-05T01:11:23.000Z (over 5 years ago)
- Last Synced: 2025-01-28T17:17:14.766Z (4 months ago)
- Language: Jupyter Notebook
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Utils
* CSV to JSON file converter
* Augment text dataset using synonyms
* Split test train### Command to copy 10 files from one dir to another
* ls -Q dir1 | shuf -n -10 | xargs -i mv dir1/{} dir2/### Set Ipython/Jupyter Kernel
* python -m ipykernel install --user --name myenv --display-name "Python (myenv)"### Put large files in gitignore in GitHub
* find ./* -size +100M | cat >> .gitignore### Check Graphics card presence
* lspci | grep VGA### Cut n lines from one file to the other
* head -n file_to_copy_from > file_to copy to && sed -i '1,+n-1d' file_to_copy_from
* Example: head -100000 OpenSubtitles.de-en.de > OpenSubtitles.de-en.de.valid && sed -i '1,+99999d' OpenSubtitles.de-en.de