Skip to content

Instantly share code, notes, and snippets.

View wojons's full-sized avatar

Alexis Okuwa wojons

View GitHub Profile
@wojons
wojons / git+clone+ssh+agent+forward+sudo
Created August 11, 2016 03:13 — forked from scottjacobsen/git+clone+ssh+agent+forward+sudo
Git clone using ssh agent forwarding and sudo
SSH agent forwarding is great. It allows you to ssh from one server to
another all the while using the ssh-agent running on your local
workstation. The benefit is you don't need to generate ssh key pairs
on the servers you are connecting to in order to hop around.
When you ssh to a remote machine the remote machine talks to your
local ssh-agent through the socket referenced by the SSH_AUTH_SOCK
environment variable.
So you the remote server you can do something like:
@wojons
wojons / openresty-nchan-luarocks.sh
Created September 20, 2017 17:43 — forked from jmealo/openresty-nchan-redis-luarocks.sh
OpenResty + LuaRocks + Nchan
apt-get install -y libreadline-dev libncurses5-dev libpcre3-dev \
libssl-dev perl make build-essential git curl \
unzip
git clone https://github.com/openresty/stream-lua-nginx-module.git \
--branch master \
--single-branch /tmp/stream-lua-nginx-module-master
curl -L https://github.com/slact/nchan/archive/v1.1.7.tar.gz | tar xz -C /tmp
curl -L https://openresty.org/download/openresty-1.11.2.4.tar.gz | tar xz -C /tmp