MacOS

LocalSend - Share files between local devices

Sometimes you need to move files between devices, and it’s often been quite a hassle to just being able to get a file from a Windows machine to an iPad or from Linux to a Mac laptop.

My most common case has often been to move files between MacOS and Android - and while Wifi File Explorer Pro has worked, it’s always seemed a little clumsy. It basically create a webserver on the Android device with a simple but quite usable interface.

Transcoding for local streaming

My home network has a local streaming service based on a local Plex server. It has a few videos wwhich came in odd formats, and where for practical purposes it would be nice to have everything in the same format.

This is my way of transcoding everything to the same format before adding it to the Plex server.

This little script will take all files in the the same directory as the script (given the 4 extentions) and encoding all to Xvid format. The Xvid format is my current prefered format balancing size and quality - and allow for Chromecasting. It may change to a H265 format once all the oldest Chromecast devices are updated and all can handle H265.

Using Bruno with 1Password

Bruno is an open source alternative to tools like Postman or Insomnia. Both are nice, but they also seem to becoming more complicated than I really need, so I’ve been looking for something else.

Initially I didn’t have more complicated needs than wanting a tool to tinker and play with simple REST APIs, so I looked around and found Bruno.

As many APIs require some authentication, you often need to manage credentials, tokens or other sensitive data which shouldn’t be in your git repo, and luckily Bruno has a nice way it can be used with 1Password which is my password manager of choice.

Show wifi password in clear

Got access to a wifi network, but forgot the password? No a problem. At least not if you have a windows, Mac or Linux machine with access. All these OSes can basically without restrictions show you the wifi password in clear text.

Windows

Once you have access to the wifi network. Open the commandline and enter the following command replacing “SSID” with the actual name of the wifi network you want to retrive the password to.

netsh wlan show profile name=SSID key=clear

Automatic MacOS shutdown

From time to time my Mac is doing stuff which takes quite awhile. Converting images, converting videofiles between formats or other stuff, which may take a long time (but reasonable predictable).

In those cases I run a little command in the terminal, to automatically shut down the Mac upon completion:

sudo shutdown -h +120

This command sets a timer which shutdown the machine after two hours (the 120 parameters being after 120 minutes).