Tagged: Mac

0

Installing perl modules in non standard directory

Source: http://modperlbook.org/html/3-9-1-Installing-Perl-Modules-into-a-Nonstandard-Directory.html Specifying PREFIX=/home/user is the only part of the installation process that is different from usual. Note that if you don’t like how Makefile.PL chooses the rest of the directories, or if you are using an older version of it...

0

Compiling in $HOME

Original article Author updates   Original article Source: http://blog.sanctum.geek.nz/compiling-in-home/ If you don’t have root access on a particular Linux system that you use, or if you don’t want to install anything to the system directories and potentially interfere with others’ work...

0

umask in *nix operating systems

Source: http://askubuntu.com/questions/44542/what-is-umask-and-how-does-it-work To calculate for the umask, unlike file system permissions. The octal umasks are calculated via the bitwise AND of the unary complement of the argument using bitwise NOT. The octal notations are as follows: Octal value : Permission 0...

0

TextWrangler Text Filter collection

Location  ~/Library/Application Support/TextWrangler/Text Filters Tidy HTML.sh #!/bin/sh # run “tidy” on the file given as 1st (and only) parameter. # /usr/bin/tidy -utf8 -asxhtml -indent -wrap 100 -quiet 2> /dev/null Tidy XML.sh #!/bin/sh XMLLINT_INDENT=$” ” xmllint –format –encode utf-8 – Tidy JSON.py...

0

Lookup YARN Acls capacity scheduler queue users from /etc/passwd

Following is an awk script that I use in TextWrangler as a Text Filter. This script generates the required awk and grep commands to lookup /etc/passwd file. #!/bin/sh # gawk ‘{match($0,”([a-zA-Z]+).acl_submit_applications=(.*)”,a); if(a[1] != “”) print a[1] “\t” a[2] }’ #...

0

Create ISO on Mac – the easy way

Create an ISO on Mac from a folder $ hdiutil makehybrid -o ~/Desktop/image.iso ~/path/to/folder/to/be/converted -iso -joliet     Related posts: Transparent image file on MAC MAC terminal shortcut keys How-to: Install Hue on a Mac Lync for Mac removal script

0

Lync for Mac removal script

Source: http://weirdwindowsfixes.blogspot.com/2013/03/lync-for-mac-removal-tool.html   #!/bin/bash LYNC_PID=$(ps ax | grep “/Applications/Microsoft Lync.app/Contents/MacOS/Microsoft Lync” | grep -v grep | awk ‘{ print $1 }’) kill -9 ${LYNC_PID} 2>/dev/null USER_LIST=`dscl . list /Users UniqueID | awk ‘$2 > 500 { print $1 }’` for...

0

How to configure Hue for your Hadoop cluster

Source: http://gethue.com/how-to-configure-hue-in-your-hadoop-cluster/   ue is a lightweight Web server that lets you use Hadoop directly from your browser. Hue is just a ‘view on top of any Hadoop distribution’ and can be installed on any machine. There are multiples ways...

0

How-to: Install Hue on a Mac

Source: http://blog.cloudera.com/blog/2015/04/how-to-install-hue-on-a-mac/ Learn how to set up Hue, the open source GUI that makes Apache Hadoop easier to use, on your Mac. You might have already all the prerequisites installed but we are going to show how to start from...