https://bitbucket.org/account/user/glooby/projects/GLOOB http://feedly.com/i/subscription/feed/https://www.glooby.se/feed https://about.me/smedberg https://about.me/kilhage https://gemfury.com/glooby/ruby:capistrano-nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# most people include something like this. don't. | |
# check your default nginx.conf, it's already covered in a much better way. | |
#gzip_disable "MSIE [1-6]\.(?!.*SV1)"; | |
# compress proxied requests too. | |
# it doesn't actually matter if the request is proxied, we still want it compressed. | |
gzip_proxied any; | |
# a pretty comprehensive list of content mime types that we want to compress | |
# there's a lot of repetition here because different applications might use different |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript | |
AddOutputFilterByType DEFLATE application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$app_list_strings['iso_country_code_phone_prefixes_list'] = array ( | |
'' => '', | |
'AX' => 35818, | |
'DK' => 45, | |
'FO' => 298, | |
'FI' => 35, | |
'GL' => 299, | |
'IS' => 354, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$app_list_strings['phone_prefixes_list'] = array ( | |
'' => '', | |
35818 => '+ 358 18', | |
45 => '+ 45', | |
298 => '+ 298', | |
35 => '+ 35', | |
299 => '+ 299', | |
354 => '+ 354', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Emil Kilhage <[email protected]> | |
*/ | |
$app_list_strings['iso_3166_1_country_code_list'] = array ( | |
"SE" => "Sweden", | |
"FI" => "Finland", | |
"NO" => "Norway", | |
"DK" => "Denmark", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn.clock = (function () { | |
"use strict"; | |
return function () { | |
return this.each(function (i, element) { | |
var d = 0, h = 0, m = 0, s = 0, | |
date = jQuery.trim(element.innerHTML), sd; | |
function update() { | |
var time = ""; | |
if (d > 0) { |