Skip to content

Instantly share code, notes, and snippets.

View seyhani's full-sized avatar
😎
Free!

Amir Seyhani seyhani

😎
Free!
View GitHub Profile
@seyhani
seyhani / sudo-touchid.md
Created March 23, 2023 16:00
Use Touch ID for sudo in mac terminal

Enable Touch ID for sudo

sudo vim /etc/pam.d/sudo

Add the following line at the beginning:

auth       sufficient     pam_tid.so
@seyhani
seyhani / install-docker.sh
Created January 15, 2021 16:05
Install Docker + Compose
#!/bin/sh
sudo apt update -y
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt -y update
apt-cache policy docker-ce
sudo apt install -y docker-ce
sudo curl -L https://github.com/docker/compose/releases/download/1.27.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose