git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
echo alias gl=\'git log --pretty=oneline\' >> ~/.bashrc
echo alias gs=\'git status\' >> ~/.bashrc
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
# go mod init crud-crd-example | |
module crud-crd-example | |
go 1.15 | |
require ( | |
github.com/imdario/mergo v0.3.11 // indirect | |
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect | |
k8s.io/apimachinery v0.17.2 |
if you only need email and password fields in sign up and sign in page and you want to customize labals .....
<AmplifyAuthenticator>
<AmplifySignIn
headerText="Custom form"
formFields={[
{
type: 'username',
aws ec2 describe-regions --output table
for region in `aws ec2 describe-regions --output text | cut -f4`
do
echo -e "\nListing Instances in region:'$region'..."
aws ec2 describe-instances --region $region | jq '.Reservations[] | ( .Instances[] | {state: .State.Name, name: .KeyName, type: .InstanceType, key: .KeyName})'
done
npm set registry https://registry.npm.taobao.org && \
npm set disturl https://npm.taobao.org/dist && \
npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass && \
npm set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents && \
npm set electron_mirror https://npm.taobao.org/mirrors/electron/ && \
npm set puppeteer_download_host https://storage.googleapis.com.cnpmjs.org && \
npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver && \
npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver && \
npm set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs && \
httpbin, whoami, qotm (quote of the moment) 服务特别适合用来作为测试
kubectl create namespace httpbin
kubectl create deploy httpbin --image=citizenstig/httpbin --port=8000 -n httpbin
kubectl expose deployment httpbin --name=httpbin -n httpbin --port=80 --target-port=8000
kubectl create ns whoami
kubectl create deploy whoami --image=containous/whoami --port=80 -n whoami --replicas=3
kubectl expose deployment whoami --name=whoami -n whoami --port=80 --target-port=80
- On local make an RSA key if you haven't already (
ssh-keygen
) - Copy that key into .ssh/authorized_keys on the first (i.e. bastion) server (
ssh-copy-id [email protected]
) 2b. Test that you canssh [email protected]
and connect without password ssh to bastion.server
and create an RSA key on bastion.server if you haven't already (ssh-keygen
)ssh-copy-id
to the server you want to access (what I am calling real.server) 4b. test that you can ssh from bastion.server to real.server without entering a password
rsync -e "ssh [email protected] ssh" [email protected]:/path/to/file /path/to/local/dest
kubectl apply -f https://github.com/infrabricks/kubernetes-standalone/raw/master/examples/alpine.yml
kubectl apply -f https://github.com/infrabricks/kubernetes-standalone/raw/master/examples/busybox.yml
then
kubectl exec -ti alpine -- nslookup/ping/curl/sh