Skip to content

Instantly share code, notes, and snippets.

View ENvironmentSet's full-sized avatar

Jaewon Seo ENvironmentSet

View GitHub Profile
# First, you must get the previous commit sha, the one before the forced push:
## Hit through terminal
curl -u <username> https://api.github.com/repos/:owner/:repo/events
# Then you can create a branch from this sha:
## Hit through terminal
curl -u <github-username> -X POST -d '{"ref":"refs/heads/<new-branch-name>", "sha":"<sha-from-step-1>"}' https://api.github.com/repos/:owner/:repo/git/refs
@ENvironmentSet
ENvironmentSet / hpack.hsfiles
Created August 5, 2020 13:31 — forked from Ailrun/hpack.hsfiles
Stack templates
{-# START_FILE package.yaml #-}
spec-version: 0.31.0
name: {{name}}
version: 0.1.0.0
# synopsis:
# description:
category: {{category}}{{^category}}Web{{/category}}
homepage: https://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}#readme
bug-reports: https://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}/issues
author: {{author-name}}{{^author-name}}Author name here{{/author-name}}