This file contains hidden or 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
| #!/bin/sh | |
| # install protoc v3.19.3ls | |
| brew install protobuf | |
| go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | |
| go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | |
| go install github.com/gogo/protobuf/protoc-gen-gogoslick@latest |
This file contains hidden or 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
| alias \ | |
| kps='kill $(ps -f |grep -v -E "(zsh|PID|ps)"|awk "{ print \$2}")' \ | |
| dc=docker-compose \ | |
| g-='git checkout -' \ | |
| gm='git checkout master' |
This file contains hidden or 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
| { | |
| "context create": { | |
| "prefix": "ctx", | |
| "description": "create a background context", | |
| "body": [ | |
| "ctx := context.${1:Background}()" | |
| ] | |
| }, | |
| "anonymous defer function": { | |
| "prefix": "dfc", |
This file contains hidden or 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 confutil | |
| import ( | |
| "testing" | |
| "github.com/stretchr/testify/suite" | |
| ) | |
| type TestMe struct { | |
| suite.Suite |
This file contains hidden or 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
| # for the docker image debian:bullseye | |
| ZHOME="${ZDOTDIR:-$HOME}/.zprezto" | |
| # sudo apt-get install git software-properties-common | |
| if [ ! -d "${ZHOME}" ]; then | |
| git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZHOME}" | |
| git clone https://github.com/zdharma/fast-syntax-highlighting "${ZHOME}/modules/fast-syntax-highlighting" | |
This file contains hidden or 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
| env | sort | sed 's/\x1B[@A-Z\\\]^_]\|\x1B\[[0-9:;<=>?]*[-!"#$%&'"'"'()*+,.\/]*[][\\@A-Z^_`a-z{|}~]//g' >! /tmp/norm.env |
This file contains hidden or 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
| // This file was initially generated by Windows Terminal 1.0.1401.0 | |
| // It should still be usable in newer versions, but newer versions might have additional | |
| // settings, help text, or changes that you will not see unless you clear this file | |
| // and let us generate a new one for you. | |
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}", | |
| // You can add more global application settings here. |
This file contains hidden or 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
| # install bash-it | |
| git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it | |
| ~/.bash_it/install.sh | |
| # change theme to clean for bash-it | |
| # install fzf | |
| git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
| ~/.fzf/install |
This file contains hidden or 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
| Host autoxdl | |
| HostName a.b.c.d | |
| User USER | |
| ProxyCommand /usr/bin/nc -X 5 -x 127.0.0.1:1086 %h %p |
This file contains hidden or 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
| sudo apt-get install xfsprogs | |
| sudo mkfs.xfs /dev/vdb | |
| sudo mkfs.xfs /dev/vdc | |
| sudo mkdir /data /backup | |
| sudo mount -t xfs /dev/vdb /data | |
| sudo mount -t xfs /dev/vdc /backup |