fokispiritual.blogg.se

Osascript commands for geektool 3.3.1
Osascript commands for geektool 3.3.1








osascript commands for geektool 3.3.1
  1. Osascript commands for geektool 3.3.1 how to#
  2. Osascript commands for geektool 3.3.1 install#
  3. Osascript commands for geektool 3.3.1 portable#

Specify an appropriate refresh interval, in seconds, if the URL points to webcam stills. Within GeekTool drag an “image” object onto the desktop and paste either a URL that points to an image or selects a local image. Devices connected to a Wi-Fi access point are also a local or internal IP address.

osascript commands for geektool 3.3.1

Status Updates (stand-up) » 08:00 - 08:30Įach device connected to the Internet - your laptop, your smartphone - acquire a worldwide unique identifier your external IP address.Shows my appointments and times in a most compact, easy-to-read fashion. The command /usr/local/bin/icalBuddy -sd -ss " " -includeCals "Calendar" -excludeEventProps "notes,url,location,attendees" -npn -formatOutput -noCalendarNames -propertySeparators "/ » /" -timeFormat "%H:%M" -dateFormat "%A %m/%e" eventsToday+10 | sed -e 's/day 0/day /g' ICalBuddy displays the contents of your Apple Calendar database with a remarkable range of formatting options. UTC is really useful when you’ve got people or computers around the world and you want a common time as a reference.ĭisplaying UTC in 24-hour format: date -u +"%R" Note that it’s not a timezone, like GMT (Greenwich Mean Time), but rather a term referring to mean solar time at the Royal Observatory, Greenwich, England. UTC – Universal Coordinated Time – is the shared abstract time reference that came into being with atomic clocks. Note that on a multi-core computer the percentage can be over 100%. Under macOS, the command I use to see a one-time list of the top CPU consumers and the percentage each uses, sorted with hungry apps above, is: ps -racwwwxo "command %cpu" | head -20 Top CPU usage, as simple as possible, sorted To get the next or past month(s), use something like: cal `date -v +1m "+%m %Y"` Generates a one-month calendar block with the current day highlighted, if your terminal supports that sort of thing. Monthly calendar blocks cal_head=`cal | head -1` cal_tail=`cal | tail -7` today=`date "+%e"` echo "$cal_head" echo "$" Want to see how long since your last reboot, your “up time”, in an easy-to-read natural language style, like 2 days 16 hours 38 minutes? The following very long command does the trick: uptime | cut -d ' ' -f 4- | rev | cut -d ' ' -f 8- | rev | sed -e 's/,$//' -e 's/:/ hours /' -e 's/\($\)/\1 minutes/' -e 's/,/ /g' For the computer I was using at the time, at about seven swapfiles things started swapping, paging, and hanging, so I kept track of their count and rebooted before I revisited that bad place. There was a time when macOS did a bad job of cleaning up swap files.

Osascript commands for geektool 3.3.1 install#

This required a bit more than a stock macOS get GNU date with brew install coreutils (and if you didn’t know about the homebrew package manager, now’s the perfect time to learn).

Osascript commands for geektool 3.3.1 how to#

How to calculate – on one line – the number of days that have passed since a particular date? The stock macOS date can’t do it echo \( `/usr/local/bin/gdate +%s -date=today` - `/usr/local/bin/gdate +%s -date=` \) / 86400 | bc If you display multiple timezones you’ll quickly come to realize that the minutes portion of the time is the same across most timezones, so what I actually use is TZ=America/Los_Angeles date +"PST %H" TZ=America/New_York date +"EST %H" TZ=Asia/Dubai date +"Dubai %H" TZ=Asia/Kolkata date +"Kolkata %H:%M" TZ=Asia/Jakarta date +"Jakarta %H" TZ=Asia/Shanghai date +"Chengdu %H" So when you pick up your laptop and travel through a bunch of timezones (and your local time changes) the hardcoded offset doesn’t steer you wrong. TZ=":Asia/Calcutta" date +"India %a %H:%M"

osascript commands for geektool 3.3.1

Osascript commands for geektool 3.3.1 portable#

So I hardcoded the offset values: date -j -v+12H -v+30M +"India %a %H:%M"Ī better, proper, portable way is to specify the actual timezone in which you’re interested. Time elsewhereĬoworkers in India – how to keep track of their day and night? They’re 12.5 hours ahead of where I lived (in California). Note please there’s a significant difference between a straight quote ' and a back-quote (or back-tick) `. Specify an appropriate refresh interval, in seconds. Within GeekTool drag a “shell” object onto the desktop and paste the UNIX command line into the “command” field. GeekTool is a fabulously easy way of displaying images from the web and the output of UNIX commands on your Mac’s desktop.










Osascript commands for geektool 3.3.1