Skip to content

Instantly share code, notes, and snippets.

View priyeshsharma's full-sized avatar

priyeshsharma

View GitHub Profile
@priyeshsharma
priyeshsharma / approve_fingerprint_sudo.sh
Created August 19, 2021 16:19
This script is used to setup the command-line sudo requests to fire up the fingerprint authentication on MBPs which have this feature. This file can be put anywhere in the path.
#!/usr/bin/env bash
# To be able to use the mac touchbar for sudo command auth:
# edit the following file: /etc/pam.d/sudo
# and add the following line after the initial comment line:
# `auth sufficient pam_tid.so`
sudo sed -i '' '2i\
auth sufficient pam_tid.so\
' /etc/pam.d/sudo
@priyeshsharma
priyeshsharma / fresh_install_of_osx.sh
Created August 19, 2021 16:16 — forked from vraravam/fresh-install-of-osx.sh
Steps to get "up and running" with new Mac OSX
#!/usr/bin/env bash
# file location: <anywhere>
# NOTE:
# 1) THOUGH THIS FILE WAS STARTED AS AN AUTOMATABLE SCRIPT, AT A CERTAIN POINT, IT WILL STOP/EXIT. IF YOU WISH TO CONTINUE BEYOND THAT STAGE, YOU WILL HAVE TO RUN THE REMAINING STEPS MANUALLY. YMMV
# 2) THERE ARE SOME PLACES WHERE IT REFERS TO MY PERSONAL GITHUB/GITLAB REPOS - YOU WILL HAVE TO CREATE YOUR OWN FOR THOSE STAGES
##################################
# Install command line dev tools #
@priyeshsharma
priyeshsharma / osx_defaults.sh
Created August 19, 2021 16:15
OSX Defaults to setup a brand new machine
#!/usr/bin/env bash
# TODO: Need to figure out the settings for the following:
# 1) Dock: Items with order (not capturing binary data - since that is dependent on installed apps)
# 2) Security & Privacy Preferences: Full Disk Access, Camera, Microphone
# 3) Login items for my user (i.e. apps started when I login)
# 4) Retina displays scaling
# 5) Finder sidebar with order
##