tg-z / web-clip

25 stars 5 forks source link

Note: snippets (Mar 11 2020) | Dnote #1040

Open tg-z opened 4 years ago

tg-z commented 4 years ago

$ saved.io addmark --title "article" --url "https://archive.org"
$ history | fzf +s --tac
find . -name "node_modules" -exec rm -rf '{}' +
sudo find / -name .DS_Store -depth -exec rm {} \;
find . -name "node_modules" -type d -prune -print | xargs du -chs
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;
find . -type f -print | xargs ls -l [docstore.mik.ua/orelly/unix3/upt/ch09_13.htm](http://docstore.mik.ua/orelly/unix3/upt/ch09_13.htm "Linkify Plus Plus")

$ d=(`find $HOME -type d -print`) 

$ find . \( -type d ! -name . -prune \) -o \( -mtime -1 -print \) 

$ find . -name "package.json" -type f -maxdepth 2 -prune -print | xargs du -chs

$ fd . -e el -t file

$ fd . -e json -t f -d 2 | xargs -0 

$ fd . -e json -t f -d 2 | xargs -0 | sd -p '/' ',' 

$ fd . -e json -t f -d 2 | xargs -0 | sd -p '/' ',' | grep "package.json" 

$ find . -type d -exec mkdir -p ~/to/{} \;

$ defaults write com.onmyway133.FinderGo terminal Terminal
$ defaults write com.onmyway133.FinderGo terminal iTerm
$ defaults write com.onmyway133.FinderGo terminal Hyper

# something to add to package.json
"scripts": {
  ...
  "clean": "rmdir /s /q node_modules",
  "reinstall": "npm run clean && npm install",
  "rebuild": "npm run clean && npm install && rmdir /s /q dist && npm run build --prod",
  ...
}

http://api.localhost:3000/notes/6989bfdf-d85f-4511-b062-d044f1e14809?queries%5Bq%5D=