This file contains hidden or 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
cd /tmp/ | |
curl -L -O https://github.com/GitCredentialManager/git-credential-manager/releases/download/v2.0.632/gcmcore-linux_amd64.2.0.632.34631.deb | |
sudo dpkg -i gcmcore-linux_amd64.2.0.632.34631.deb | |
git config --list | |
git config credential.helper | |
git config --global credential.helper manager-core | |
git config --global credential.interactive true | |
git config --global credential.gitHubAuthModes "oauth,basic,pat" | |
git config --global credential.credentialStore cache |
This file contains hidden or 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
# first: mkdir user && cd user && cp /path/to/get_gists.py . | |
# python3 get_gists.py user | |
import requests | |
import sys | |
from subprocess import call | |
user = sys.argv[1] | |
r = requests.get('https://api.github.com/users/{0}/gists'.format(user)) |
This file contains hidden or 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
# This gist combines specific commits from two different repos: jekyll-and-slide and reveal.js | |
# If there was a way to do this from the browser, this gist would be unnecessary. | |
# prerequisite: create a blank repo in GitHub and note repo URL | |
REMOTE_URL='https://github.com/sluugdemogithub/demo03.git' | |
# create the URL for GitHub Pages | |
<<< "$REMOTE_URL" IFS='/' read scheme x host id repo | |
PAGES_URL="${scheme}//${id}.${host%com}io/${repo%.*}" |