Skip to content

Instantly share code, notes, and snippets.

View songfei1983's full-sized avatar

songfei songfei1983

View GitHub Profile
@songfei1983
songfei1983 / gap.md
Last active August 19, 2019 21:56
General Advertising Platform
package main
import (
"fmt"
"log"
"net"
"time"
)
// Server is struct
var (
re = regexp.MustCompile(`^(\S.+)\.(\S.+)$`)
)
type CallerInfo struct {
PackageName string
FunctionName string
FileName string
FileLine int
}
@songfei1983
songfei1983 / docker-compose.yaml
Created June 22, 2020 04:47
aerospike amc aql
version: "3"
services:
aerospike:
image: aerospike
ports:
- "3000:3000"
volumes:
- ./data:/opt/aerpsike/data
- ./conf:/etc/aerpsike
command: [ "--config-file","/etc/aerospike/aerospike.conf"]
@songfei1983
songfei1983 / ffmpeg.go
Created November 5, 2020 09:32
ffmpeg convert mp4 through go exec
package main
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"os/exec"