Skip to content

Instantly share code, notes, and snippets.

View sluugdemogithub's full-sized avatar

sluugdemogithub

View GitHub Profile
@sluugdemogithub
sluugdemogithub / git-credential-manager.sh
Last active January 12, 2022 23:20
Setting up Git Credential Manager
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
@sluugdemogithub
sluugdemogithub / get_gists.py
Created January 11, 2022 05:12 — forked from leoloobeek/get_gists.py
Download all gists for a specific user
# 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))
@sluugdemogithub
sluugdemogithub / slide-deck.sh
Last active March 14, 2022 13:15
Creating a new slidedesk repo from the jekyll-and-slide repo
# 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%.*}"