Skip to content

Instantly share code, notes, and snippets.

Avatar

Tuan Nguyen tuannguyenssu

View GitHub Profile
@tuannguyenssu
tuannguyenssu / my.cnf
Created Aug 19, 2020 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
View my.cnf
# Optimized my.cnf configuration for MySQL/MariaSQL
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated January 2020 ~
#
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
View prometheus.yml
global:
scrape_interval: 5s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 5s # Evaluate rules every 15 seconds. The default is every 1 minute.
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['prometheus:9090']
- job_name: 'kong'
static_configs:
View docker-compose-kong.yml
version: "3.7"
#######################################
# Network: local-docker-net
#######################################
networks:
local-docker-net:
driver: bridge
services:
View cloudSettings
{"lastUpload":"2019-09-23T10:30:07.358Z","extensionVersion":"v3.4.2"}
@tuannguyenssu
tuannguyenssu / BlazorCounter.razor
Last active Jul 8, 2019
Blazor counter example
View BlazorCounter.razor
@page "/counter"
<h1>Counter</h1>
<p>Current count: @currentCount</p>
<button class="btn btn-primary" onclick="@IncrementCount">Click me</button>
@code {
private int currentCount = 0;
You can’t perform that action at this time.