Skip to content

Instantly share code, notes, and snippets.

View somat's full-sized avatar
🏠
Working from home

Akhmat Safrudin somat

🏠
Working from home
View GitHub Profile
@somat
somat / nodeappinit.sh
Last active August 29, 2015 14:05
Redhat init script for managing a NodeJS app via forever
#!/bin/sh
##
## Redhat / Linux / LSB
##
# chkconfig: 345 85 15
# description: Startup script for Express / Node.js application with the \
## forever module.
##
## A modification of https://gist.github.com/thehunmonkgroup/2042409
##
@somat
somat / Gruntfile.js
Created August 18, 2014 22:20
Gruntfile for AngularJS
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: ['public/src/js/**/*.js']
},
uglify: {
@somat
somat / nginx.conf
Last active August 29, 2015 14:05
Nginx Configuration for Codeigniter
server {
listen 80 default_server;
server_name dev.example.com;
location / {
root /usr/share/nginx/html;
index index.php index.html;
}
location /exampleci/ {