Skip to content

Instantly share code, notes, and snippets.

View songfei1983's full-sized avatar

songfei songfei1983

View GitHub Profile
@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"
@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"]
var (
re = regexp.MustCompile(`^(\S.+)\.(\S.+)$`)
)
type CallerInfo struct {
PackageName string
FunctionName string
FileName string
FileLine int
}
package main
import (
"fmt"
"log"
"net"
"time"
)
// Server is struct
@songfei1983
songfei1983 / gap.md
Last active August 19, 2019 21:56
General Advertising Platform
@songfei1983
songfei1983 / 混沌到Scrum.md
Last active February 20, 2019 04:46
混沌到Scrum

混沌到Scrum

大概进入新公司的一个月左右,另外一个团队因为质量和情报共享的问题,想导入Scrum来解决问题。

在我看来scrum并不会解决问题,但是使用scrum会让问题迎刃而解。

所以我同意带队进scrum,可是我不保证能解决问题。

团队组成 TechLeader,Manager,DEV(5)QA(2)SRE(2)

@songfei1983
songfei1983 / file0.js
Created August 9, 2017 01:51
ChromeのBookmarkでクリップボードにコピーする ref: http://qiita.com/songfei1983/items/281654a983604e18d842
javascript:(function(){
var copyFrom = document.createElement("textarea");
copyFrom.textContent = 'copy!';
var bodyElm = document.getElementsByTagName("body")[0];
bodyElm.appendChild(copyFrom);
copyFrom.select();
var retVal = document.execCommand('copy');
bodyElm.removeChild(copyFrom);
return retVal;
})();