DEV Community

n350071🇯🇵
n350071🇯🇵

Posted on • Edited on

3 2

n350071 shell note (bash)

https://dev.to/n350071/bashprofile-4ebd

👍 brew

brew install peco #Simplistic interactive filtering tool
brew cask install atom
brew cask install visual-studio-code
brew cask install amethyst
brew install htop
brew install jq # => use like this : curl localhost:8080/api/json | jq .
brew cask install eqmac # イコライザー
brew cask install postman
brew install tree
brew install blueutil
Enter fullscreen mode Exit fullscreen mode

brew software


Find the application process id

$ ps aux | grep rails
USER       PID  %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
n350071    2071   0.0  1.9  5419064 323140   ??  S     2Sep19  13:18.55 /Users/n350071/.rbenv/versions/2.4.6/bin/ruby script/rails s
Enter fullscreen mode Exit fullscreen mode

Then, the rails pid is 2071.

About Exit code

Exit code meaning
0 Success
1 General errors, Miscellaneous errors, such as "divide by zero" and other impermissible operations
2 Misuse of shell builtins (according to Bash documentation) Example: empty_function() {}

Workaround for white space

find -print0 | xargs -0
Enter fullscreen mode Exit fullscreen mode

xargs with arguments

echo 1 2 3 4 | xargs -I{} echo {}
Enter fullscreen mode Exit fullscreen mode

find all components

mdfind -name "kindle"
Enter fullscreen mode Exit fullscreen mode

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay