Skip to content

Instantly share code, notes, and snippets.

View Rainy99's full-sized avatar
:octocat:
Starting

Rainy99

:octocat:
Starting
  • Shanghai,China
  • 18:28 (UTC +08:00)
View GitHub Profile
@Rainy99
Rainy99 / Centos-6.repo
Created January 3, 2020 02:44
CentOS6 aliyun mirror
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
@Rainy99
Rainy99 / nginx.conf
Last active December 25, 2019 01:26
nginx config template in docker
user root;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
# multi_accept on;
}
http {
@Rainy99
Rainy99 / fetch-post-formdata.js
Last active March 16, 2021 03:32
using fetch post form data
const url = '/api';
const formData = new FormData();
formData.append('username', 'admin');
formData.append('password', '123456');
fetch(url,{
method:'POST',
mode:'CORS',
body:formData
}).then(res => res.json())