This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// getNextRune returns the next rune in the alphabet | |
func getNextRune(ch rune) rune { | |
return (ch+1-'a')%('z'-'a'+1) + 'a' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
// BinaryNode is the placeholder for a number | |
type BinaryNode[T NumberType] struct { | |
value T | |
left *BinaryNode[T] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = | |
name = | |
signingkey = | |
[core] | |
isWork = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vi | |
*~ | |
# Mac | |
**.DS_Store | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = elulcao@icloud.com | |
name = elulcao | |
signingkey = | |
[core] | |
excludesfile = ~/.gitignore_global | |
editor = vim | |
precomposeunicode = true | |
ignorecase = true | |
logallrefupdates = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# elulcao | |
# Beware! This file is rewritten by htop when settings are changed in the interface. | |
# The parser is also very primitive, and not human-friendly. | |
# vim ~/.config/htop/htoprc | |
fields=50 0 48 17 18 38 39 40 2 46 47 49 1 | |
sort_key=111 | |
sort_direction=1 | |
hide_threads=1 | |
hide_kernel_threads=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# elulcao | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
setopt INC_APPEND_HISTORY_TIME # separate concurrent histories across shells until session closes | |
setopt EXTENDED_HISTORY # save each command’s beginning timestamp | |
setopt HIST_EXPIRE_DUPS_FIRST # the oldest history event that has a duplicate to be lost before losing a unique event from the lis | |
setopt HIST_IGNORE_DUPS # do not enter command lines into the history list if they are duplicates of the previous event | |
setopt HIST_IGNORE_ALL_DUPS # the older command is removed from the list |
NewerOlder