Skip to content

Instantly share code, notes, and snippets.

View linux0x5c's full-sized avatar
🏠
Working

zempty0 linux0x5c

🏠
Working
  • Echemi
  • Tsingtao
View GitHub Profile
@cdown
cdown / gist:1163649
Last active July 1, 2024 03:35
Bash urlencode and urldecode
urlencode() {
# urlencode <string>
old_lc_collate=$LC_COLLATE
LC_COLLATE=C
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:$i:1}"
case $c in
@Stanback
Stanback / nginx.conf
Last active June 14, 2024 10:21 — forked from michiel/cors-nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@a-vasyliev
a-vasyliev / example.com.conf
Created March 25, 2015 11:42
Nginx: proxy cache without utm_* parameters (remove query parameter, remove utm tags nginx)
server {
listen 443;
server_name example.com;
error_log /var/log/nginx/example_com_error.log warn;
ssl on;
ssl_certificate /etc/nginx/ssl/your.crt; #certificate chains
ssl_certificate_key /etc/nginx/ssl/your.key; #private key
@linux0x5c
linux0x5c / ex.js
Created December 27, 2018 14:40
Js example
setInterval(function(){$("#btn_group a").click();$(".modal-footer .btn-primary").click();},1000);
$("#btn_group a").click();$(".modal-footer .btn-primary").click();
@ykfq
ykfq / Kubernetes 调度优化--重平衡策略方案整理.md
Created January 29, 2019 06:50
Kubernetes 调度优化--重平衡策略方案整理
<title>Kubernetes 调度优化--重平衡策略方案整理</title>
@ilhamarrouf
ilhamarrouf / docker-compose.yml
Created May 28, 2019 04:00 — forked from sen0rxol0/docker-compose.yml
Nuxt.js with SSR featuring “Docker Multi-stage build” and “node-prune"
version: '3.5'
services:
app:
build: .
volumes:
- '.:/app'
ports:
- '3000:80'
environment: