Skip to content

Instantly share code, notes, and snippets.

View bennlee's full-sized avatar
🧠
Aha!

Bennett Lee bennlee

🧠
Aha!
  • NAVER Corp.
  • Seoul, Korea
View GitHub Profile
@eatnumber1
eatnumber1 / cookieauth.conf
Last active March 23, 2025 16:06
Stateless Nginx Cookie Authentication
# Simple Cookie Authorization (SCA)
#
# SCA sets up an auth scheme which uses a secure cookie, presenting basic
# auth if the cookie isn't supplied.
#
# Put this file in /etc/nginx/conf.d
#
# To use it, put a stanza like the following in a server section:
#
# set $sca_realm "My Website";
@ChrisTollefson
ChrisTollefson / bash_startup_files.md
Last active February 9, 2025 16:04
Bash Startup Files

Bash Startup Files

@SgtPooki
SgtPooki / scroll.easing.js
Last active April 6, 2023 06:05 — forked from dezinezync/scroll.easing.js
ScrollTo easing
function scrollTo(Y, duration, easingFunction, callback) {
var start = Date.now(),
elem = document.documentElement.scrollTop?document.documentElement:document.body,
from = elem.scrollTop;
if(from === Y) {
callback();
return; /* Prevent scrolling to the Y point if already there */
}
@digitaljhelms
digitaljhelms / gist:4287848
Last active May 7, 2025 06:39
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@tony4d
tony4d / p4merge4git.md
Created August 24, 2012 19:00
Setup p4merge as a visual diff and merge tool for git