OSX find and display saved wifi password

https://www.mactip.net/how-to-find-a-saved-wi-fi-password-on-the-mac/

If you are like me once you entered a Wi-fi password, literally 2 seconds after it's forgotten, so what happens when your colleague asks you for the password? Well it turns out it's quite easy to accomplish on OSX (as long as you have an administrator account, below you will find the required steps

1. Open the keychain app (you can find it in the utilities folder or find it using spotlight)
2. Select the "System" icon on the sidebar
3. Double click on the Wi-fi network that you are interested in and then click on the "Show password" checkbox
4. You will now be prompted to enter an admin username/password
5. Once you entered a valid username/password you will be able to see the password for the Wi-fi network

Top 5 small java libraries for projects (functional, date, etc.)

For some time now most of my Java projects revolve around the Spring Boot Stack which contains pretty much everything you can need, however there's a list of small libraries and utilities that I love to use in my projects

Below is my top 5 small libraries I use in my projects

  • TotallyLazy : enhances the functional standard library with some syntaxic sugar
  • Lombok : because who wants to write setters/getters manually
  • JodaTime Yes, yes I know I should use now the new java API but I still like Joda best!
  • jOOλ : More functional sweetness
  • Apache Commons : Multi-purpose library

The above are my way-to-go small libraries for my projects, of course there are some specific libraries for a given case Jackson JSON or Caffeine Cache

Docker copy images between hosts

Copying docker images (import/export) between hosts

Sometimes it's useful to export a local docker image to another host without going through a repository

docker save -o [path for generated tar file] [image name]

For example :

docker save -o mycool-container.tar ufasoli/mycool-container:1.0

You will then need to copy the saved .tar image to the target host by however mean suits you (FTP, USB, SCP)

Once the image copied to the target host import the image to the local docker

docker load -i [path to image tar file]

Like so :

docker load -i mycool-container.tar

Depending on the size of the image this can be a long operation, but once it's finished you should be able to see your image with the usual docker images command