Commit Graph

177 Commits

Author SHA1 Message Date
zah 869c472a9b Exclude two repositories where we have external contributors 2023-09-19 12:12:16 +02:00
Jakub Sokołowski 3d4634b806
github/add_to_private: replace contains usage
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-11 19:48:43 +02:00
Jakub Sokołowski d6408e14f8
github/remove_external_collaborators: it does it
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-11 19:47:21 +02:00
Jakub Sokołowski dc620816c1
git/bisect.sh: add simple script for running bisect
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-06-26 21:51:04 +02:00
Jakub Sokołowski 1e1228cd3a
elasticsearch/esclean.py: use match for fleet field
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-06-26 21:04:27 +02:00
Jakub Sokołowski dba844b9d3
github/get_repo_licenses.py: fix help message
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-03-20 19:50:47 +01:00
Jakub Sokołowski 9bbc5b6111
github: script to generate repo CSV with licenses
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-03-02 18:27:27 +01:00
Jakub Sokołowski 059f23441c
ansible/allhosts: handle missing Node Meta field
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-23 16:31:43 +01:00
Jakub Sokołowski 5a92982893
ansible/update.py: handle entries without version
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-15 14:31:22 +01:00
Jakub Sokołowski bccf782469
ansible/linkroles.sh: for symlinking Ansible roles
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-03 19:01:23 +01:00
Jakub Sokołowski c3cc9cfb0b
github/list_old_branches: adjust list formatting
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-01-26 07:46:16 +01:00
Jakub Sokołowski b8d3179a6c
github/copy_members: simplify checking invitations
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-01-25 17:17:33 +01:00
Jakub Sokołowski aedd1176f6
github/copy_members.py: one way sync of org members
Helpful for syncing `status-im` org with `logos-co`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-01 12:59:09 +01:00
Jakub Sokołowski 0a14bff80c
ansible/gitpull.sh: add script for updating repos
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-30 00:52:45 +02:00
Jakub Sokołowski 2c47795bb8
ethereum/validator_check.py: for checking status
Useful to sort out slashed validators on Prater.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-25 13:32:11 +02:00
Jakub Sokołowski c0f862f225
cloudflare/fqdns.py: add JSON support
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-25 12:58:05 +02:00
Jakub Sokołowski 5406e42d58
cloudflare/fqdns.py: fix filtering by type
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-20 20:25:49 +02:00
Jakub Sokołowski b0d91bf3d5
consul/gen_hosts.sh include OS info in table
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-20 12:08:59 +02:00
Jakub Sokołowski a0554250e6
discord/reverse_perms.py: decode permissions number
https://discord.com/developers/docs/topics/permissions

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-20 12:06:46 +02:00
Jakub Sokołowski 3545787b0a
dnsdisc.py: support querying multiple services
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-15 12:49:46 +02:00
Jakub Sokołowski 3137f4bc88
dnsdisc.py: print enrtree URL
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-15 12:01:23 +02:00
Jakub Sokołowski 3e76235769
dnsdisc.py: compare existing records with new ones
Avoid deleting old ones and creating new ones when nothing has changed.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-14 21:27:52 +02:00
Jakub Sokołowski 0a34be547e
dnsdisc.py: drop timestamps, sort old records
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-14 21:11:18 +02:00
Jakub Sokołowski 41b57c5ace
dnsdisc.py: add dry-run, more ogging, env vars
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-14 20:22:36 +02:00
Jakub Sokołowski 81a4ecac81
ethereum/keystore2priv.py: getting geth private key
https://ethereum.stackexchange.com/questions/12830/how-to-get-private-key-from-account-address-and-password

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-14 13:28:06 +02:00
Jakub Sokołowski dc13f22088
consul/dnsdisc.py: first version of script
https://github.com/status-im/infra-status/issues/17

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-13 19:05:37 +02:00
Jakub Sokołowski 292231816a
github/list_old_branches: improve formatting
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-08-10 19:10:37 +02:00
Jakub Sokołowski f5d99ea653
github/add_to_private: add flags to be more reusable
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-08-09 13:36:55 +02:00
Jakub Sokołowski fe23d070ad
cloudflare/get_log: update table formatting
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-07-27 10:39:22 +02:00
Jakub Sokołowski 48d4411e9c
rename status-react to status-mobile
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-07-17 16:56:38 +02:00
Jakub Sokołowski 9932ca7cea
terraform/rename.awk: simpler version of move.awk
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-07-11 15:23:06 +02:00
Jakub Sokołowski b388b3510f
move github/update_ansible.py to ansible/update.py
Just makes more sense in that folder.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-05-11 13:50:55 +02:00
Jakub Sokołowski e8ba79c756
github: add script for getting ID of team
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-05-06 08:55:15 +02:00
Jakub Sokołowski 926f7bc7e3
terraform/move.awk: for renaming resources
Script for renaming resources when redactoring from count to for_each.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-03-09 12:43:04 +01:00
Jakub Sokołowski 527eaed3d4
ansible/stats.py: include vcpu and memory stats
This is achieved by extra node metadata added in:
- https://github.com/status-im/infra-role-bootstrap-linux/commit/63998e7c
- https://github.com/status-im/infra-role-bootstrap-macos/commit/f2dda03c
- https://github.com/status-im/infra-role-bootstrap-windows/commit/99df3934
- https://github.com/status-im/infra-hq/commit/898fa9f5

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-02-24 02:10:31 +01:00
Jakub Sokołowski e02875274d
ansible: add stats.py to compile counts of hosts
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-02-09 19:59:07 +01:00
Jakub Sokołowski 3f1cec0a38
s3utils/delete.py: use pagination to handle long lists
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-08-30 09:04:12 +02:00
Jakub Sokołowski 4e45ee72c6
consul/gen_hosts: script for generating hosts entries
This is useful when DNS issues make the statusim.net domain unusable.
You can connect to a Consul host using an IP and tunnel `8500` port:
```
ssh -L 8500:localhost:8500 admin@178.128.136.23
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-08-28 11:05:34 +02:00
Jakub Sokołowski 7a6960d559
ansible/allhosts.py: run ansible on all infra hosts
Example:
```
ansible all -i ~/work/infra-utils/ansible/allhosts.py -a uptime
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-08-09 13:23:09 +02:00
Jakub Sokołowski d7eea4a0e0
customize repos path with ANSIBLE_REPOS_PATH env var
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-29 14:35:07 +02:00
Jakub Sokołowski e2acd95f62
github/update_ansible.py: raise more exceptions
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-15 11:32:26 +02:00
Jakub Sokołowski f93da02346
github/update_ansible.py: easier updating of requirements
Using the normal python YAML module breaks formatting and order of entries.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-15 11:27:14 +02:00
Jakub Sokołowski 0f4dbde7f8
elasticsearch/esclean.py: allow use of wildcard with program
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-14 13:28:40 +02:00
Jakub Sokołowski a3d5545fd9
github/list_old_branches.sh: use 120 days by default
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-10 10:16:56 +02:00
Jakub Sokołowski 3fb92592a2
github/list_repos.py: fix lib usage, add list of orgs
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-10 10:16:18 +02:00
Jakub Sokołowski 66029f01ae
add script for renaming tags
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-10-19 22:00:57 +02:00
Jakub Sokołowski d95fb97e6a
add script for getting ThreatStack agents
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-10-19 21:58:51 +02:00
Jakub Sokołowski 4d9f3d822c
s3/delete.py: set MaxKeys to 99999, drop --older-than default
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-07-07 14:45:56 +02:00
Jakub Sokołowski c6dacf80af
s3: rename delete_old to delete.py, add --filter flag
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-07-07 09:58:06 +02:00
Jakub Sokołowski 4782e0d20b
s3/delete_old.py: add --dry-run
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-07-07 09:52:07 +02:00