Skip to content

Instantly share code, notes, and snippets.

Avatar

Link linkdesu

View GitHub Profile
@linkdesu
linkdesu / cheatsheet.md
Last active Apr 11, 2022
[vim] #cheatsheet
View cheatsheet.md

Config

Show version

:ve

Solve indent problems when pasting

:set paste

turn line number on/off

:set nu

@linkdesu
linkdesu / nginx.conf
Last active Jul 10, 2021 — forked from Stanback/nginx.conf
[nginx-cross-origin] Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs #nginx #conf
View nginx.conf
#
# 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;
#
# For more information on CORS, please see: http://enable-cors.org/
@linkdesu
linkdesu / summonEruda.js
Last active Sep 27, 2019
Summon eruda devtool when you cast the spell.
View summonEruda.js
;(function () {
var step = 0
function load (url, callback) {
var script = document.createElement('script');
script.src = url;
script.onload = callback;
document.body.appendChild(script);
}
function summonEruda (e) {
if (e.target.dataset && e.target.dataset.summonEruda) {