https://github.com/rmariuzzo/knowledge
List of stuff I have learnt ...
https://github.com/rmariuzzo/knowledge
Last synced: 4 months ago
JSON representation
List of stuff I have learnt ...
- Host: GitHub
- URL: https://github.com/rmariuzzo/knowledge
- Owner: rmariuzzo
- License: mit
- Created: 2017-06-30T03:01:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-21T00:05:57.000Z (over 4 years ago)
- Last Synced: 2025-04-07T12:50:48.894Z (about 1 year ago)
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Knowledge
List of stuff I have learnt...
## CLI
### Capture screenshots automatically OSX
```sh
i=1; while true; do screencapture -C -m -t jpg -x ~/captures/$i.jpg; let i++; sleep 1; done
```
### Grep same file in multiple directory \*nix OSX
```sh
find . -maxdepth 2 -name package.json -exec grep --color -niH 'node ' {} \;
```
### Execute specific chef-solo recipes \*nix OSX
```sh
sudo chef-solo --config-option cookbook_path=`pwd` -o apache2::default,apache2::vhosts
```
### Delete all local Git branches except master
```sh
git branch | grep -v "master" | xargs git branch -D
```
### Find untouched `node_modules` in the last 90 days
```sh
find . -type d -ctime +90 -name node_modules -depth 2 -exec du -hs {} \;
```
### Delete empty directories
```sh
find . -empty -type d -delete
```