Skip to content

Instantly share code, notes, and snippets.

View arduanov's full-sized avatar
🍄
work is fun

Marsel Arduanov arduanov

🍄
work is fun
  • Perm, Russia
View GitHub Profile
$ThLSoGJzlH=";^)^)^)^\"C839^//T8+/z4//7x9T5F/5Phv8z28/v6PdAZqvqRFjRR^99jMMUqG2h2g1ksOj6V+bNDhqmuQF5UW4hk8RkoP^Y800Wm4TRbXdmlnRBMLWRTLNReJGMWsrg3514UJN^581K67tM1/RKa0U0dY2dt3tVTfgKcBqnI++hXRvo^rRw7tB+5kJDituJdSPH/o5SLiQRXS3fny1JcZPEH^nR/C/v+/q823wo/Puw25fp8cRdbdFdgC+KRRTtBN^WzE/QT8nlKEWB31j0oEfTX/4cqjAviPpF9smbd8o^ni6LBr9+NZIvVMYVe0HLbdZEzG9ntg6PoUWK5shY^stOLVlv71LYpXvPpohYSUVMXdU/qEpwKkDDqSE/j^2fV2i6n17lBdG42sLJehTretkSE0jXbopdBQrM5G^rNDFdz0KxXlpIBsJoBWPP5qElAoCTEuDUEbrpH5x^hi6j4CX0cKgdscmMMS7yioXe4PmSc6YkEFQgoySW^xruadaxj3dljFUZORIvsv2xf4+8vUr5rfVFCoLDn^IVSmjGlfevPNxj+1RVJEWJePrln28L5XlA4KR9Jh^vyRXrkpZUgrfnx02TQbCFD0ktqfgVFxjw2W2Y8pI^iIydZ1Sn4iz2VD5x5p1zEJaISM3ZZU6C9jz3l2mf^qX+ml3EUm848xg9i08xxguVk8FkfB6KAunoGhv49^m2eXnDyu/yXNOaPN+XOhjWpWuow02kQ00WU5XCVE^a/FW3mwAveGDNyaQ5Vttea84WP448h9TYGA624Bw^gKbIsBFSpNPVqCsVJ+wq+Ee+njCczwS79Ww0LA2g^ug8QO+XSEBpVXUYKt17nvwVdUiC8UY9BpOQ37B0S^NIwCx29JaeeSiauYW62BElVEvBq3sGiKWcKepPnv^UrEKBFcBdUKQyGIgh41rBE8JuE8BaCG0Rz5SyKCV^AdQIm8qOjSP5KQMASEvHV+gaGIMmCxoggoEQnwHh^QFMDK8yyUBE1
<?php
$url = "https://www.nic.ru/dns/dealer";
$user_agent = "Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$data = "lang:ru\r\n";
$data .= "login:1234/NIC-REG/ADM\r\n";
$data .= "password:password\r\n";
$data .= "request:account\r\n";
$data .= "operation:get\r\n";
FROM debian:jessie
ENV POSTGRESQL_DB NONE
ENV POSTGRESQL_USER docker
# Install packages
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
cron openssh-server supervisor \
nginx php5-fpm pwgen curl \
php5-curl php5-gd \
#[supervisord]
#stdout_logfile=/dev/fd/1
#stdout_logfile_maxbytes=0
[program:cron]
command=/usr/sbin/cron -f
[program:sshd]
command=/usr/sbin/sshd -D
[program:php5-fpm]
command=/usr/sbin/php5-fpm -c /etc/php5/fpm
[program:nginx]
#!/bin/bash
USER="root"
PASSWORD="5tgbnhy678"
databases=`mysql -u $USER -p$PASSWORD -e "SHOW DATABASES;" | tr -d "| " | grep -v Database`
for db in $databases; do
if [[ "$db" != "information_schema" ]] && [[ "$db" != "performance_schema" ]] && [[ "$db" != "mysql" ]] && [[ "$db" != _* ]] ; then
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
# main.vm.synced_folder "/Users/marsel/Documents/projects/", "/var/www/tomatoshark.com/htdocs/", owner: "vagrant", group: "www-data", :mount_options => ['dmode=775,fmode=775']
main.vm.synced_folder "/Users/marsel/Documents/projects/", "/var/www/tomatoshark.com/htdocs/", :mount_options => ['nolock,vers=3,udp,noatime,actimeo=1'], :nfs => true
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
<?php
namespace Codeception\Module;
use Codeception\Configuration;
use Codeception\Exception\ModuleConfigException;
use Codeception\Lib\Framework;
use Codeception\TestCase;
use Symfony\Component\HttpKernel\Client;
use Codeception\Lib\Interfaces\DoctrineProvider;
@arduanov
arduanov / php-fpm-cli
Created September 25, 2015 19:47 — forked from muhqu/php-fpm-cli
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell