Changes
Page history
make copy-paste from source markdown easier
authored
Sep 23, 2024
by
anarcat
Hide whitespace changes
Inline
Side-by-side
howto/gitlab.md
View page @
ecfce360
...
@@ -607,12 +607,14 @@ to get the project ID, and from there, find the project using the API
...
@@ -607,12 +607,14 @@ to get the project ID, and from there, find the project using the API
above. Here's a Python blob that will generate a hash for every
above. Here's a Python blob that will generate a hash for every
project ID up to 2000:
project ID up to 2000:
import hashlib
```
import hashlib
for i in range(2000):
for i in range(2000):
h = hashlib.sha256()
h = hashlib.sha256()
h.update(str(i).encode('ascii'))
h.update(str(i).encode('ascii'))
print(i, h.hexdigest())
print(i, h.hexdigest())
```
## Connect to the PostgreSQL server
## Connect to the PostgreSQL server
...
...
...
...