Skip to content

Instantly share code, notes, and snippets.

View elulcao's full-sized avatar
:octocat:
A bug is never just a mistake...

Daniel Carvallo elulcao

:octocat:
A bug is never just a mistake...
View GitHub Profile
@elulcao
elulcao / fixDNS.sh
Last active October 15, 2022 16:58
VPN client over-riding DNS on macOS
#!/usr/bin/env bash
# Create fixDNS password in Keychain Access for login item
PASS=$( security find-generic-password -l "fixDNS" -a fixDNS -w | tr -d '\n' )
# Execute a command with sudo to get a password prompt, next command will be executed with sudo
echo "$PASS" | sudo -S true
# Execute the command with sudo withing the sudo session
echo "$PASS" | sudo -S scutil << EOF
@elulcao
elulcao / brew_packages
Last active December 26, 2022 22:54
Favorite brew packages
# Brewfile
# Install Homebrew packages via `brew bundle --file brew_packages`
brew "azcopy"
brew "azure-cli"
brew "ca-certificates"
brew "cmake"
brew "cmatrix"
brew "commitizen"
brew "cracklib"
@elulcao
elulcao / init.vim
Created October 19, 2022 02:17
neovim init configuration
" vim-bootstrap 2022-08-30 02:14:37
"*****************************************************************************
"" Vim-Plug core
"*****************************************************************************
let vimplug_exists=expand('~/.config/nvim/autoload/plug.vim')
if has('win32')&&!has('win64')
let curl_exists=expand('C:\Windows\Sysnative\curl.exe')