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.

Steps

- sudo apt update
- sudo apt full-upgrade
- sudo apt-get install libssl-dev
- sudo apt-get install -y python3-pip # ensure python 3.6 or higher is installed
- pip3 install virtualenv
- virtualenv bdb
- . ./bdb/bin/activate
@kansi
kansi / erlang_install_deps_asdf.md
Created June 1, 2017 11:37
Install erlang centos
sudo yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git

asdf install erlang 19.3
@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 / install libvirtd
Last active March 14, 2016 16:52
Libvirt installation
install libvirt from source
http://nolimitsdesigns.com/game-design/ubuntu-14-04-libvirt-compile-and-install/
- download package
- install deps
sudo apt-get install gcc make pkg-config libxml2-dev libgnutls-dev libdevmapper-dev libcurl4-gnutls-dev python-dev libpciaccess-dev li
bxen-dev libnl-dev libyajl-dev uuid-dev
- ./autogen.sh --system
@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
Let's revisit the source
" man, to daughter: I know what guys are like! no dating till you're married!
same man, to feminist: hey not all guys are like that! "
and then you (@Cherrykrush) said
" The double standard that exists when a concerned dad says the very same
thing, in essence that a feminist says."
So you seem to think that both (the dad and feminist) have the same assumption