Skip to content

Instantly share code, notes, and snippets.

View ryanslabxyz's full-sized avatar

Ryan ryanslabxyz

View GitHub Profile
@ryanslabxyz
ryanslabxyz / sync-projects
Created May 8, 2019 17:56 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
#!/usr/bin/env bash
# Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
NAMESPACE="YOUR_NAMESPACE"
BASE_PATH="https://gitlab.example.com/"
PROJECT_SEARCH_PARAM=""
PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")"
PROJECT_PROJECTION="{ "path": .path, "git": .ssh_url_to_repo }"
@ryanslabxyz
ryanslabxyz / module1.py
Created November 24, 2014 02:12
module1.py
print('Hello module world!')