Skip to content

Instantly share code, notes, and snippets.

View yangm97's full-sized avatar
🏠
Working from home

Yan Minari yangm97

🏠
Working from home
View GitHub Profile
@xaviervia
xaviervia / nginx-environment.md
Last active July 1, 2019 12:45
Nginx and Docker links with environment variables, a love story

How to add environment variables to nginx.conf

This is the hack approach to adding environment variables to the nginx configuration files. As with most Google results for this search, the reason is Docker.

The setup

I intended to deploy two Docker containers.

@hoelzro
hoelzro / multi.lua
Last active November 30, 2022 02:55
Multiple inheritance in Lua
local Mom = {}
local Dad = {}
local Child = {}
function Mom:work()
print "I'm a particle physicist!"
end
function Dad:work()
print "I'm a computer guy!"
@KartikTalwar
KartikTalwar / Documentation.md
Last active April 13, 2024 23:09
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs