Skip to content

Instantly share code, notes, and snippets.

@gniemetz
gniemetz / stars.sh
Last active April 14, 2021 13:21 — forked from sebble/stars.sh
List all starred repositories of a GitHub user.
#!/bin/bash
USER=${1:-gniemetz}
declare -i PER_PAGE=100
declare -r ANSWER="$(
curl \
-s `# Silent or quiet mode. Don't show progress meter or error messages.` \
-I `# (HTTP FTP FILE) Fetch the headers only!` \
"https://api.github.com/users/${USER}/starred?per_page=1"
)"
#!/usr/bin/env python
"""
- read subprocess output without threads using Tkinter
- show the output in the GUI
- stop subprocess on a button press
"""
import logging
import os
import sys
from subprocess import Popen, PIPE, STDOUT