Skip to content

Instantly share code, notes, and snippets.

View ayang64's full-sized avatar
⚰️
dead

ayan george ayang64

⚰️
dead
View GitHub Profile
package main
import (
"errors"
"fmt"
"log"
"math/rand"
"time"
)
package main
import (
"bytes"
"io/ioutil"
"log"
"net/http"
)
func main() {
@ayang64
ayang64 / gsd.go
Created September 30, 2018 18:14
graceful shutdown
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@ayang64
ayang64 / gist:c82c8d431e5fcb2b1d026f6de60c3979
Created September 30, 2018 18:08
gracefull http server shutdown example
adfasdfasdf
#!/usr/bin/env python3
from urllib.request import urlopen
import urllib.error
from bs4 import BeautifulSoup as BS
def FetchTitle(*urls):
for url in urls:
try:
page = urlopen(url)

Keybase proof

I hereby claim:

  • I am ayang64 on github.
  • I am ayan (https://keybase.io/ayan) on keybase.
  • I have a public key whose fingerprint is 63C1 BDB5 7D3E 73B7 658C 7D09 AFE8 F8DB 66F8 42D7

To claim this, I am signing this object: