Skip to content

Instantly share code, notes, and snippets.

@ezzra
ezzra / gh-multiuser-wrapper
Created November 16, 2021 15:53
gh cli wrapper with multiple users depending on repo
#!/bin/bash
# This wrapper will enable multi user support for github cli "gh".
# You need to link your "gh" command against this script and it will
# call the original command after changing the config credentials to the
# specific user
gh_user=$(git config gh.github.com.user)
# print infomessage
if [ -z "$gh_user" ]; then
#!/usr/bin/env python
# Syntax: duplicates.py DIRECTORY DIRECTORY DIRECTORY ...
import os
import sys
import glob
import argparse
import pprint
@ezzra
ezzra / uberspace-create-account.py
Created June 6, 2020 14:05
uberspace create account via command line
import requests
import re
from bs4 import BeautifulSoup
import time
import sys
import os
account_name = sys.argv[1]
session = requests.Session()