Skip to content

Instantly share code, notes, and snippets.

View hteen's full-sized avatar
👨‍💻
 👨‍💻

Hteen hteen

👨‍💻
 👨‍💻
View GitHub Profile
package main
import (
"crypto/aes"
"encoding/hex"
_ "github.com/jinzhu/gorm/dialects/mysql"
"log"
"time"
)
@hteen
hteen / docker-compose.yml
Created September 17, 2019 09:21
php容器中curl Nginx本地域名
version: '3'
services:
php:
image: hteen/php
restart: always
privileged: true
extra_hosts:
- "a.com:172.19.0.10"
@hteen
hteen / hook.php
Created January 17, 2019 05:35
simple webhook
<?php
$http = new swoole_http_server("0.0.0.0", 80);
$http->on("start", function ($server) {
echo "Swoole http server is started\n";
});
$http->on("request", function ($request, $response) {
$response->header("Content-Type", "text/plain");
// Gitee Push
@hteen
hteen / frpc.ini
Created June 8, 2018 08:33
VScode使用docker配置xdebug, 并用frp做端口转发
# 增加端口映射
[range:xdebug]
type = tcp
local_ip = 127.0.0.1
local_port = 9001
remote_port = 9001