Skip to content

Instantly share code, notes, and snippets.

server {
listen *:80;
listen [::]:80;
server_name test.dev;
return 301 https://$http_host$request_uri;
}
server {
listen *:443 ssl;
@Mikulas
Mikulas / expected.txt
Last active April 25, 2016 09:57
ansible bug: incorect values in template variables
outer = original
inner = inner a
in template = inner a
inner = inner b
in template = inner b
outer = original
@Mikulas
Mikulas / .gitignore
Last active August 19, 2016 12:30 — forked from JanTvrdik/generate-root-certificate.sh
Generate TLS certificate signed by root certificate
/root.crt
/root.key
/root.srl
/*.crt
/*.csr
/*.key
/*.packed.pem
/*.fullchain
.channels_list_holder ul li.mention a, .channels_list_holder ul li.unread:not(.muted_channel) a {
font-weight: 600;
color: #EEE;
}
/* remove unread count badge */
.unread_highlight {
display: none;
}
.diff.line.declaration {
opacity: 1;
}
.diff.line.declaration .line.content .after-indent {
font-size: 100%;
}
diff --git a/app/config/config.neon b/app/config/config.neon
index 9ad1d56..bae44d1 100644
--- a/app/config/config.neon
+++ b/app/config/config.neon
@@ -37,6 +37,13 @@ parameters:
gm:
executable: gm # defaults to executable in path
+ nextras:
+ migrations:
@Mikulas
Mikulas / gist:956d91f3677eedb19a22
Created November 26, 2015 14:31
aws rds pg exts
pg_available_extensions
(pg_trgm,1.1,"text similarity measurement and index searching based on trigrams")
(pgcrypto,1.1,"cryptographic functions")
(chkpass,1.0,"data type for auto-encrypted passwords")
(test_shm_mq,1.0,"Test code for shared memory message queues")
(earthdistance,1.0,"calculate great-circle distances on the surface of the Earth")
(plpgsql,1.0,"PL/pgSQL procedural language")
(intarray,1.0,"functions, operators, and index support for 1-D arrays of integers")
(postgis_tiger_geocoder,2.1.5,"PostGIS tiger geocoder and reverse geocoder")
@Mikulas
Mikulas / Kernel.php
Created November 20, 2015 22:22
Example Nette Framework bridge kernel connection to PHPFastCGI fast cgi FastCGIDaemon daemon
<?php
namespace App\FastCGI;
use App\Services\RouterFactory;
use Kdyby;
use Nette\Application\Application;
use Nette\Application\IPresenterFactory;
use Nette\Application\IRouter;
use Nette\Application\Routers\RouteList;