Ssh Tunneling Explained
Excellent post of https://goteleport.com/blog/ssh-tunneling-explained/
Freebsd Command
sysctl command to find out how much RAM is installed on a FreeBSD
$ sysctl hw.physmem
$ sysctl hw | egrep 'hw.(phys|user|real)'
Or ·$ grep memory /var/run/dmesg.boot·
Direct Root Non Root Login
How do I secure SSH to disable direct root/non-root user login?
Network Trouble Shooting Tips
dump packets go in and out to a NIC with specific MAC
How To Decide Host Is Virtual Or Physical
For VMWare stuff:
Unpack Repack Initial Ramdisk
Unpack initial ramdisk in a new folder
Create Pxe Server
Prepare software packages
Powerful Socat
The socat command shuffles data between two locations. One way to think of socat is as the cat command which transfers data between two locations rather than from a file to standard output. I say that socat works on two locations rather than two files because you can grab data from a network socket, named pipe, or even setup a general virtual network interface as one end point.
Mount Qcow2
How to mount a qcow2 disk image
Netlink Post
An good write-up:
Qcow2 Backing File
Assume that you already have your base image as a qcow2 - Ubuntu cloud image for example. Below command can create 2 images for 2 guest machines basing same image.
Predictable Network Interface Names
Predictable Network Interface Names
Hostname User Account
Distro with systemd
Linked List In Kernel
Canonical list
Cli Tips
find
Port Forwarding
NAT in iptables. So that, all the packets coming to 192.168.12.87 and port 80 will be forwarded to 192.168.12.77 port 80
Netplan Vs Network
Ubuntu Cloud Image On Vmware
I always look to update the Linux virtual machine running on top of VMware workstation on Window 10 Desktop. Where Ubuntu has its daily build of cloud images published at their website. Natrually it is ideal for me to get familar how it is working and start working with it.
Python Tips
uninstall libraries installed by running setup.py
Misc Tips
Misc TIPs
Docker Tips
commands
Ctags And Cscopt
Samba Setup Home Sharing
Linux side
Ubuntu Sources List Generator
https://repogen.simplylinux.ch/
Mac Dev Env
Applications
Git Credential Helper
With Git version 1.7.9 and later
Setup a network namespace with Internet access!
Setup a network namespace with Internet access: https://gist.github.com/dpino/6c0dca1742093346461e11aa8f608a99
Add Certification Ubuntu
Given a CA certificate file foo.crt, follow these steps to install it on Ubuntu:
Httpsnmitm
https – man in the middle
Vim Tips
Copy and Paste
- copy/delete word under cursor in Vim
yw / byw
You're up and running!
Next you can update your site name, avatar and other options using the _config.yml file in the root of your repository (shown below).