Skip to content

Instantly share code, notes, and snippets.

View arrodriguez's full-sized avatar

Ariel Rodriguez arrodriguez

View GitHub Profile
@peterhellberg
peterhellberg / graceful.go
Last active November 13, 2024 20:20
*http.Server in Go 1.8 supports graceful shutdown. This is a small example.
package main
import (
"context"
"log"
"net/http"
"os"
"os/signal"
"time"
)
@ravibhure
ravibhure / git_rebase.md
Last active November 9, 2024 05:19
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

@johnallen3d
johnallen3d / travis-broken.json
Last active November 7, 2020 16:33
Travis CI example webhook payloads
{
"id": 25418135,
"repository": {
"id": 2372423,
"name": "travis-ci-webhook-receiver",
"owner_name": "connexio-labs",
"url": "https://github.com/connexio-labs/travis-ci-webhook-receiver"
},
"number": "6",
"config": {