This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" | |
)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |