Skip to content

Instantly share code, notes, and snippets.

View ultim8k's full-sized avatar
🛠️
Rock & roll!

Kostas Kapenekakis ultim8k

🛠️
Rock & roll!
View GitHub Profile
@ultim8k
ultim8k / install-passenger-nginx.sh
Created January 30, 2012 18:29 — forked from geoffgarside/install-passenger-nginx.sh
Script to install passenger using www/nginx FreeBSD port
#!/bin/sh
#
# Pre-requisites:
# FreeBSD
# Passenger installed as a gem
# Optional:
# Ruby Enterprise Edition instead of lang/ruby18
#
make -C /usr/ports/www/nginx clean patch apply-slist install-rc-script
@ultim8k
ultim8k / post-receive
Created February 23, 2012 20:15 — forked from yortz/post-receive
Basic git post-receive hook file to deploy a Rails app.
#!/bin/bash
APP_NAME="your-app-name-goes-here"
APP_PATH=/home/deploy/${APP_NAME}
# Production environment
export RAILS_ENV="production"
# This loads RVM into a shell session. Uncomment if you're using RVM system wide.
# [[ -s "/usr/local/lib/rvm" ]] && . "/usr/local/lib/rvm"
@ultim8k
ultim8k / more.md
Created April 21, 2012 01:17 — forked from vasilisvg/more.md
This is my backup script which syncs my server to my dropbox every day.

The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing.

You should have a similar script.

@ultim8k
ultim8k / dabblet.css
Created August 3, 2012 12:16 — forked from anonymous/dabblet.css
pdf Download box
/**
* pdf Download box
*/
html {
background: url('http://subtlepatterns.com/patterns/purty_wood.png');
}
.pdf-carier{
margin: 10%;
@ultim8k
ultim8k / functions.php
Created November 8, 2012 16:21 — forked from mikeschinkel/functions.php
Wordpress Admin Taxonomies
<?php
/*
Description: Adds a taxonomy filter in the admin list page for a custom post type.
Written for: http://wordpress.stackexchange.com/posts/582/
By: Mike Schinkel - http://mikeschinkel.com/custom-workpress-plugins
Instructions: Put this code in your theme's functions.php file or inside your own plugin. Edit to suite your post types and taxonomies. Hope this helps...
*/
add_filter('manage_listing_posts_columns', 'add_businesses_column_to_listing_list');
function add_businesses_column_to_listing_list( $posts_columns ) {
if (!isset($posts_columns['author'])) {
/*
* jQuery selectbox plugin
*
* Copyright (c) 2007 Sadri Sahraoui (brainfault.com)
* Licensed under the GPL license and MIT:
* http://www.opensource.org/licenses/GPL-license.php
* http://www.opensource.org/licenses/mit-license.php
*
* The code is inspired from Autocomplete plugin (http://www.dyve.net/jquery/?autocomplete)
*

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
@ultim8k
ultim8k / nginx.conf
Created November 13, 2015 17:40 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@ultim8k
ultim8k / A UUID
Last active March 9, 2016 11:05 — forked from jed/LICENSE.txt
generate random UUIDs
aaa