Skip to content

Instantly share code, notes, and snippets.

View ltpquang's full-sized avatar
🎯
Focusing

Lê Thái Phúc Quang ltpquang

🎯
Focusing
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 June 12, 2025 15:43
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@asukakenji
asukakenji / 0-go-os-arch.md
Last active June 5, 2025 03:56
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 March 8, 2025 21:23
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 January 4, 2025 04:57
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 June 3, 2025 12:51
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