notes to myself

  • git and vimdiff to visualize changes

    October 10, 2019 by

    1. See commits git log 2. setup vimdiff as default diff tool for git git config –global diff.tool vimdiff 3. disable question prompt for vimdiff git config –global diff.tool.prompt false 4. See diff between commits git difftool <commit-sha> — <file-path>

  • Ubuntu wireless configuration from command line

    May 2, 2018 by

    Generate passphrase: wpa_passphrase <myssid> <mypassword> > /etc/wpa_supplicant.conf Edit /etc/network/interfaces: auto <wireless-interface> iface <wireless-interface> inet static address netmask wireless-essid <myssid> gateway post-up wpa_supplicant wpa_supplicant -B -Dnl80211 -i<wireless-interface> -c/etc/wpa_supplicant.conf post-down killall -q wpa_supplicant dns-nameservers Here you need to find out your wifi adapter’s driver using wpa_supplicant –help. In my case it is nl80211… Read more

  • SSH to a Host With Multiple Hops

    March 7, 2018 by

    If you want to make an SSH connection to a host which is reachable only with multiple ssh connections you may use below command to connect it easly. (Note that older versions of ssh do not have this option but you can use some workarounds to do the same (proxy command and etc.)) Assume that… Read more

  • Ubuntu static IP configuration

    March 7, 2018 by

    auto eth0 iface eth0 inet static address gateway netmask dns–nameservers

View all posts

Follow My Blog

Get new content delivered directly to your inbox.