Skip to content

Instantly share code, notes, and snippets.

View joan-s-molas's full-sized avatar

joan joan-s-molas

  • London, United Kingdom
  • 06:31 (UTC +01:00)
View GitHub Profile
@joan-s-molas
joan-s-molas / gist:8839f247fcac2249dfc4186cf7d25801
Created September 25, 2023 12:28
Upgrading Bash on macOS

One thing that many macOS users don’t know is that they are using a completely outdated version of the Bash shell. However, it is highly recommended to use a newer version of Bash on macOS, because it enables you to use useful new features. This article explains how to do this.

Default Bash Version on macOS

To see how outdated the Bash version included in macOS is, execute the following command

$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Copyright (C) 2007 Free Software Foundation, Inc.

Keybase proof

I hereby claim:

  • I am joan-s-molas on github.
  • I am noopdles (https://keybase.io/noopdles) on keybase.
  • I have a public key ASD0zefWjCSw03yBV0EqMPq5k3EJXERxkAAF3nopvhZjbQo

To claim this, I am signing this object:

@joan-s-molas
joan-s-molas / main.py
Created April 27, 2020 15:26
Camera control example
#Quick solution to control the settings of the Microsoft LiveCam through the v412-ctl package available on Linux.
#Author: Christian Dorfer (dorfer@phys.ethz.ch)
"""
Requirements:
- pip install sh
- pip install pyqt5 (needs Qt5 backend on system)
- v4l-utils: Use your package manger of choice (e.g. apt-get install v4l-utils)
Usage: