Skip to content

Instantly share code, notes, and snippets.

View Elangovan96's full-sized avatar

Elangovan Elangovan96

View GitHub Profile
@Elangovan96
Elangovan96 / Brewfile
Last active March 4, 2024 04:07
~/Brewfile
# file location: ~/Brewfile
# This file is used along with the `brew bundle` command to ensure that required packages and apps are installed.
# Also can be used to ensure that any package/apps that were installed as experimentation are uninstalled from the system.
# If you are starting such a file on a machine where you have already installed some apps using brew, then use `brew bundle dump` to create this file and avoid starting from scratch
# If you have also installed some vscode plugins already (manually), then you can use the following command to export that list:
# code --list-extensions
# For a more detailed explanation of the philosophy/reasoning behind this file, please see https://openfolder.sh/macos-migrations-with-brewfile
@Elangovan96
Elangovan96 / .gitconfig
Last active January 3, 2024 10:40
Git configuration file (~/.gitconfig)
# file location: ~/.gitconfig
# Note:
# [Windows users] If you are on windows, please search for the word 'windows' - and fix those lines - they seem to cause some trouble
# [General] Since some of the settings are specific to my setup (ie presence of fles), I have marked those lines with comments 'Personal' - you can go ahead and change those to your equivalents or delete them altogether
# [General] Since I use 'diff-so-fancy' as the diffing tool, it's absence on your system will cause some errors. If you are able to, I would sincerely urge you to install and use it for a much better experience. If not, please replace all such occurrences back to use 'diff'
# Note: Even though this will show up twice in `git config -l` - it will still be overridden based on the order of the includeIf lines below
[includeIf "gitdir/i:~/"] # Personal
path = ~/.gitconfig-oss.inc # Personal
@Elangovan96
Elangovan96 / fresh-install-of-osx.sh
Last active March 4, 2024 04:06 — forked from vraravam/fresh-install-of-osx.sh
Steps to get "up and running" with new Mac OSX
#!/usr/bin/env bash
# This script can be used to setup a macos machine based on Vijay's configurations. As of now, this script is idempotent and will restore your local setup to the same state if run multiple times.
# If you have the same files already present, it will prompt you whether to override or not
# file location: <anywhere> (just need to invoke it from that location)
# You can run this script using this command:
# curl -L https://gist.github.com/Elangovan96/33a07f16d2ecae314d22fbbd6de129c2/raw -o fresh-install.sh; chmod +x ./fresh-install.sh; ./fresh-install.sh
USERNAME=${USERNAME:-$(whoami)}