How to push all local git branches to remote
Answer:
Just remember one command:
# git push --all origin
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to push all local git branches to remote
Answer:
Just remember one command:
# git push --all origin
How to disable services auto startup if they are installed using home brew
Answer:
For services installed using home brew, usually they will tell you how to turn on/off auto start when you use the command, e.g.
# brew info redis
redis: stable 2.4.17, devel 2.6.0-rc7, HEAD
http://redis.io/
Not installed
https://github.com/mxcl/homebrew/commits/master/Library/Formula/redis.rb
==> Caveats
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/redis/2.4.17/homebrew.mxcl.redis.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
If this is an upgrade and you already have the homebrew.mxcl.redis.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
cp /usr/local/Cellar/redis/2.4.17/homebrew.mxcl.redis.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
To start redis manually:
redis-server /usr/local/etc/redis.conf
To access the server:
redis-cli
How to view the keepalived multicast traffic used for master negotiation
Answer:
keepalived will advertise their priority frequently in order to provide the fail over capabilities, to view the messages exchanged by keepalived instances, try
# tcpdump -s0 -v -pni eth0 host 224.0.0.18
How to show all listening ports in Mac OSX
Answer:
To show all the listening ports in Mac OSX, try
# lsof -iTCP -sTCP:LISTEN
How to install redis in Mac OSX using home brew
Answer:
To install redis on Mac OSX using homebrew, use
# brew install redis