Skip to content

Instantly share code, notes, and snippets.

View tuannguyenssu's full-sized avatar

Tuan Nguyen tuannguyenssu

View GitHub Profile
@tuannguyenssu
tuannguyenssu / BlazorCounter.razor
Last active July 8, 2019 14:18
Blazor counter example
@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;
{"lastUpload":"2019-09-23T10:30:07.358Z","extensionVersion":"v3.4.2"}
version: "3.7"
#######################################
# Network: local-docker-net
#######################################
networks:
local-docker-net:
driver: bridge
services:
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:
@tuannguyenssu
tuannguyenssu / my.cnf
Created August 19, 2020 09:25 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
# 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.
#
@tuannguyenssu
tuannguyenssu / .NET6Migration.md
Created October 22, 2021 09:44 — forked from davidfowl/.NET6Migration.md
.NET 6 ASP.NET Core Migration
@tuannguyenssu
tuannguyenssu / nginx.conf
Created October 26, 2021 02:28 — forked from ernsheong/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx