Skip to content

Instantly share code, notes, and snippets.

View topwebmaster's full-sized avatar
:octocat:
Always answer.

Dmitriy Petrov topwebmaster

:octocat:
Always answer.
View GitHub Profile
@topwebmaster
topwebmaster / Apache+Mysql+PHP
Last active August 29, 2015 14:08
Vagrant Ubuntu Lamp Ruby Python - quick settings fot dev env. Настройка окружения для PHP
for non english sudo apt-get install language-pack-UTF-8 or sudo locale-gen UTF-8
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated for Laravel 4.2.8 on 2014-08-26.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
@topwebmaster
topwebmaster / .htaccess
Created September 24, 2014 13:22
.htaccess tips and tricks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
@topwebmaster
topwebmaster / Mail Server on Ubuntu 14.04
Last active September 3, 2023 23:57
Settings Linux mint after fresh install for php developing
https://www.exratione.com/2014/05/a-mailserver-on-ubuntu-1404-postfix-dovecot-mysql/
Ex
Ratione
GitHub • Consulting • Blog • Archives • Feed
A Mailserver on Ubuntu 14.04: Postfix, Dovecot, MySQL
By Reason May 1, 2014 Permalink
This long post contains a recipe for building a reasonably secure Ubuntu 14.04 mail server in Amazon Web Services, using Postfix, Dovecot, and MySQL, with anti-spam packages in the form of amavisd-new, Clam AntiVirus, SpamAssassin, and Postgrey. Local users are virtual rather than being system users. Administration of users and domains is achieved through the Postfix Admin web interface. Webmail is provided by Roundcube.
@topwebmaster
topwebmaster / hosts.sh
Created August 25, 2014 06:59
полу Автоматическое добавление хостов
#!/bin/bash
echo "Creating Virtual Host"
cd /etc/apache2/sites-available
cat <<EOF >> "$1"
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost
ServerName $1
ServerAlias www.$1
DocumentRoot "/var/www/$1"