Category: Mac

0

Setup bulk password-less ssh

Following script will help in setting up password-less ssh in one shot to multiple machines, Usage sample: $ remote-keyless.sh <file_of_hosts.txt> [password] #!/usr/bin/expect -f # remote-keyless.sh, v0.1, 2016-05-03, [email protected] # v0.2, 2016-09-28, [email protected] – added to make it compatible with pdsh ;)...

0

A nice .vimrc

Using the settings below will add colors to vi editor, change the tabstops to 4 and adds more niceness. This is how my .vimrc looks like. filetype plugin indent on ” show existing tab with 4 spaces width set number...

0

Ondemand local webserver

Ever wanted a local directory to host contents over http? Here is how you do it, $ python -mSimpleHTTPServer Above command will host the contents of the current directory over http port 8000. If you want to use a custom...

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

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

Virtualbox Linux Guest display auto size non functioning

So you have setup Virtualbox guest additions on Linux (Mine was Linux mint 17.2) guest and the window size is not honored.. Did you change the display resolution manually? If so, you will now need to remove the monitor settings...

0

No network connection on Windows XP guest – VirtualBox

Problem due to no network driver for the Ethernet hardware.   References https://forums.virtualbox.org/viewtopic.php?f=11&t=16616 https://www.google.com/search?q=PRO2KXP.exe&ie=utf-8&oe=utf-8 https://downloadcenter.intel.com/download/8659/LAN-Intel-PRO-Network-Connections-LAN-Driver https://downloadcenter.intel.com/downloads/eula/8659/LAN-Intel-PRO-Network-Connections-LAN-Driver?httpDown=https%3A%2F%2Fdownloadmirror.intel.com%2F8659%2Feng%2FPRO2KXP.exe   Related posts: Virtualbox Linux Guest display auto size non functioning Host-Only Networking With VirtualBox Download m3u8 URL video to local Shrinking VirtualBox VDI...

0

VirtualBox – Effective UID is not root. Please try reinstalling VirtualBox.

References http://superuser.com/questions/620936/virtualbox-does-not-start-on-mac-os-x   Only working solution on El Capitan after upgrading to VirtualBox v5, was $ for bin in VirtualBox VirtualBoxVM VBoxNetAdpCtl VBoxNetDHCP VBoxNetNAT VBoxHeadless; do     sudo chmod u+s “/Applications/VirtualBox.app/Contents/MacOS/${bin}”; done       No related posts.

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