Skip to content

Instantly share code, notes, and snippets.

View geraldsamosir's full-sized avatar
🔥
on fire

Gerald Halomoan Samosir geraldsamosir

🔥
on fire
View GitHub Profile
@geraldsamosir
geraldsamosir / stuns
Created January 31, 2018 08:23 — forked from yetithefoot/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@geraldsamosir
geraldsamosir / Dockerfile
Created November 15, 2017 09:24 — forked from AkimaLunar/Dockerfile
Node.js 8 and NPM 5 on Ubuntu 16.04 Xenial Dockerfile
# Use an official Ubuntu Xenial as a parent image
FROM ubuntu:16.04
# Install Node.js 8 and npm 5
RUN apt-get update
RUN apt-get -qq update
RUN apt-get install -y build-essential
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
RUN apt-get install -y nodejs
@geraldsamosir
geraldsamosir / nginx.conf
Created November 8, 2017 01:55 — forked from somat/nginx.conf
Nginx http proxy with ssl example.
server {
listen 80;
server_name api.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name api.example.com;
ssl_certificate /etc/letsencrypt/live/api.example.com/fullchain.pem;
@geraldsamosir
geraldsamosir / RubyOnArch.md
Created October 17, 2017 08:33 — forked from jhass/RubyOnArch.md
My Ruby setup on Archlinux

Ruby on Archlinux

I thought I would document my setup, since it's somewhat non-standard but working quite well for me.

What this does

  • Install major Ruby versions at their latest patch release
  • Allow to switch between them seamlessly
  • Use chruby
  • Encourage bundler usage