Skip to content

Instantly share code, notes, and snippets.

@yar999
yar999 / mysql_memory_calculator.md
Created December 30, 2023 13:34 — forked from v0112358/mysql_memory_calculator.md
MySQL Memory Calculator

MySQL 5.6

Base memory

SELECT ( @@key_buffer_size
+ @@query_cache_size
+ @@innodb_buffer_pool_size
+ @@innodb_log_buffer_size
+ @@innodb_additional_mem_pool_size )
/ (1024 * 1024 * 1024) AS BASE_MEMORY_GB;
@yar999
yar999 / Crack Sublime Text Windows and Linux.md
Created November 17, 2022 13:08 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

YouTube Channel https://www.youtube.com/c/jerrylokjianming


How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
@yar999
yar999 / caching.conf
Created June 30, 2022 15:59 — forked from TrafeX/caching.conf
Nginx Wordpress caching
# The path to store the cache files, limit the folder to 100MB
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:100m;
# A unique request is defined by this cache key
fastcgi_cache_key "$scheme$request_method$host$request_uri";
# Show the cached version if upstream gives a timeout or a HTTP 500 error
fastcgi_cache_use_stale error timeout invalid_header http_500;
# Don't use the following headers to define the cache variables
@yar999
yar999 / woocommerce.vcl
Created June 30, 2022 14:30 — forked from lukecav/woocommerce.vcl
Varnish v4 VCL for WooCommerce Stores - Beta
/* SET THE HOST AND PORT OF WooCommerce
* *********************************************************/
backend default {
.host = "127.0.0.1";
.port = "8080";
}
# SET THE ALLOWED IP OF PURGE REQUESTS
# ##########################################################
@yar999
yar999 / ss v2ray-plugin.md
Created October 14, 2019 04:10
ss-libev + v2ray-plugin + tls + CentOS-7

v2ray-plugin CentOS-7

ss v2ray-plugin

购买一个域名 / 或申请一个免费域名

配置 CDN

比如 cloudflare,