Skip to content

Instantly share code, notes, and snippets.

Maxim Baev mbaev

Block or report user

Report or block mbaev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mbaev / new-postgres-instance
Last active Jun 24, 2018
Each new instance requires of creation database and user with access
View new-postgres-instance
$ su - postgres
$ createuser username
$ createdb -o username dbname
$ psql -c "ALTER USER username WITH ENCRYPTED PASSWORD 'qwerty'"
$ psql -c "GRANT ALL PRIVILEGES ON DATABASE dbname TO username"
# Add ability role to create databases
$ psql -c "ALTER ROLE username CREATEDB"
# Many abilities here (shortly):
mbaev / _content.less
Last active Nov 11, 2017
View _content.less
@media @tablet {
View vote.js
* Обработка событий формы: голосование, воздержание, отмена голосования и вспомогательная функция.
(function ($) {
/* Для совместимости JavaScript и jQuery */
function vote(v, n){
basePath = Drupal.settings.basePath;
You can’t perform that action at this time.