Skip to content

Instantly share code, notes, and snippets.

Let's build a better world

DingRui Yang abserari

Let's build a better world
View GitHub Profile
abserari / install.go
Created Nov 21, 2022
Go Install Binary Program in Dapr
View install.go
// installBinary installs the daprd, placement or dashboard binaries and associated files inside the default dapr bin directory.
func installBinary(version, binaryFilePrefix, githubRepo string, info initInfo) error {
var (
err error
filepath string
dir := defaultDaprBinPath()
if isAirGapInit {
filepath = path_filepath.Join(info.fromDir, *info.bundleDet.BinarySubDir, binaryName(binaryFilePrefix))
abserari / Makefile
Last active Jun 23, 2022
Makefile Template from Temporal
View Makefile
default: help
##@ Main targets
install: update-tools ## Install all tools and builds binaries.
bins: ## Rebuild binaries (used by Dockerfile).
all: update-tools clean proto bins check test ## Install all tools, recompile proto files, run all possible checks and tests (long but comprehensive).
ci-build: update-tools shell-check check proto mocks gomodtidy ensure-no-changes ## Used by Buildkite.
View map-equal.go
func equal(x, y map[string]int) bool {
if len(x) != len(y) {
return false
for k, xv := range x {
if yv, ok := y[k]; !ok || yv != xv {
return false
return true
abserari / drag_and_drop.dart
Created May 10, 2021
Drag to Generate Flutter UI
View drag_and_drop.dart
// This is a basic Flutter widget test.
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
View visitor.go
package visitor
import (
abserari / maxopenfile.go
Created Jan 18, 2021
Update system limit about file number.
View maxopenfile.go
package maxopenfile
import (
func MaxOpenFiles() {
var rLimit syscall.Rlimit
abserari / ssh.go
Last active Jan 18, 2021
quickly ssh transport
View ssh.go
package sshproxy
import (
abserari /
Created Jan 12, 2021 — forked from tterb/
A collection of README badges



MIT License GPLv3 License AGPL License


Version GitHub Release