Skip to content

Instantly share code, notes, and snippets.

@michaelsync
michaelsync / recommended-routine.md
Created Aug 25, 2021 — forked from sgup/recommended-routine.md
Recommended Routine - Reddit BodyweightFitness
View recommended-routine.md
@michaelsync
michaelsync / github-app-jwt.sh
Created Dec 7, 2020 — forked from carestad/github-app-jwt.sh
Script to generate JWT for use with Github apps
View github-app-jwt.sh
#!/usr/bin/env bash
# Generate JWT for Github App
#
# Inspired by implementation by Will Haley at:
# http://willhaley.com/blog/generate-jwt-with-bash/
# From:
# https://stackoverflow.com/questions/46657001/how-do-you-create-an-rs256-jwt-assertion-with-bash-shell-scripting
thisdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
View gist:7f58041b92f49f16a14b23c61c74e68e
@michaelsync
michaelsync / git-fork-sync
Created Dec 15, 2015 — forked from ianmariano/git-fork-sync
Syncs your repo fork with the upstream master and then pushes the synced master to origin. Presumes you have an 'upstream' remote which is from whence your fork was created. Put on your path and chmod a+x it then do: git fork-sync
View git-fork-sync
#!/bin/bash
VERSION="20150504"
usage() {
cat << __EOF
$0 usage:
$0 [options]
View gotour-69.go
package main
import (
"os"
"fmt"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.