This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mojolicious::Lite; | |
use Mojo::Util qw(secure_compare); | |
use Mojo::JSON qw(encode_json); | |
use Mojo::IOLoop::Tail; | |
# Authentication | |
under(sub { | |
my $c = shift; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. VirtualBox установил через emerge | |
2. текущая версия genimotion 2.8.0 не пошла, ругался | |
genymotion: symbol lookup error: /usr/lib64/libX11.so.6: undefined symbol: xcb_wait_for_reply64 | |
3. стал ставить версию 2.6.0. Где-то удалость найти genymotion-2.6.0-linux_x64.bin | |
4. При запуске ругался на библиотеки. Оказалось нужна более ранняя версия: | |
emerge -v =media-libs/gstreamer-0.10.36-r2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.controller('parentControll', function () { | |
this.categoryData = {"selectedIdx": [], "finalCategory": {}}; | |
}) | |
/*----------------------------*/ | |
.component('categoryList', { | |
template: | |
'<ons-list>'+ | |
'<div ng-repeat="item in $ctrl.data | filter : $ctrl.filterSelected">'+ | |
'<ons-list-header>Заголовок {{ item.title }}</ons-list-header>'+ | |
'<ons-list-item tappable ng-click="$ctrl.toggleSelect(item)">{{ item.childs | json }} (уровень={{$ctrl.level}}) {{ $ctrl.selectedIdx | json }}</ons-list-item>'+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /etc/portage/patches/x11-drivers/nvidia-drivers-304.132 && cd $_ | |
wget http://pastebin.calculate-linux.ru/ru/raw/13365 -O nv-linux.h.patch | |
emerge -av =x11-drivers/nvidia-drivers-304.132 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mojolicious::Lite; | |
=pod | |
Usage: | |
perl script/redirect.pl daemon --listen http://*:80 | |
Or uncomment listen option below and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package PubSub; | |
use Mojo::Base 'Mojo::EventEmitter'; | |
use JSON::PP; | |
my $jsoner = JSON::PP->new->utf8(0); | |
has [qw(pubsub)]; | |
has ws => sub { [] }; | |
has chans => sub { {} }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global initialisation file for SciTE | |
# For Linux, place in $prefix/share/scite | |
# For Windows, place in same directory as SciTE.EXE (or Sc1.EXE) | |
# Documentation at http://www.scintilla.org/SciTEDoc.html | |
# Globals | |
# Window sizes and visibility | |
if PLAT_WIN | |
position.left=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/проектХ | |
# ветку бакапов | |
git branch backup | |
# crontab -e | |
NDAY=`date '+%u'` | |
WDAY=`date '+%A'` | |
57 3 * * * cd ~/проектХ; git checkout backup; pg_dump -U postgres --schema=public test | gpg -q --batch --yes -e -r [email protected] --trust-model always -z 9 > public.$NDAY.pg.dump.gpg; git add public.$NDAY.pg.dump.gpg; git commit -m "$WDAY"; git checkout master; git push origin backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/openrc-run | |
# Copyright 1999-2017 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# Comma-separated list of directories that contain a unix | |
# socket. Created and controlled by the related initscript. The | |
# directories created will be owned root:postgres with mode 1775. | |
# | |
# /run/postgresql is the default directory. | |
#~ PG_SOCKET_DIRECTORIES="/tmp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/uniost-postgresql.service | |
[Unit] | |
Description=PostgreSQL uniost user | |
After=network.target | |
[Service] | |
Type=forking | |
PIDFile=/home/uniost/postgresql/data/postmaster.pid | |
WorkingDirectory=/home/uniost/postgresql/data | |
User=uniost |
OlderNewer