Skip to content

Instantly share code, notes, and snippets.

View supaket's full-sized avatar
🐼

supaket wongkampoo supaket

🐼
View GitHub Profile

Production LAMP server setup on Ubuntu 16.04

Introduction

Summary of the steps to get a Ubuntu 16.04 production server running with LAMP, multiple virtual hosts and Let's Encrypt SSL.

Initial setup

@supaket
supaket / clojure.md
Created November 3, 2018 19:47
Setting Up Clojure on OS X

Setting Up Clojure on OS X

I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.

I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.

This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.

I appreciate the effort you've put into documenting this, but there are a number of inaccuracies here that need to be addressed. We get

@supaket
supaket / ansible-summary.md
Created December 14, 2017 19:30 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@supaket
supaket / set_proxy.sh
Created June 11, 2017 10:28
Set Wi-Fi system wide proxy on Mac OS X
#!/bin/sh
# if no args prints http and https proxy info
if [ -z "$1" ]; then
echo " Wi-Fi HTTP PROXY:"
networksetup -getwebproxy "Wi-Fi"
# if only one arg turns http and https proxy on/off
elif [ -n "$1" ] && [ -z "$2" ]; then
networksetup -setwebproxystate "Wi-Fi" $1
networksetup -setsecurewebproxystate "Wi-Fi" $1
# if wtwo args sets http and https proxy

DalmatinerDB Installation Guide (Linux)

These instructions outline how to install DalmatinerDB on a single Linux x86_64 physical server or virtual machine. Scaling out will be covered in a future document. This setup guide also covers configuring CAdvisor and Telegraf to send in monitoring data and Grafana to build dashboards.

Here's how everything connects together:

dalmatiner architecture

Create a VM

Overview

These instructions outline how to install DalmatinerDB on a single node. Scaling out will be covered in a future document. It also covers configuring Telegraf to send in monitoring data and Grafana to build dashboards.

Here's how everything connects together:

dalmatiner architecture

@supaket
supaket / install-comodo-ssl-cert-for-nginx.rst
Created April 9, 2017 07:52 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@supaket
supaket / Java.md
Created February 26, 2017 16:56 — forked from JeOam/Java.md
Install Java 8 on OS X

on El Capitan, after installing the brew...

$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java

And Java 8 will be installed at /Library/Java/JavaVirtualMachines/jdk1.8.xxx.jdk/

Check version:

@supaket
supaket / gist:a82e57543a56b89bc194d6e2137c493c
Created July 13, 2016 03:24
Ansible timezone for CentOS
---
- name: Check current timezone
shell: awk -F\" '{ print $2}' /etc/sysconfig/clock
register: current_zone
changed_when: False
- name: Set UTC timezone
file: src=/usr/share/zoneinfo/{{ timezone }} dest=/etc/localtime state=link force=yes
when: current_zone.stdout != '{{ timezone }}'