Skip to content

Instantly share code, notes, and snippets.

View vxst's full-sized avatar

Jyn Spring 琴春 vxst

View GitHub Profile
-----BEGIN PGP MESSAGE-----
hQIMAzeRyNEWmxcRAQ/9E6ZYshSAvR5zkhKBKwFC1c5bGh3Ueken5D1STaL3MsP+
iHc3XnPUaH8GZrxNEK89We/+YrKkPCb8G7iSvchj8SxcyDVIERLaM+kO6dcZQbwB
5Y0Ho2YxPEZtMk+nit79ctrq4zRQE72JFcFSReTosAJRZuSU/webNIyQc//RzWrN
0EohvvdyQGpiYID4bzzkdxOTnnYoZvtrTcnpbYNpVFgkDXNt+8xDqXDiT2rKqJYb
UXYzP+q4cYY4Af13LaGgBKkIpsSRHBCNXeCvtjcDyxo3M50AcN8Yoer9hcefbGU2
uRyuERC+0/F0wpG2leSagmGVQ57PGZYHr/Br+56Ni5TtWGUio/TdbStg1vkQSFe6
duDS+tb9xNK0sj+d+BMg9OphfW7ig6B/5xLfmSaLy7zD7Uz139m3JnVFCKezh3bg
l8/wFGYBjAAxxWKQsnea4g1KtszFpoGUr5GN/b9Eg93SSJz07TQzAHw/qxW0S2iE
@vxst
vxst / auto_renew_iam_regcred.yml
Created April 14, 2021 05:26
Auto renew AWS ECR regcred using IAM access key
# Create a secret in the target namespace:
# aws-regcred-iam:
# account-id: string, your account id, like 1231XXXXXXXX
# access-key-id: string, your aws access key id
# access-key: string, your aws access key
#. region: string, the region of the ECR repo, like ap-northeast-1
# Apply this YAML to your target namespace, trigger it.
# The regcred is saved to aws-regcred secret in the target namespace.
kind: Role
@vxst
vxst / keybase.md
Last active August 20, 2022 17:40

Keybase proof

I hereby claim:

  • I am vxst on github.
  • I am chunqing (https://keybase.io/chunqing) on keybase.
  • I have a public key ASDMTBkV7MFSgaLHwEdYddNA7XplNTmgT6tsByVRH7YaCQo

To claim this, I am signing this object:

set nu
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
set cryptmethod=blowfish
call vundle#rc()
" let Vundle manage Vundle
" required!
#!/bin/bash
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
sudo service gitlab stop
cd /home/git/gitlab
sudo -u git -H ruby script/upgrade.rb -y
sudo service gitlab start
sudo service nginx restart
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production