Skip to content

Instantly share code, notes, and snippets.

View sumanchapai's full-sized avatar

Suman Chapai sumanchapai

View GitHub Profile
@jamesmacfie
jamesmacfie / README.md
Created October 22, 2019 02:53
iTerm 2 - script to change theme depending on Mac OS dark mode

How to use

In iTerm2, in the menu bar go to Scripts > Manage > New Python Script

Select Basic. Select Long-Running Daemon

Give the script a decent name (I chose auto_dark_mode.py)

Save and open the script in your editor of choice.

@peteretelej
peteretelej / proxy.go
Created July 3, 2019 12:55
A simple reverse-proxy in Go that enables CORS
package main
import (
"log"
"net/http"
"net/http/httputil"
"net/url"
)
func main() {