“fast charge” Siri Shortcut

Rey Ian Cabanganan shared a handy Siri Shortcut over of the Siri Shortcuts Facebook group which does a good job of optimizing your phone for “fast charging”. Now, obviously, none of the charging technologies is changed using this shortcut. It simply switches off all of the battery intensive functionality on your device. What’s more, to save you the effort of having to switch all the services back on, it will prompt you in 30-minute intervals, so once your battery has reached the required percentage it will switch them all back on again.

Ian appreciates his device knowing who is boss and has added voice acknowledgement of his status. I’ve removed those sections, the rest I’ve left in place.

You can download it from here

Read More

OpenPGP Encrypt Folder Action

Automate file encryption

On my MacBook I use the GPG Suite in order to keep my sensitive data secure, including data which I upload to the cloud. Encrypting files is something I do frequently, so I put together a small automator folder action to automatically encrypt files dropped into a specific folder.

For this to work, you’ll need the GPG Suite installed, with a private key setup. You’ll also need to adjust the ‘–recipient’ option in the bash code listed below.

Once the file has been encrypted it deletes the unencrypted copy, so be sure to keep your key safe.

 

Read More

Siri Shortcut Favorites

For sometime now I have been a big fan of the Apple Workflow app, which Apple acquired 2 years ago. So needless to say, I was very excited when I learnt about their intention to bundle the Shortcuts app with iOS 12 back in July. As a veteran applications developer, I like automating things where possible and the Siri Shortcuts app enables just that. With the benefits of it being ‘cross-device’ and also actionable via voice from the HomePod.

The app is amazingly powerful, with third parties updating their apps all the time to support the new hooks.

The social media platforms are awash with Shortcut examples, the best of which I’ve found so far are attached to a conversation on Redit by user Varoeldurr;

It’s not as large as it used to be mainly because I had to delete a lot of them to reduce clutter.

Some of them are self-explanatory, but a few are personalized so they might not make sense to you. I’ll try to explain. It’ll take forever to share each one so let me know if you find one interesting and I’ll share later tonight before I sleep.

From left to right

Music:

  • Say you shuffle your music, you land on a song you love and you want to play the whole album. This will do it. LINK
  • Shuffle a playlist of favorite songs (~3000) LINK
  • Sometimes I listen to an album of an artist I just discovered, so I like it and I want to know where to go next. This will take you to an aggregator that ranks the artist’s top albums. LINK
  • Tweet a song you’re listening to with an album artwork and a YouTube link of your choice (it’ll take you to YT app and you copy a link then it’ll take you back). LINK
  • Shuffle all songs LINK
  • Shuffle albums (you play a random album in full then move to the next random album). LINK
  • Play one song of your choice and then shuffle all songs. LINK
  • Get artwork of your current song LINK
  • Add current album to your favorite playlist (same playlist mentioned above) LINK
  • Similar to the one above except here it asks you for input which should be an artist name LINK
  • Search lyrics of current song LINK. Better shortcut

Keyboard shortcuts:

  • Presents some codes (¯_(ツ)_/¯ etc) LINK
  • Lets you type a setup and a punchline then copies the text to your clipboard LINK
  • Type an emoji and it’ll name it LINK
  • Get a wall of text from your clipboard, find a word and replace with another. LINK

Camera roll:

  • Create a grid from camera roll LINK
  • Combine Screenshots LINK
  • Upload to imgur and copy link to clipboard LINK
  • Save video from Safari LINK
  • Convert video to GIF LINK
  • Select multiple screenshots and delete them LINK

Web:

  • Open a Reddit link in Apollo LINK
  • Same for Tweetbot LINK
  • Download YouTube LINK
  • Download videos from major social networks LINK Updated shortcut
  • Download a file LINK
  • Shorten URL LINK
  • Want to read a NY times or WashPost article and get hit with a paywall? This will take you to an add free webpage of the whole article LINK
  • Show a graph of an Amazon product from CamelCamelCamel LINK

Utilities:

  • Kidnapped and want to ask for help but don’t know SOS? Well, this can save you by sending the signal using flashlight LINK
  • Flip a coin LINK
  • Control center DND has improved but not dramatically. Sometimes you want to turn it on and disable at a certain time. This allows you to do that. LINK

Random:

  • Calculate how many days between two dates LINK
  • Calculate Tip LINK
  • Speak body of article LINK

Edit: Just updated my comment with links. And yes, I used a shortcut to automate part of the process:)

I did want to embed the thread into the page, however – reddit has other ideas..

Read More

FIX: Operation not permitted as root in OS X Terminal

Switch OffWhen running commands in El Capitan OS X terminal, even as root  you may be greated with a rather unhelpful error message of ‘Operation not permitted’. In fact, this isn’t an error message at all – it’s part of an OS X El Capitan feature called System Integrity Protection.

The following is a description from the Apple website:

System Integrity Protection is a security technology in OS X El Capitan that’s designed to help prevent potentially malicious software from modifying protected files and folders on your Mac.

In OS X, the “root” user account previously had no permission restrictions and could access any system folder or application on your Mac. Software gained root-level access when you entered your administrator name and password to install it and could then modify or overwrite any system file or application.

System Integrity Protection restricts the root account and limits the actions that the root user can perform on protected parts of OS X.

Read more

 In order to switch off the System Integrity Protection, you firstly need to boot your Mac from the built in recovery partition, to do this follow the steps below;
  1. Power off your Mac
  2. Press and hold CMD + R on your Mac keyboard
  3. From the Utilities menu, select Terminal
  4. Copy and paste or type in the following:

    csrutil disable
    reboot

Once El Capitan has finished booting back up, you should be able to perform your advanced file manipulation without any more operation not permitted messages.

It is worth bearing in mind, if you leave this switched off you’re leaving your Mac vunerable to accidental or malicious system level file changes, which could result in it needing a complete reinstall or worse. So unless you are a confident advanced user, it would be worth repeating the steps above but replacing disable with enable.

Read More

Watch BBC iPlayer in Safari without installing Flash Player

Last week, due to the demands of a busy Sky Planner, I wanted to watch a programme on BBC1 at the same time as two other channels were recording. My preference being that I wanted the output on a larger screen rather than an iPad therefore I setup my MacBook upstairs, plugged in the TV and navigated to the BBC iPlayer page, only to encounter the problem that I do not have Flash Player installed.

noflash

Since I have only recently started on a clean OSX installation again, I have been trying my very best to avoid installing third party software like Flash. It was looking like I would be left with no choice until I stumbled across the following workaround:

  1. The first step is to enable the Develop menu in Safari (if you already have this enabled, just proceed to step 3). Start by opening the Safari preferences, finding this in the Safari menu in top left hand corner
    prefmenu
  2. Select the ‘Advanced’ tab and set the ‘Show develop menu in menu bar’ option to active
    safariadvpref
  3. Whilst on the BBC iPlayer page (which should still be demanding that Flash Player is installed), open the Develop menu then from the User Agent option, select any of the ‘Safari – iOS…’ options. It will be set to Default as standard however I generally choose the iPad option
    developmenu
  4. You should now find that the iPlayer is happy to allow you to view the content using the HTML5 framework
    playiplayer

This is because the BBC has only released the HTML5 version of iPlayer to tablets at present. By following the above steps, you are simulating your browser as a tablet which is why the functionality is enabled.

Credit goes to the original source Unop for this suggestion.

Read More