-
Install the the
shadowsocks-libev
package from apt repository.sudo apt update sudo apt install shadowsocks-libev
-
Save
ss.json
as/etc/shadowsocks-libev/config.json
.
This file contains 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
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 |
This file contains 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
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 |