Skip to content

Instantly share code, notes, and snippets.

View lirlia's full-sized avatar

gin lirlia

View GitHub Profile
@lirlia
lirlia / operations.graphql
Created September 26, 2023 00:52 — forked from duboisf/operations.graphql
Add branch protection to a repo using GitHub's Graphql API
fragment branchProtection on BranchProtectionRule {
allowsDeletions
allowsForcePushes
creator {
login
}
id
isAdminEnforced
requiredStatusCheckContexts
requiredApprovingReviewCount
@lirlia
lirlia / SimpleHTTPServerWithUpload.py
Created February 9, 2021 02:17 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""