Skip to content

Instantly share code, notes, and snippets.

@TGIFelix
TGIFelix / settings.json
Created August 11, 2022 13:17
vscode_old
{
"workbench.startupEditor": "none",
"workbench.colorTheme": "Dracula",
"editor.fontFamily": "Fira Code",
// "editor.fontFamily": "JetBrains Mono",
"editor.fontWeight": "400",
"editor.fontLigatures": true,
"editor.useTabStops": true,
"editor.wordWrap": "on",
"editor.defaultFormatter": "esbenp.prettier-vscode",
@TGIFelix
TGIFelix / install-xcode.sh
Last active April 4, 2021 11:29
Check if `xcode-select` is installed
#
# Check if Xcode Command Line Tools are installed
# Usage: curl -sLf https://gist.githubusercontent.com/TGIFelix/f0d09b869566984e1fca6456155580a5/raw/287f691013e2ccb9c66988eb894b4b941e6d4df5/install-xcode.sh | bash
#
which -s xcode-select
if [[ $? != 0 ]] ; then
echo "Installing Xcode Command Line Tools"
# Install Xcode Command Line Tools
xcode-select --install
else
@TGIFelix
TGIFelix / index.html
Created March 23, 2021 14:43
emoji favicon
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎯</text></svg>">
@TGIFelix
TGIFelix / ps3.sh
Created February 5, 2021 11:12
ps3
PS3='➡ '
options=("opt1" "opt2" "opt3")
select opt in "${options[@]}"
do
case $opt in
"opt1")
;;
"opt2")