Update adsk aliases
This commit is contained in:
parent
f1baa2feb2
commit
e58102cf1a
3 changed files with 43 additions and 12 deletions
20
.amethyst
20
.amethyst
|
|
@ -11,14 +11,14 @@
|
||||||
"command"
|
"command"
|
||||||
],
|
],
|
||||||
"mod1": [
|
"mod1": [
|
||||||
"control",
|
|
||||||
"option"
|
|
||||||
],
|
|
||||||
"mod2": [
|
|
||||||
"control",
|
|
||||||
"option",
|
"option",
|
||||||
"shift"
|
"shift"
|
||||||
],
|
],
|
||||||
|
"mod2": [
|
||||||
|
"option",
|
||||||
|
"shift",
|
||||||
|
"control"
|
||||||
|
],
|
||||||
"screens": 4,
|
"screens": 4,
|
||||||
"cycle-layout": {
|
"cycle-layout": {
|
||||||
"mod": "mod1",
|
"mod": "mod1",
|
||||||
|
|
@ -98,11 +98,11 @@
|
||||||
},
|
},
|
||||||
"focus-ccw": {
|
"focus-ccw": {
|
||||||
"mod": "mod1",
|
"mod": "mod1",
|
||||||
"key": "j"
|
"key": "k"
|
||||||
},
|
},
|
||||||
"focus-cw": {
|
"focus-cw": {
|
||||||
"mod": "mod1",
|
"mod": "mod1",
|
||||||
"key": "k"
|
"key": "j"
|
||||||
},
|
},
|
||||||
"focus-main": {
|
"focus-main": {
|
||||||
"mod": "mod1",
|
"mod": "mod1",
|
||||||
|
|
@ -118,14 +118,14 @@
|
||||||
},
|
},
|
||||||
"swap-ccw": {
|
"swap-ccw": {
|
||||||
"mod": "mod2",
|
"mod": "mod2",
|
||||||
"key": "j"
|
"key": "k"
|
||||||
},
|
},
|
||||||
"swap-cw": {
|
"swap-cw": {
|
||||||
"mod": "mod2",
|
"mod": "mod2",
|
||||||
"key": "k"
|
"key": "j"
|
||||||
},
|
},
|
||||||
"swap-main": {
|
"swap-main": {
|
||||||
"mod": "mod1",
|
"mod": "mod2",
|
||||||
"key": "enter"
|
"key": "enter"
|
||||||
},
|
},
|
||||||
"throw-space-1": {
|
"throw-space-1": {
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@ alias jr="JAVA_OPTS='--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens ja
|
||||||
alias uzbl="uzbl-browser"
|
alias uzbl="uzbl-browser"
|
||||||
alias hide="SetFile -a V"
|
alias hide="SetFile -a V"
|
||||||
alias show="SetFile -a v"
|
alias show="SetFile -a v"
|
||||||
|
base64url::encode () { base64 -w0 | tr '+/' '-_' | tr -d '='; }
|
||||||
|
base64url::decode () { awk '{ if (length($0) % 4 == 3) print $0"="; else if (length($0) % 4 == 2) print $0"=="; else print $0; }' | tr -- '-_' '+/' | base64 -d; }
|
||||||
alias whyfail="tmux copy-mode && tmux send-keys -X search-backward '--- FAIL'"
|
alias whyfail="tmux copy-mode && tmux send-keys -X search-backward '--- FAIL'"
|
||||||
alias m4b-tool='docker run -it --rm -u $(id -u):$(id -g) -v "$(pwd)":/mnt m4b-tool'
|
alias m4b-tool='docker run -it --rm -u $(id -u):$(id -g) -v "$(pwd)":/mnt m4b-tool'
|
||||||
alias morserunner="docker-wine --as-me --force-owner --sound=default --cache --volume=/home/hunner/Downloads/morserunner:/data --workdir=/data wine MorseRunner.exe"
|
alias morserunner="docker-wine --as-me --force-owner --sound=default --cache --volume=/home/hunner/Downloads/morserunner:/data --workdir=/data wine MorseRunner.exe"
|
||||||
|
|
|
||||||
33
.zshrc
33
.zshrc
|
|
@ -290,13 +290,42 @@ EOF
|
||||||
if [ -d ~/.asdf ] ; then
|
if [ -d ~/.asdf ] ; then
|
||||||
. $HOME/.asdf/asdf.sh
|
. $HOME/.asdf/asdf.sh
|
||||||
fi
|
fi
|
||||||
|
enabledotnet() {
|
||||||
|
if [ -d ~/.dotnet/tools ] ; then
|
||||||
|
# Add .NET Core SDK tools
|
||||||
|
export PATH="$PATH:/Users/haugenh1/.dotnet/tools"
|
||||||
|
. ~/.asdf/plugins/dotnet/set-dotnet-env.zsh
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
export PATH=$(go env GOPATH)/bin:$PATH
|
export PATH=$(go env GOPATH)/bin:$PATH
|
||||||
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
|
|
||||||
getadsktoken() {
|
getstageadsktoken() {
|
||||||
TEMP_TOKEN=$(echo -n ${ADSK_HUNNER_CLI_CLIENT_ID}:${ADSK_HUNNER_CLI_CLIENT_SECRET} | base64)
|
TEMP_TOKEN=$(echo -n ${ADSK_HUNNER_STG_CLI_CLIENT_ID}:${ADSK_HUNNER_STG_CLI_CLIENT_SECRET} | base64)
|
||||||
|
curl -s 'https://developer-stg.api.autodesk.com/authentication/v2/token' \
|
||||||
|
-H 'Content-Type: application/x-www-form-urlencoded' \
|
||||||
|
-H 'Accept: application/json' \
|
||||||
|
-H "Authorization: Basic ${TEMP_TOKEN}" \
|
||||||
|
-d 'grant_type=client_credentials' \
|
||||||
|
-d 'scope=data:read' \
|
||||||
|
| jq -r '.access_token'
|
||||||
|
}
|
||||||
|
|
||||||
|
getdevadsktoken() {
|
||||||
|
TEMP_TOKEN=$(echo -n ${ADSK_HUNNER_DEV_CLI_CLIENT_ID}:${ADSK_HUNNER_DEV_CLI_CLIENT_SECRET} | base64)
|
||||||
|
curl -s 'https://developer-dev.api.autodesk.com/authentication/v2/token' \
|
||||||
|
-H 'Content-Type: application/x-www-form-urlencoded' \
|
||||||
|
-H 'Accept: application/json' \
|
||||||
|
-H "Authorization: Basic ${TEMP_TOKEN}" \
|
||||||
|
-d 'grant_type=client_credentials' \
|
||||||
|
-d 'scope=data:read' \
|
||||||
|
| jq -r '.access_token'
|
||||||
|
}
|
||||||
|
|
||||||
|
getprodadsktoken() {
|
||||||
|
TEMP_TOKEN=$(echo -n ${ADSK_HUNNER_PROD_CLI_CLIENT_ID}:${ADSK_HUNNER_PROD_CLI_CLIENT_SECRET} | base64)
|
||||||
curl -s 'https://developer.api.autodesk.com/authentication/v2/token' \
|
curl -s 'https://developer.api.autodesk.com/authentication/v2/token' \
|
||||||
-H 'Content-Type: application/x-www-form-urlencoded' \
|
-H 'Content-Type: application/x-www-form-urlencoded' \
|
||||||
-H 'Accept: application/json' \
|
-H 'Accept: application/json' \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue