Skip to content

Instantly share code, notes, and snippets.

View Harardin's full-sized avatar

Anton Polchenko Harardin

View GitHub Profile
@Harardin
Harardin / a-mongodb-replica-set-docker-compose-readme.md
Created January 27, 2021 09:08 — forked from harveyconnor/a-mongodb-replica-set-docker-compose-readme.md
MongoDB Replica Set / docker-compose / mongoose transaction with persistent volume

This will guide you through setting up a replica set in a docker environment using.

  • Docker Compose
  • MongoDB Replica Sets
  • Mongoose
  • Mongoose Transactions

Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!

@Harardin
Harardin / nullHandle.go
Created January 15, 2021 14:50 — forked from rsudip90/nullHandle.go
How I handled the null possible value in a sql database row in golang?
package main
import (
"database/sql"
"encoding/json"
"fmt"
"reflect"
"time"
"github.com/go-sql-driver/mysql"
@Harardin
Harardin / README.md
Created January 5, 2021 13:09 — forked from madalinignisca/README.md
Yii serve using PHP's built in server

Found this on Yii wiki: Yii 2.0: PHP built-in server integration

Really cool and my default when working with Yii.

Place the ServeController.php file in "commands/" folder.

From the root of your project run "./yii serve" on Linux/BSD/OSX or "yii.bat serve" on Windows.

Open your browser to "http://localhost:8080" and work.

diff --git a/gstreamer-send/main.go b/gstreamer-send/main.go
index 3a2ab8c..df5df2a 100644
--- a/gstreamer-send/main.go
+++ b/gstreamer-send/main.go
@@ -27,8 +27,16 @@ func main() {
},
}
+ m := webrtc.MediaEngine{}
+ s := webrtc.SettingEngine{}
@Harardin
Harardin / go-os-arch.md
Created October 22, 2020 14:03 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.14.7 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • aix
  • android