/[pattern]
search forward for pattern?[pattern]
search backward for patternn
repeat search forwardN
repeat search backward*
search for word currently under cursorg*
search for word partially under cursor[I
show lines with matching word under cursor%s/background/&-color/g
find and replace background with background-color.&
inserts the matched pattern%s/\(foo\)bar/\1baz/g
find and replace foobar with foobaz.\1
uses the captured groupfoo
from the\(\)
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
function __fish_okta_complete_profiles | |
cat ~/.aws/config | grep -e "\[[^(okta)]" | awk -F'[] []' '{print $3}' | |
end | |
function __fish_complete_okta_subcommand | |
set -l tokens (commandline -opc) (commandline -ct) | |
set -l index (contains -i -- -- (commandline -opc)) | |
set -e tokens[1..$index] | |
complete -C"$tokens" | |
end |
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
function __fish_okta_complete_profiles | |
cat ~/.aws/config | grep -e "\[[^(okta)]" | awk -F'[] []' '{print $3}' | |
end | |
set -l okta_commands add exec help login version | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a add -d 'add your okta credentials' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a exec -d 'exec will run the command specified with aws credentials set in the environment' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a help -d 'help about any command' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a login -d 'login will authenticate you through okta and allow you to access your AWS environment through a browser' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a version -d 'print version' |
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
function __fish_okta_complete_profiles | |
cat ~/.aws/config | grep -e "\[[^(okta)]" | awk -F'[] []' '{print $3}' | |
end | |
set -l okta_commands add exec help login version | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a add -d 'add your okta credentials' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a exec -d 'exec will run the command specified with aws credentials set in the environment' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a help -d 'help about any command' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a login -d 'login will authenticate you through okta and allow you to access your AWS environment through a browser' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a version -d 'print version' |
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
set -l okta_commands add exec help login version | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a add -d 'add your okta credentials' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a exec -d 'exec will run the command specified with aws credentials set in the environment' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a help -d 'help about any command' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a login -d 'login will authenticate you through okta and allow you to access your AWS environment through a browser' | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a version -d 'print version' |
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
set -l okta_commands add exec help login version | |
complete -f -c aws-okta -n "not __fish_seen_subcommand_from $okta_commands" -a $okta_commands |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDqH04YiXze0cyRGsMDhYwSAEijcRz++36X7UuhEFclR/Y3umYGtYS5Wo1cUM58S3PFt5hogYA1PTVOkLaPYiislT8ntXp+wbaYuvfJ20XzvJzSydjHZGoWrTcjc0yJypSP5h4hFutjVKkkCy1OOP8/8sMF4G2DNow0NpfWAoyJEP4cFynOLvlexSWGVqYL2w3YtHxPyGmj/X3ToLcHzNgt2gHsvV+eSMIWU4sN+BIrEh/7ALKXT8aCGlnqhayxOhhmFvOmMV226/T6WpZEk7WeIIMTTMIcy6kmNQMzf6wEJkC98xuEZOJ8qp4AeJRFGxB/5zLlpZSmblaHmSzvo2/YoZgo0PyIh21FhIDNdhy2vwgXeVa1MFNvOoz/bMIilU1S6O3VmHuNyF2d3JM/qWhsKLl2bLzQFDFSVUZnXQjis7CMGOss6D2/fYoKRFMjsvy0gMzo0yVSRKz2h33TW9raYblB19N9BBz0M37YdQdvBoZy7asW3SX1zXNWtdMd4VAxteszSAHdJ9p6CceY04NGhNyXmHwUMLgEsQ2qC3hnoPGkEug/gZtCubfhSqBQGXAv9xgOA4H2F/webzYWwznZQnfLkmbdRWGTimtVkqXufjOiLFeLmHbzgj1DYjwRewaza6jT+HDcoiePSGHwG4Hz9wBi98Twz3H5uXI2gl3LfQ== fabioantuness@gmail.com |
I hereby claim:
- I am fabioantunes on github.
- I am fabioantunes (https://keybase.io/fabioantunes) on keybase.
- I have a public key ASDeBx8hIL-8a0CHu8aEKypUzXjfmHNvg9V7o3kTaaGGjwo
To claim this, I am signing this object:
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
let realm = new Realm(); | |
let outerGlobal = window; | |
let innerGlobal = realm.global; | |
let f = realm.evalScript("(function() { return 17 })"); | |
f() === 17 // true | |
Reflect.getPrototypeOf(f) === outerGlobal.Function.prototype // false |
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
let addOne | |
function add(x, y) { return x + y } | |
addOne = add.bind(null, 1) | |
addOne = x => add(1, x) | |
// new syntax | |
addOne = add(1, ?) |
NewerOlder