Skip to content

Instantly share code, notes, and snippets.

View sjoorm's full-sized avatar

Alexey Tishchenko sjoorm

View GitHub Profile
@sjoorm
sjoorm / logrotate-nginx
Created August 15, 2020 12:26 — forked from aputs/logrotate-nginx
logrotate config for nginx
/var/log/nginx_*.log {
daily
compress
delaycompress
rotate 2
missingok
nocreate
sharedscripts
postrotate
test ! -f /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid`
@sjoorm
sjoorm / Loader.php
Created April 14, 2016 12:51
Simple implementation of multi-root class loader for PHP
<?php
/**
* Created by PhpStorm.
* @author: Alexey Tishchenko
* @email: alexey@atishchenko.com
* @UpWork: https://www.upwork.com/freelancers/~01ad7ed1a6ade4e02e
* @date: 12.03.16
*/
namespace sjoorm\config;
/**
@sjoorm
sjoorm / generator.sh
Last active August 29, 2015 14:01 — forked from jessedearing/gist:2351836
SSL certificate generator
#!/bin/bash
name=
if [ -z "$1" ]
then
name=cert
else
name=$1
fi
echo "Generating an SSL private key to sign your certificate..."