Zeeshan Ali Shah's Blog

  • Contact Me
  • CV
  • m
  • Main
  • My Talks and Travels
  • Projects (I been involved/worked with)
  • Sample Page
Illustration of a bird flying.
  • connect to vnc via socks proxy

    If you want to connect to remote server (running vnc on local port) but using another host as jump node (bastion).

    May 25, 2021
  • Delete all files except

    Delete all files except particular extension lets say bam

    January 1, 2021
  • unique lines from two files

    How to get unique lines from two files (fileA, and fileB) and store the lines in file-unique .

    January 1, 2021
  • block countries based on Geo-IP with iptables Ubuntu 16 and 18

    Blocking based on geographical locations like countries need a list of IP ranges allocated to this by IANA. Now you have two options To get the list of IP ranges and create the IP tables rules your self To have module in Iptables which works above Luckily there is module for iptables which can work […]

    December 26, 2019
  • Get Hardware server model info in linux terminal

    dmidecode | grep -A3 ‘^System Information’

    April 29, 2019
  • check host down or up with ping command line

    for i in {01..36}; do ping -c 1 tancn$i.cm.cluster &> /dev/null && echo success || echo pcn$i fail ; done

    February 5, 2019
  • delete all files except in linux

    find .!-iname dir1 !-iname dir2 -exec rm -rf {} \;

    January 15, 2019
  • zfs cache file regenerate

    The /etc/zfs/zpool.cache file Whenever a pool is imported on the system it will be added to the /etc/zfs/zpool.cache file. This file stores pool configuration information, such as the device names and pool state. If this file exists when running the zpool import command then it will be used to determine the list of pools available for import. When […]

    August 12, 2018
  • setting pxe boot via ipmi

    ipmitool -I lanplus -H bmc_ip -U root -P passwd chassis bootdev pxe options=persistent

    April 19, 2018
  • Installing Intel Omnipath 100G on Centos 7

    Intel Omnipath is 100G fabric a less expensive alternative for Mellanox 100G.. we recently bought 10 Racks of servers with 100G Omnipath . Until recently there is NO driver for Ubuntu , but i love centos so i kicked that in ..   Introduction to Intel® Omni-Path Architecture Intel OPA is the latest generation of […]

    April 18, 2018
1 2 3 … 21
Next Page→

Zeeshan Ali Shah's Blog

Proudly powered by WordPress