If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
| How to export PATH ? | |
| -------------------- | |
| export PATH=$PATH:~/opt/bin | |
| How to restrict SSH Access on the Public Network ? | |
| -------------------------------------------------- | |
| 1. Access the Private Network over VPN. | |
| 2. Log into the Bare Metal Server's Private IP Address through SSH. | |
| 3. Run the following command to open the sshd_config file for edits: |
| How do I tell which version arm cpu on my Pi ? | |
| ---------------------------------------------- | |
| cat /proc/cpuinfo | |
| How to Check the Software and Hardware Version of a Raspberry Pi ? | |
| ------------------------------------------------------------------ | |
| cat /etc/os-release |
| http://www.tinnos.com/ | |
| https://www.genivi.org/ |
| Soft AP |
| How to diff files names ? | |
| ------------------------- | |
| git diff --name-only | |
| How to tag version ? | |
| -------------------- | |
| git tag -a v0.1 -m "first version 0.1" | |
| git push origin --tags | |
| How to get tag version ? |
| Ingredients: | |
| 1. Git server | |
| 2. Local machine (Linux, Mac) | |
| 3. Development server provided by your IaaS provider (AWS, Softlayer, Google, Azure...) | |
| 4. Production server provided by your IaaS provider (AWS, Softlayer, Google, Azure...) | |
| Steps: | |
| 1. Run your software on the Development server and make changes, test it and make sure it works | |
| 2. Commit changes to Git server | |
| 3. Update the code on your local machine from Git server |
| On the server: | |
| ============== | |
| sudo yum install git-core | |
| sudo useradd git | |
| passwd git | |
| On the Client: | |
| ============== | |
| ssh-keygen -t rsa | |
| cat ~/.ssh/id_rsa.pub | ssh git@{gitserver} "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" |
| https://news.ycombinator.com/item?id=12271354 | |