Skip to content

Instantly share code, notes, and snippets.

View Kalumburu's full-sized avatar

Nadav Nachshon Kalumburu

View GitHub Profile
@Kalumburu
Kalumburu / linux.play
Last active April 8, 2018 12:00
Linux playground
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:
@Kalumburu
Kalumburu / pi.play
Last active March 24, 2018 22:28
RASPBERRY PI playground
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
@Kalumburu
Kalumburu / Car IoT
Created October 9, 2017 12:14
Car IoT
http://www.tinnos.com/
https://www.genivi.org/
@Kalumburu
Kalumburu / Soft AP
Created October 9, 2017 07:03
Soft AP
Soft AP
@Kalumburu
Kalumburu / git.play
Last active April 8, 2018 11:58
Git playground
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 ?
@Kalumburu
Kalumburu / How to update production software on IaaS (HOT FIX)
Last active September 25, 2017 10:07
How to update production software on IaaS (HOT FIX)
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
@Kalumburu
Kalumburu / Create your own Git Server
Last active September 25, 2017 10:07
Create your own 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"
@Kalumburu
Kalumburu / Fuchsia
Created January 31, 2017 11:15
Fuchsia, a new operating system (github.com)
https://news.ycombinator.com/item?id=12271354
@Kalumburu
Kalumburu / readme.md
Last active January 25, 2017 07:17 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

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