0x81 SITE LOAD PERFOMANCE TESTING

Install with Nomebrew:

brew install siege

Than run with needed concurrent connections:

siege -c N http://snake.mk.ua

Press Ctrl+C to stop testing and print statistics.

Project web-site: JoeDog

macosx qa perfomance

 

0x7f SYMFONY CONSOLE, LEARN WHILE WRITING AREAFIX FOR IFMAIL NODE

Go to project dir and create composer.json

{
    "require": {
        "symfony/console": "^3.1",
        "symfony/finder": "^3.1",
        "psr/log": "^1.0"
    },
    "autoload": {
        "psr-4": {
            "": "src/"
        }
    }
}

Then run install:

composer install

Create application script file and make it executable:

touch areafix
chmod a+x areafix

Content of areafix file:

#!/usr/bin/env php

<?php
// set to run indefinitely if needed
set_time_limit(0);

/* Optional. It’s better to do it in the php.ini file */
date_default_timezone_set('Europe/Kiev');.

// include the composer autoloader
require_once __DIR__ . '/vendor/autoload.php';.

// import the Symfony Console Application.
use Symfony\Component\Console\Application;.
use Commands\GreetCommand;

$app = new Application();
$app->add(new GreetCommand());
$app->run();
?>

I put my commands to src/Commands. Command example (from http://symfony.com/doc/current/components/console/introduction.html#creating-a-basic-command):

namespace Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

class GreetCommand extends Command
{
    protected function configure()
    {
        $this
            ->setName('demo:greet')
            ->setDescription('Greet someone')
            ->addArgument(
                'name',
                InputArgument::OPTIONAL,
                'Who do you want to greet?'
            )
            ->addOption(
               'yell',
               null,
               InputOption::VALUE_NONE,
               'If set, the task will yell in uppercase letters'
            )
        ;
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $name = $input->getArgument('name');
        if ($name) {
            $text = 'Hello '.$name;
        } else {
            $text = 'Hello';
        }

        if ($input->getOption('yell')) {
            $text = strtoupper($text);
        }

        $output->writeln($text);
    }
}
symfony

 

0x7e CENTOS - REMOVE OLD KERNELS

List existed kernels: rpm -q kernel

Install yum-utils: yum install yum-utils

Remove old kernels, leave only 2: package-cleanup --oldkernels --count=2

centos linux kernel

 

0x7d BINKD FAQ

BinkD FAQ

Frequently Asked Questions on FTN Mailer Binkd Version of December 05 2010

This list of Frequently Asked Questions was compiled from the questions that were asked in the Russian echo conference RU.BINKD. Some part of the answers is based on the developers' recommendations. Please send your comments and updates to Stas Degteff 2:5080/102. This list was translated from Russian by Michael Dukelsky 2:5020/1042.

Continue reading →

fidonet binkd

 

0x7c BINKD - FLAG TO POLL UPLINK NODE

crontab:

*/5 * * * * ftn /usr/bin/touch %outbound%/NNNNFFFF.ilo

where:

%outbound% = outbound mail path

NNNN = network hex number

FFFF = node hex number

fidonet binkd

 

0x7a MACOS - START NGINX

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist

macosx nginx

 

0x78 FONT AWESOME LINK AND CDN

Site

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">