Category: Mac

0

awk one liners (old)

————————————————————————- HANDY ONE-LINERS FOR AWK (Unix stream editor) Apr. 17, 2001 compiled by Eric Pement <[email protected]> version 0.1 Latest version of this file is usually at: http://www.student.northpark.edu/pemente/awk/awk1line.txt USAGE: Unix: awk ‘/pattern/ {print “$1”}’ # standard Unix shells DOS/Win: awk ‘/pattern/...

0

Hadoop mapreduce not working on mac local setup

Yarn jobs hangs on local mac environment Missing node in Resource manager UI There are no nodes in the node list http://192.168.68.145:8001:8088/cluster/nodes File: yarn-site.xml Location: /usr/local/Cellar/hadoop/2.7.3/libexec/etc/hadoop/yarn-site.xml <property> <name>yarn.resourcemanager.hostname</name> <value>localhost</value> </property>   Resource Manager UI displaying ipv6 for local address Hadoop does...

0

Local DNS for development environment on Mac

At times we need to setup local development domains for our test environment. I use it to maintain a local copy of my hosted website. It is very convenient to make changes to local and then export to hosted website...

0

brew packages and cask packages

brew packages Basic Apps $ brew install bash $ brew install bash-completion $ brew install maven $ brew install openssl $ brew install ssh-copy-id $ brew install wget $ brew install gawk Big data Apps $ brew install hadoop $...

0

Fix SNX SSL Network Extender on Mac

Apr 2017 As of Apr, 2017 SNX + Firefox ESR, fails to connect with Java version 1.8.0_131. Resolution Downgrade Java version to 1.8.0.121 Steps Delete JDK, $ sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk Delete JavaAppletPlugin.plugin, $ sudo rm -rf /Library/Internet Plug-Ins/JavaAppletPlugin.plugin Download older version...

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...

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...

0

AWK quick reference

Tips Original article Tips awk regex awk ‘/[0-9]+ /{print}’ file.txt   not beginning with an expression awk ‘!/^anexpression/{print}’ file.txt   containing x and not containing y awk ‘/x/ && !/y/’ file.txt   Mixing single and double quotes $ awk ‘BEGIN...

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...

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...