Skip to content

Instantly share code, notes, and snippets.

View ltpquang's full-sized avatar
🤪

Lê Thái Phúc Quang ltpquang

🤪
View GitHub Profile
@huuhoa
huuhoa / paxos.json
Last active September 4, 2020 02:24
Collection of articles on Paxos
{
"title": "Collection of articles on Paxos",
"author": "various authors",
"version": "v1.0",
"homepage": "paxos",
"output_dir": "paxos",
"urls": [
"https://medium.com/coinmonks/paxos-made-simple-3b83c05aac37",
"https://medium.com/@angusmacdonald/paxos-by-example-66d934e18522",
"https://medium.com/byte-me/paxos-in-plain-english-c5b2e1151b0b",
@shyiko
shyiko / .sh
Created August 26, 2020 22:13
prometheus/client_golang default metrics
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
# HELP go_goroutines Number of goroutines that currently exist.
@risinek
risinek / com.company.appium.server.plist
Last active August 24, 2023 13:18
This is the example of working plist to run Appium server using launchctl on Mac. See comments for more info and steps how to use this.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
@Pulimet
Pulimet / AdbCommands
Last active July 20, 2024 12:55
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@asukakenji
asukakenji / 0-go-os-arch.md
Last active July 18, 2024 06:42
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

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

GOOS Values

GOOS Out of the Box
aix
android
@romainl
romainl / colorscheme-override.md
Last active July 14, 2024 01:08
The right way to override any highlighting if you don't want to edit the colorscheme file directly

The right way to override any highlighting if you don't want to edit the colorscheme file directly

Generalities first

Suppose you have weird taste and you absolutely want:

  • your visual selection to always have a green background and black foreground,
  • your active statusline to always have a white background and red foreground,
  • your very own deep blue background.
ext {
appVersionName = '1.0'
appPackageId = '<YourApplicationID>'
}
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
@connorjan
connorjan / rsub.md
Last active March 6, 2024 21:06
Editing Files Remotely via SSH on SublimeText 3

Editing Files Remotely via SSH on SublimeText 3

Sometimes you need to edit a file on a remote server, but using vim/emacs is not very practical, due to lag and speed of screen refresh.

TextMate users have the classic rmate, but it was implemented in Ruby, which may not be available on the remote server.

A better option is to use this version of rmate, implemented in pure Bash. It's a single file, self-contained, and with no external dependencies.

Step by step:

@tuanchauict
tuanchauict / README.md
Last active December 15, 2016 06:34
Build, install and run release build

Grab code then

apply from: 'lazy.gradle'

@CMCDragonkai
CMCDragonkai / regular_expression_engine_comparison.md
Last active July 12, 2024 00:49
Regular Expression Engine Comparison Chart

Regular Expression Engine Comparison Chart

Many different applications claim to support regular expressions. But what does that even mean?

Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.

The information here is just copied from: http://regular-expressions.mobi/refflavors.html