Screen capture an OS X machine and send the images to a web server.
Using the inbuilt screencapture command, quietly capture the screen and cursor (up to three displays) and save them in a temporary folder, named with the current date and time.
Note the postfixes (e.g. _s1) on the filenames to indicate different monitors.
screencapture -x -C -tjpg /var/tmp/sc_$(date +%Y%m%d-%H%M%S)_s1.jpg /var/tmp/sc_$(date +%Y%m%d-%H%M%S)_s2.jpg /var/tmp/sc_$(date +%Y%m%d-%H%M%S)_s3.jpg
For storage and archive purposes; move them into a zip file named for the current date.
zip -m /var/tmp/sc_$(date +%Y%m%d).zip /var/tmp/sc_*.jpg
Alternatively, we can send the file to a web server. Either by PUT or POST methods, the latter being potentially more secure and then parsable by some form of cgi script.
curl --upload-file sc_$(date +%Y%m%d).zip http://your.web.server/upload/sc_$(date +%Y%m%d).zip
POST Method (var ‘upload’)
curl -F upload=@sc_$(date +%Y%m%d).zip http://your.web.server/upload/sc_$(date +%Y%m%d).zip
doge screens, much sneaky, so capture, wow!
Enable Secure Shell access to OS X via the command line (sudo required)
(Thanks to Chealion, Randy Fay and user633466 at superuser.com)
Permissions are controlled via Directory Services. If the record name below is ‘-disabled’ that means ALL USERS have access to SSH. To limit access to specific users, first we rename the record.
dscl . change /Groups/com.apple.access_ssh-disabled RecordName com.apple.access_ssh-disabled com.apple.access_ssh
Then add a user to that record. (Where USERNAME is the shortname of the user to add)
dscl . append /Groups/com.apple.access_ssh GroupMembership USERNAME
dscl . append /Groups/com.apple.access_ssh groupmembers `dscl . read /Users/USERNAME GeneratedUID | cut -d " " -f 2`
Finally, enable the service.
systemsetup -setremotelogin on
..and you should be good to go. :)
Want to free up those megabytes used by Dashboard (that you never use…) disable it!
Drop to terminal and type…
defaults write com.apple.dashboard mcx-disabled -boolean YES
Alternatively if you’d rather have your widgets on the desktop and not have to drop to the Dashboard all the time, follow these steps outlined at OSX Daily…
“If I have seen a little further it is by standing on the shoulders of Giants.” – Isaac Newton
Great are those that strive to reach taller heights, except most just sit and enjoy the view or slide down the spine and get stuck in the arse crack.
Had a bit of fun with Applescript today making stand-alone applications out of script bundles to play audio files.
[Grab the apps here]
And here’s the script (for one of them)…
set audio_file to (path to current application as string) & "Contents:Resources:SqueakyToy.mp3"
do shell script "afplay " & (quoted form of POSIX path of audio_file)
To create the bundle in the first place, start a new applescript and save it as a script bundle, then add the audio file to the resources pane and ensure the colon:delimited:path is reflected correctly in the script.
Because the script references the “current application” it won’t run out of the Apple Script Editor but it should compile okay and run once saved as an Application.
Don’t underestimate Russell Brand. He’s articulate, intelligent and most importantly, compassionate.
This is Mr. Harris. “I’m just a black fella from the desert”. He was wondering what I was doing and had never seen a DSLR camera before. I zoomed in on the moon showed him on the screen. “Do me like the moon!” he says. Happy to oblige, sir.
Some time ago, whislt in Perth CBD taking photos for a friends ‘1500 Skies‘ project, I was stopped by this an Aboriginal man who was curious as to what I was up to, we spoke briefly and it led to me taking a photo of him. Later, I posted the photo on Facebook with a small caption outlining the encounter. Surprisingly it was met with a positive response and i was encouraged to take more images like this.
This last month, I had booked a holiday for a week in Perth, Melbourne, Sydney and Gold Coast (Surfers Paradise) and not being one for typical touristy-type activities… instead of taking photos of places I decide to continue what was started with Mr. Harris and take photos of the people instead.
Inspired by websites like Humans of New York, I decided to blog the people I met – as a means to share my experiences and the people I encounter with other people too. I like to think that even if only vicariously, people reading the blog might connect with the people in the blog. In this oft-too isolated world we create online – it’s a nice vehicle with which we can reconnect with all the other people around us, that make up the society we live in.
Hopefully you’ll enjoy reading it; as much as I enjoy making it.
Experimenting with using vocals and various effects, I’m finally putting the microphone to good use.
Here’s a collection of handy admin tools I’ve come across in my travels.
I’ll add to this post as I find new stuff…
[Win] WinPcap – you’ll need this to any real network level stuff in Windows.
[All] nmap – the staple in network scanning
[All] wireshark – packet capture and analysis
[Win] Capsa (Free) – nice gui analysis/scanner
[OSX] Bonjour Browser – Reveals MDNS and Zeroconf discovery
[OSX] WakeOnLan – Wake PC’s up remotely, but also a handy tool for resolving ARP/MAC addresses.
[Win] Process Monitor – analyze and capture; Process, System and Registry activity
The canola is out in bloom.. lubly