Skip to content

Instantly share code, notes, and snippets.

View count48's full-sized avatar
🌴
On vacation

Ravi Chaudhary count48

🌴
On vacation
View GitHub Profile
@count48
count48 / command.md
Last active July 24, 2019 10:15
These are tricky stuff . these are commands useful in figuring out things and fixing problems

Figuring out whats eating up internet speed on my machine

  sudo nethogs wlp5s0

To make an application running on port 49161 to be available at port 1521

This is useful when you dont want go down the rabit hole to find out how you want to change the default port of an application

   sudo iptables -t nat -A OUTPUT -o lo -p tcp --dport 1521 -j REDIRECT --to-port 49161
@count48
count48 / commands.md
Last active January 21, 2019 15:09
Configuring network on Linux Debian

Useful Commands while setting up / troubleshooting networking on Debian/Ubuntu

List MAC address for all network interface cards

  /sbin/ifconfig -a | grep HWaddr

Figuring out which network interface is what

  ls -l /sys/class/net

Assigning a static IP to a network interface

Setting up a static ip requires you to edit the file : /etc/network/interfaces.