An open API service indexing awesome lists of open source software.

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 ...

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
```