Category: CLI

  • Manipulating the Clipboard from the Command Line

    Manipulating the Clipboard from the Command Line: “Copy and Paste are absolute necessities for virtually all computer users, and if you find yourself working in the command line frequently, you’ll want to know how to manipulate the clipboard. The commands pbcopy and pbpaste do exactly what they sound like, copy and paste through the command…

  • Streaming 1080P video using Raspberry Pi (or BeagleBone Black)

    I’ve finally got this project to a point were I can do a write up on it. The following hardware is needed: Raspberry Pi 512K version (or BeagleBone Black) Logitech C920 Webcam 16 GB micro SDHC card (can probably do it on 8GB too) Wireless dongle supported by linux (I’m using a TrendNet TEW-645UB which…

  • Installing Autodesk Entertainment Creation Suite Ultimate (Maya) 2014 for OSX from command line

    After battling this for about a week I think I’ve got it figured out. You can install all the required packages and get everything to talk to your license server from command line. BTW, before I start, you need to have a functional license server otherwise you can stop reading now. I’m gonna use licserver.com…

  • Copying large number of files between two Unix/Linux/OSX Servers

    Here are some quick tip(s) for copying a ton of files between unixy machines really fast. You’re probably thinking “why not use rsync?”…..well rsync can be miserably slow if your source or destination cpu is underpowered. You can always do a rsync after these commands to make 100% certain that everything checks out, but try…

  • Flush DNS cache in Lion and Mountain Lion

    Flush DNS cache in Lion and Mountain Lion: To flush the DNS cache in Mac OS X 10.5 and 10.6, run this command in Terminal:  sudo dscacheutil -flushcache To do the same in 10.7 and 10.8, run this command:  sudo killall -HUP mDNSResponder (Via MacOSXHints.com)

  • CLI commands that let you access meta data of all files in OSX

    Two small commands with huge possibilities: mdls  usage: mdls [-name attr] [-raw [-nullMarker markerString]] [-plist file] pathlist the values of one or all the attributes of the specified file -raw: don’t print attribute names before values -nullMarker: substitute this string for null attributes in raw mode -plist: output attributes in XML format to file. Use…

  • Get Control of Mountain Lion with a huge list of command line tweaks…..

    As pointed out to me in the comments the original Author — Mathias Bynens — is constantly updating this document. You can find the latest up to date version at http://mths.be/osx # ~/.osx — http://mths.be/osx ############################################################################### # General UI/UX # ############################################################################### # Set computer name (as done via System Preferences → Sharing) scutil –set ComputerName…

  • SSH to your remote machine using Back to My Mac iCloud Service

    This is kinda cool. It only works if you have access to “Back to My Mac” service and you have it turned on in the remote mac’s preferences (under iCloud preferences). If you ever need to find out the FQDN (Fully Qualified Domain Name) of your remote mac and connect to it via ssh or…

  • Synology NAS and those pesky @eaDir folders

    If you’ve enabled MediaServer and/or PhotoStation on your Synology NAS you might have noticed a bunch of “@eaDir” folders inside your data folders. You will not normally see this under samba or appletalk connections. I noticed it since I was trying to rsync from synology to a old qnap nas I have lying around. Although…

  • Stream your Windows desktop using ffmpeg

    I’ve already covered how to do this with vlc a while back in parts 1 followed by part 2. I just found out that something very similar in results can be done with ffmpeg. ffmpeg has recently added support for directshow filters which now allows one to capture the screen and stream and/or save it. Here is…