Skip to content

Instantly share code, notes, and snippets.

@hrushikesh198
hrushikesh198 / HIVE-Error-NullPointer.md
Last active February 5, 2017 10:27
HIVE Error FAILED: NullPointerException null [cause] None

Sometimes hive error message can be useless. It just says FAILED: NullPointerException null [cause] None. I wanted to note few such experience.

  • Select columns missing commas
SELECT
  col1
  col2
  col3
FROM
@hrushikesh198
hrushikesh198 / Python2.7-Pip-Virtualenv.md
Last active August 22, 2021 07:35
Python2.7, Pip, Virtualenv Installation on Mac or Linux machines for the current user without sudo access

#Installing Python2.7 If you download a different version it should work similarly.

cd ~
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
tar -xzvf Python-2.7.13.tgz
cd Python-2.7.13
./configure 
make altinstall prefix=~/.local/
@hrushikesh198
hrushikesh198 / Internet Kill Switch.md
Last active November 19, 2019 23:00
Internet kill switch for Ivacy VPN on Mac

Internet kill switch for Ivacy VPN on Mac: I have tested it on macOs Sierra. It might work on other versions of mac. Use at your own risk. Use this as a guideline for setting up your own kill switch. You need to change few things to get it working for yourself. With minor changes it should work for other VPNs also.

Files:

  • kill-switch : this is the shell script providing status/start/stop/restart functionalities.