Skip to content

Instantly share code, notes, and snippets.

Maksim Baev mbaev

View GitHub Profile
@mbaev
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): https://www.codementor.io/engineerapart/getting-started-with-postgresql-on-mac-osx-are8jcopb
@mbaev
mbaev / _content.less
Last active Nov 11, 2017
_content.less
View _content.less
@media @tablet {
.page-events,
.node-type-organization,
.node-type-blog,
.node-type-page,
.node-type-ticket,
.page-alttracker,
.page-forum,
.page-messages:not(.page-messages-view),
.page-user,
View vote.js
/*
* Обработка событий формы: голосование, воздержание, отмена голосования и вспомогательная функция.
*/
(function ($) {
/* Для совместимости JavaScript и jQuery */
})(jQuery);
function vote(v, n){
basePath = Drupal.settings.basePath;
You can’t perform that action at this time.