adhocshare Blog

logo-apple 0

Fix SNX SSL Network Extender on mac

List of things to try when SNX Network extender fails to connect. sudo rm /etc/snx sudo rm `which snx` That fixed my issue of “Gateway fingerprint verification failed. Please contact you system administrator” message.   Other solution could be using...

logo-hadoop 0

Kafka on OSX / macOS

Source: https://dtflaneur.wordpress.com/2015/10/05/installing-kafka-on-mac-osx/   Apache Kafka is a highly-scalable publish-subscribe messaging system that can serve as the data backbone in distributed applications. With Kafka’s Producer-Consumer model it becomes easy to implement multiple data consumers that do live monitoring as well persistent...

logo-linux 0

top command on linux

Usage $ top   Sort by mem Shift+m View command line arguments c   Related posts: Fix files containing \0 characters or having incorrect file formats Crontab quick reference VI quick reference AWK quick reference

logo-apple 0

Pretty print JSON on mac

Using python with json.tool, $python -m json.tool <filename.json> Or use something like in line 2, below echo ‘{“employee_id”:1,”full_name”:”Sheri Nowmer”,”first_name”:”Sheri”,”last_name”:”Nowmer”,”position_id”:1,”position_title”:”President”,”store_id”:0,”department_id”:1,”birth_date”:”1961-08-26″,”hire_date”:”1994-12-01 00:00:00.0″,”end_date”:null,”salary”:80000.0000,”supervisor_id”:0,”education_level”:”Graduate Degree”,”marital_status”:”S”,”gender”:”F”,”management_role”:”Senior Management”}’ > /tmp/emp.json cat /tmp/emp.json | python -m json.tool     Related posts: AWK quick reference How-to: Install Hue...

logo-hadoop 0

Apache drill – No current connection

After reading multiple posts, it seems that this is a problem of conflicting jars. My current setup has apache drill installed using $brew install apache-drill and upon executing $drill-embedded or $drill-localhost, I see below error (line 10) robin@MacBook-Pro:~$ drill-localhost Java HotSpot(TM)...

logo-linux 0

AWK quick reference

Source: http://www.adminschoice.com/awk awk is an interpreted language used for data processing and validation,  generate reports and experiment with algorithms that can be ported to other languages. awk name & History The name awk comes from the initials of its creators: Alfred...

logo-linux 0

VI quick reference

Introduction vi  pronounced as ” vee eye ” is a unix editor available on almost all the unix  operating systems , solaris , bsd ,aix , hpux etc. This document is a quick reference to vi editor and will be...

logo-linux 0

Crontab quick reference

Source: http://www.adminschoice.com/crontab-quick-reference Setting up cron jobs in Unix and Solaris cron is a unix, solaris utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon. These tasks are often termed as cron jobs...

logo-apple 0

Uninstalling Xamarin Studio

Source: https://developer.xamarin.com/guides/cross-platform/getting_started/installation/uninstalling_xamarin/#Uninstall_Xamarin.Mac   Uninstall script – xamarin_uninstall.sh #!/bin/bash # This is a simple script to uninstall Xamarin from your machine. # Uninstall Xamarin Studio rm -rf “/Applications/Xamarin Studio.app” rm -rf ~/Library/Caches/XamarinStudio-* rm -rf ~/Library/Logs/XamarinStudio-* rm -rf ~/Library/Preferences/XamarinStudio-* rm -rf ~/Library/XamarinStudio-* # Uninstall...

logo-hive 0

Viewing Hive ORC files

Hive (0.11 and up) comes with ORC file dump utility. dump can be invoked by following command, hive –orcfiledump <location-of-orc-file>   Source: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+ORC#LanguageManualORC-ORCFileDumpUtility       Related posts: Hive statistics using beeline and expect script Query escaped JSON string in Hive...