Skip to content

Instantly share code, notes, and snippets.

View namco1992's full-sized avatar
🏠
Working from home

Namco namco1992

🏠
Working from home
View GitHub Profile
@Chaser324
Chaser324 / GitHub-Forking.md
Last active April 20, 2025 17:10
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@dtjm
dtjm / join_test.go
Last active December 20, 2024 07:25
Benchmarking various ways of concatenating strings in Go
package join
import (
"fmt"
"strings"
"testing"
)
var (
testData = []string{"a", "b", "c", "d", "e"}
# coding: utf-8
import smtplib
from email.mime.text import MIMEText
import requests
from bs4 import BeautifulSoup
class Settings(object):
"""Mail config"""
MAIL_HOST = "smtp.example.com"
@mhowlett
mhowlett / gist:e9491aad29817aeda6003c3404874b35
Created January 28, 2018 01:39
kafka go client performance testing
package main
import (
"context"
"flag"
"math/rand"
crand "crypto/rand"
"os"
"time"
"log"
@s8508235
s8508235 / gracefully_shutdown_server.go
Last active January 18, 2024 21:01
gracefully shutdown go web server with error group
package main
import (
"context"
"fmt"
"net/http"
"os/signal"
"syscall"
"time"