Skip to content

Instantly share code, notes, and snippets.

View enobufs's full-sized avatar

Yutaka Takeda enobufs

  • Twitch Interactive, Inc.
  • Vacaville, CA
  • 04:32 (UTC -07:00)
View GitHub Profile
@enobufs
enobufs / main.go
Created October 18, 2019 23:07
Cgo deadlock with C.usleep()
package main
/*
#include <unistd.h>
*/
import "C"
import (
"log"
"time"
)
@enobufs
enobufs / chrome-to-usrsctp.md
Last active February 23, 2020 09:07
Find usrctp revision by Chrome version
"""List S3 objects into a CSV file
"""
import argparse
import json
import pandas as pd
import subprocess
parser = argparse.ArgumentParser(description='List S3 objects into a CSV file')
parser.add_argument('bucket', type=str, help='bucket name')
@enobufs
enobufs / before_after_each_test.go
Created May 7, 2022 23:07
beforeEach and afterEach with go-test
package main
import (
"fmt"
"os"
"runtime"
"testing"
)
func TestMain(m *testing.M) {