Skip to content

Instantly share code, notes, and snippets.

View codingonHP's full-sized avatar
🎯
Focusing

Hello World codingonHP

🎯
Focusing
  • India
View GitHub Profile
@codingonHP
codingonHP / etc-hosts-on-win.md
Created September 4, 2018 09:58 — forked from zenorocha/etc-hosts-on-win.md
/etc/hosts on Windows

1. Get your IP Address

echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`

2. Modify your hosts file

notepad

@codingonHP
codingonHP / ssh.txt
Created July 14, 2018 19:49 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets
# Login via SSH with password (LOCAL SERVER)
> ssh brad@192.168.1.29
# Create folder, file, install Apache (Just messing around)
mkdir test
cd test
touch hello.txt
sudo apt-get install apache2
# Generate Keys