1. Always Ask, Never Assume

    The CNN photographer John was told that a twin engine plane would be waiting at the airport. Arriving at the airport he spotted a plane warming up outside the hangar. He jumped in & said: “Lets go.”

    The pilot happily took off.

    Once in the air John told the Pilot: “Fly …

  2. IPv6 only experiment

    For long time was wondering whether I can shift to 100% IPv6 stack. Finally decided to give it a try. List of site which were evaluated.

    Category Name IPv6 Ready
    AntiVirus Macafee No
    AntiVirus Norton No
    AntiVirus QuickHeal No
    Astronomy IUCAA No
    Banking Axis Bank (Akamai) Yes
    Banking Axis Bank …
    Tagged as : ipv6
  3. Random Color for iTerm Tabs

    Add following in $HOME/.zshrc

    function color {
      case $1 in
          t=$((( RANDOM % 256 ) ))
          echo -e "\033]6;1;bg;red;brightness;${t}\a"
          t=$((( RANDOM % 256 ) ))
          echo -e "\033]6;1;bg;green;brightness;${t}\a"
          t=$((( RANDOM % 256 ) ))
          echo -e "\033]6;1;bg;blue;brightness;${t}\a …
    Tagged as : iterm shell
  4. Python packaging with cython

    cython converts python code to C/C++ and creates compiled extensions. Generally this is used to speed up the execution, but one can also use it for protecting their python source code.

    Code structure

    +- setup.py
    +- README.md
    +- my_pkg
       +- __init__.py
       +- module_one.pyx
       +- module_two.pyx
       +- utils.pyx
    # __init__.py …
    Tagged as : python cython packaging

Page 1 / 5