Skip to content

Instantly share code, notes, and snippets.

View d-bo's full-sized avatar
🏠

Dmitry B d-bo

🏠
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Калькулятор доставки</title>
</head>
<body>
<form action="/" method="get">
<?php
@d-bo
d-bo / gist:165e02335b7895b8d43f
Last active August 29, 2015 14:09
postgre92 freebsd setup snipp
# freebsd-10
# php55, postgresql92-client
# search and install postgresql92-server
root# pkg search postgre
root# pkg install ...
root# passwd pgsql // set password
root# su pgsql
root# vi /usr/local/pgsql/data/postgresql.conf // listen_addresses='*' for remote connection (dev mode)
pgsql# initdb -D /usr/local/pgsql/data
@d-bo
d-bo / nginx
Created July 28, 2014 03:14
nginx rc.d init script freebsd
#!/bin/sh
# if compiled from sources
# place this file inside /usr/local/etc/rc.d
# point _pidfrefix where nginx holds pid file
. /etc/rc.subr
name="nginx"
rcvar=nginx_enable