Skip to content

Instantly share code, notes, and snippets.

@hilja
hilja / common.conf
Last active August 17, 2020 06:19
My NGinx configuration files. In no means the perfect setup. /etc/nginx/nginx.conf is the main conf file.
# Global configuration file.
# ESSENTIAL : Configure Nginx Listening Port
#listen 127.0.0.1:8080;
listen 80;
# ESSENTIAL : Default file to serve. If the first file isn't found
index index.php index.html index.htm;
# ESSENTIAL : no favicon logs
location = /favicon.ico {
@hilja
hilja / create-mysql-db.sh
Last active August 17, 2020 06:21
Shell script to create MySQL database and user
#!/bin/bash
# Functions
ok() { echo -e '\e[32m'$1'\e[m'; } # Green
EXPECTED_ARGS=3
E_BADARGS=65
MYSQL=`which mysql`
Q1="CREATE DATABASE IF NOT EXISTS $1;"
@hilja
hilja / .csscomb.json
Created April 4, 2014 10:43
My csscomb conf file. Just basically brutally alphabetised.
{
"exclude": [
".git/**",
"node_modules/**"
],
"always-semicolon": true,
"block-indent": " ",
"colon-space": ["", " "],
"color-case": "lower",
"color-shorthand": true,
@hilja
hilja / gist:6192275
Created August 9, 2013 09:08
config.rb file for Compass projects
http_path = "/"
css_dir = ".."
sass_dir = ".."
images_dir = "images"
javascripts_dir = "js"
# output setup
# sass_options = { :sourcemap => true }
# sass_options = { :debug_info => true }
# output_style = :nested