Skip to content

Instantly share code, notes, and snippets.

View paskal's full-sized avatar

Dmitry Verkhoturov paskal

View GitHub Profile
@paskal
paskal / site.conf
Last active April 27, 2024 00:55 — forked from plentz/nginx.conf
Nginx configuration for best security and modest performance. Full info on https://terrty.net/2014/ssl-tls-in-nginx/
# read more at https://terrty.net/2014/ssl-tls-in-nginx/
# latest version on https://gist.github.com/paskal/628882bee1948ef126dd/126e4d1daeb5244aacbbd847c5247c2e293f6adf
# security test score: https://www.ssllabs.com/ssltest/analyze.html?d=terrty.net
# your nginx version might not have all directives included, test this configuration before using in production against your nginx:
# $ nginx -c /etc/nginx/nginx.conf -t
server {
# public key, contains your public key and class 1 certificate, to create:
# (example for startssl)
# $ (cat example.com.pem & wget -O - https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem) | tee -a /etc/nginx/ssl/domain.pem > /dev/null
@fangelion
fangelion / _styles.css
Last active August 29, 2015 14:08
Исправленый черновой код.
/* Just some base styles not needed for example to function */
/* Source: http://www.thecssninja.com/css/css-tree-menu*/
*, html { font-family: Verdana, Arial, Helvetica, sans-serif; }
body, form, ul, li, p, h1, h2, h3, h4, h5
{
margin: 0;
padding: 0;
}
body { background-color: #606061; color: #ffffff; margin: 0; }
@oxpa
oxpa / jpegs.php
Last active October 21, 2016 08:11
chatlogs parsing
<?php
date_default_timezone_set('UTC');
echo '<html>';
$request=explode('/',$_SERVER['SCRIPT_NAME'],3);
$log_url=$request[2];
if (empty($log_url)) {
$upper="programming@conference.jabber.ru/".date('o/m')."/";
$log_url="programming@conference.jabber.ru/".date('o/m/d').".html";
};
$log = @file_get_contents("http://chatlogs.jabber.ru/${log_url}");