Skip to content

Instantly share code, notes, and snippets.

@kansi
kansi / production-web-server-setup-and-deployment-guide.md
Created March 15, 2024 10:17 — forked from journeymanavi/production-web-server-setup-and-deployment-guide.md
A runbook for setting up a Linux based secure, production web server, for serving static web content as well as deploying Node.js based web applications.
@kansi
kansi / install-ffmpeg-amazon-linux.sh
Last active June 1, 2017 07:18 — forked from alfonsodev/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF
@kansi
kansi / observer.md
Created February 5, 2016 15:59 — forked from pnc/observer.md
Using Erlang observer/appmon remotely

Using OTP's observer (appmon replacement) remotely

$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769

Note the running on port for epmd itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:

$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host