Skip to content

Instantly share code, notes, and snippets.

@romedawg
romedawg / HomeController.java
Created December 1, 2015 14:38 — forked from elvan/HomeController.java
Spring MVC + Thymeleaf starter project
package org.example.blog.app.main;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
@RequestMapping("/")
public class HomeController {
@romedawg
romedawg / gist:52000854327464464fa1
Created December 4, 2014 00:45
logstash_config.conf
input {
file {
type => "nginx_access"
path => '/var/log/nginx/access.log'
}
file {
type => "nginx_errorr"
path => '/var/log/nginx/error.log'
}
}
@romedawg
romedawg / vim_centos.sh
Last active December 18, 2015 23:29 — forked from fundon/vim_centos.sh
#!/bin/bash
# on centos minimal
yum install gcc
yum install make
yum install ncurses-devel
yum install lua lua-devel
yum install ruby ruby-devel
yum install python python-devel
yum install perl perl-devel
@romedawg
romedawg / settings.py
Last active December 18, 2015 19:49 — forked from blackrobot/settings.py
"""
Here's my sample Django settings for a project I recently did. Visit http://damonjablons.wordpress.com to see the explanation.
"""
import os
import socket
# Set DEBUG = True if on the production server
if socket.gethostname() == 'your.domain.com':
DEBUG = False