Skip to content

Instantly share code, notes, and snippets.

@taylord0ng
taylord0ng / README.md
Created April 10, 2022 14:33 — forked from zhiguangwang/README.md
Installing and running shadowsocks on Ubuntu Server

Installing and running shadowsocks on Ubuntu Server

16.10 yakkety and above

  1. Install the the shadowsocks-libev package from apt repository.

     sudo apt update
     sudo apt install shadowsocks-libev
    
  2. Save ss.json as /etc/shadowsocks-libev/config.json.

@taylord0ng
taylord0ng / gitlab-api-get-project
Last active February 17, 2020 14:13
gitlab api get all project
curl --location --request POST 'https://gitlab.com/api/graphql' \
--header 'Authorization: Bearer XXX' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"query {\n group(fullPath: \"xxx-dev\") {\n id\n name\n projects {\n nodes {\n name\n httpUrlToRepo\n sshUrlToRepo\n }\n }\n }\n}","variables":{}}'
for i in m['data']['group']['projects']['nodes']:
print(i['sshUrlToRepo'] + ' ' + i['name'])
https://stackoverflow.com/questions/52554811/how-can-i-change-the-mirroring-settings-in-gitlab-over-the-api
https://docs.gitlab.com/ee/api/projects.html#edit-project
@taylord0ng
taylord0ng / git-all
Last active February 17, 2020 14:11
git push all && pull all
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
git push code --all