Skip to content

Instantly share code, notes, and snippets.

View lourot's full-sized avatar
🚀

Aurélien Lourot lourot

🚀
View GitHub Profile
@lourot
lourot / tree4streams.py
Last active March 25, 2020 04:27
tree4streams.py, 'p4 streams' as tree - Calls 'p4 streams', parses the output, and prints all streams as a tree.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import shlex
import StringIO
import subprocess
class P4Stream:
def __init__(self, parent_name=None):
self.parent_name = parent_name
@lourot
lourot / Example.java
Created November 27, 2015 23:12
Variant of https://github.com/tt-gf/artifactory-client-java-example deleting all artifacts of a repo based on criteria
import java.util.Scanner;
import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import org.jfrog.artifactory.client.Artifactory;
import org.jfrog.artifactory.client.ArtifactoryClient;
import org.jfrog.artifactory.client.RepositoryHandle;
import org.jfrog.artifactory.client.model.Folder;