Skip to content

Instantly share code, notes, and snippets.

@sssemil
sssemil / gitlab-remove-all-artifacts.sh
Created March 15, 2022 15:01
This script helps you with removal of all artifacts in a project.
#!/bin/sh
#<your project id (you can find it with inspect element on the project page)>
PROJECT_ID=36944
#<your access token (can be generated in your profile settings)>
ACCESS_TOKEN=xxxxx-XXXXXXXXXXXXXXXXXXXX
#<your gitlab instance hostname (ex. gitlab.lrz.de)>
GL_SERVER=gitlab.lrz.de
for PAGE in $(seq 1 1000); do
class TrieNode:
def __init__(self):
self.value = "_"
self.children = {}
def insert(self, str):
if not str:
c = ""
self.children[c] = TrieNode()