The final episode of the “Team to Pump Up” project is dedicated to the “Crystal” team from Krasnodar. Working with command history

December 22, 2017

The eight-episode Match TV project “Team to Pump” is nearing completion, which for two months introduced the channel’s viewers to mass Russian football. The geography of the project and the participants in the show changed from issue to issue. The most prolific scorer in the history of Russian football, Alexander Kerzhakov and the legendary Dynamo player Ahrik Tsveiba, while traveling through the football hinterland of Russia, worked to change the life of the football province for the better.

The final episode of the travel reality series was filmed in Krasnodar. The Crystal team is clearly experiencing problems, as evidenced by its 11th place. At the first training session, the star mentors saw that the players were scattered, there was no interaction on the field, the coach was not available, but two captains were revealed at once. The reason is the recent merger of two football teams. The first step is to decide who will lead the team. Ahrik Tsveiba helps distribute responsibilities between the player-coach and the player-organizer. At daily training sessions under the leadership of Alexander Kerzhakov, football players work to improve their attack and select the correct positioning of players on the field.

“The main problem of our Krasnodar players lay on the surface. And we immediately told the guys - you don’t have a team. And there is nothing to be offended by! – project leader Alexander Kerzhakov shares his impressions of communicating with Kristall football players. – They suggested working in this direction first and foremost. In addition to the tasks that we solved directly during training, Ahrik and I considered it necessary and obligatory to strengthen the players’ faith in team spirit. This is how ideas with new attributes appeared. It turned out we were right, and the guys took it all with the greatest enthusiasm.”

The day of the verification meeting arrives. Two pleasant surprises await players at once. Before the match, the team was presented with a uniform with a new emblem. A new team anthem was also presented, which the project leader asked Karen Kavaleryan to write in collaboration with Oleg Popkov. We will find out whether the football players will live up to the hopes of their fans and star coaches of the “Team to Pump Up” project on Saturday, December 23, at 14:25 on Match TV.

On November 5 at 15:00, Match TV will air a new travel reality show, “Team to Pump.” Changing the life of the football province forever is a task that the most prolific scorer in the history of Russian football, Alexander Kerzhakov, solves while traveling around Russia.

Together with ex-footballer of the Russian national team Akhrik Tsveiba, they will “pump up” local teams by working on training, psychology and motivation. In the meantime, the project team will change the image of the athletes, update their uniforms and renovate the football club premises.

Format new program developed by a large international company Fremantle. Filming of similar travel reality films previously took place in Spain and Italy under the original title “Football Nightmares.” The project is adapted to Russian football specifics, and each episode will be dedicated to a specific team. The filming will focus on a week in the life of a football club from the first training session to the big final match.

– We are glad that the travel reality “Team to Pump” will be shown on Match TV. They're a very reputable channel, so we're delighted to be working with them,” says FremantleMedia executive producer Andrew Wightman. – We believe that our format is ideal for viewers of such a respected channel, especially since this year Russia will host the World Cup. We are sure that Russian version our travel reality will be a successful project. We hope that “Team to Pump” will become a multi-season series in the coming years.

In total, eight teams will upgrade. In the first episode, the presenters will go to the Ryazan region to the Spotlight team. After studying the situation and the players’ performance, the presenters will determine a list of goals for the week. While they will conduct training and cultivate team spirit, the project organizers will renovate the dilapidated interior of the club premises. The results of the repairs will only be shown a few hours before the final match to give the team additional motivation. The story will culminate in a match with traditional football rivals. Victory or loss will demonstrate how successfully the players absorbed the instructions of the legendary coaches and how motivated they were to change their sports lives for the better.

– It’s cool to make your debut as a TV presenter in such a project. Akhrik Tsveiba and I got an excellent opportunity to help small teams with our experience and skills,” says Match TV host Alexander Kerzhakov. – I am sure that such projects can make football better and add enthusiasm to the audience.

Each team in travel reality has its own history, its own problems, and its own ways of solving them. The geography of the project and the characters of the participants will change from issue to issue. New project“Match TV” “Team to Pump” will introduce viewers of the channel to mass Russian football and will give lesser-known local teams a chance to improve their performance.

“The producers, presenters, film crews, and all the accompanying technical staff put a lot of effort into this project,” says Tina Kandelaki, general producer of Match TV. – Previously, we successfully held two shows about football: “Who wants to become a foreign player?” and “NON-football country.” Now we have decided to continue the diversity of genres and make a social travel reality. There have never been such programs about football on Russian TV; they were made in Spain and Italy. Eight episodes are planned, but we believe that we will not limit ourselves to one season.​

Any Unix user who has spent a couple of hours learning basic commands and bash syntax knows that the command line is a convenient tool. But not everyone understands how effective a console can really be. In this article we will look at many interesting tricks that will allow you to improve your command line skills so much that you will no longer want to return to the graphical interface.

This article will not teach you how to use the console, how to combine commands into pipes and redirect I/O. It's not about how to write scripts or functions. You won't learn from it how bash differs from tcsh. Its task is to show you how to use the console to its fullest, add +50 to command input speed and +100 to efficiency. Therefore, beginners should start with basic guides or at least study the linux cheat sheet.

And without thinking twice, we’ll get down to business.

Migrating to ZSH

The first thing you should do before you start leveling up your skills is to get rid of bash. Not because it's bad or outdated, but because ZSH exists. It will truly increase your productivity.

ZSH is a very complex and comprehensive shell. Complete Guide ZSH has about 800 pages, and probably no one knows absolutely all its functions. But this is not required of anyone. There has been a project in the world for several years now oh-my-zsh, where users create a set of scripts with which you can tweak and configure ZSH quickly and easily.

To get a standard set of tweaks and settings, including a powerful autocompletion mechanism, an informative command prompt, and settings that improve the usability of working with ZSH, simply install oh-my-zsh. Then you can add plugins to make it more convenient to work with different applications and change the invitation theme to any of dozens created by users.

So, first, install ZSH:

$ sudo apt-get install zsh

And then download and install oh-my-zsh:

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

The installation script will clone the git repository into the /home/username/.oh-my-zsh directory, add the necessary changes to call the necessary scripts in the /home/username/.zshrc config and launch ZSH.


Now you need to make ZSH the default shell:

$ sudo usermod -s /usr/bin/zsh username

And re-login so that the terminal emulator uses ZSH as the default shell. As an optional step, you can change the theme. The oh-my-zsh kit includes a huge number of themes, which can be found on the wiki page. To choose new topic, correct the value of the ZSH_THEME variable in the ~/.zshrc file. Let's choose, for example, the agnoster theme:

ZSH_THEME="agnoster"

Moving through catalogs quickly

One of the main problems with the console is that it is inconvenient to use for navigating directories. Especially if there are a lot of subdirectories, they have long names, and even worse - similar names. In this case, the auto-completion system using the Tab button does not help much and all that remains is to type the directory names by hand.

ZSH makes navigation easy. First of all, it can correct the case of letters, so you can start typing something like

$ cd ~/do

$ cd ~/Downloads

Secondly, the ZSH directory name completion system is much more advanced than its bash counterpart. If ZSH detects that the names of several directories at once begin with the characters you entered, it will not beep and then display a list of directories, forcing you to clarify the request, but will immediately display the list and allow choose desired directory using Tab or arrows.


Thirdly, autocompletion works not only for the beginning of a directory/file name, but also for any part of it. To go to the ~/Downloads directory, you can type load and press Tab.

Fourth and finally, ZSH can complete directory names along the entire path, and not just in the last part. This means you can type something like this:

$ cd /u/s/zs

Then press Tab and get this:

$ cd /usr/share/zsh

Moreover, you don't even have to type the first letters of directory names. ZSH and bash are able to find the necessary directories on their own if they are listed in the CDPATH variable. For example, add the following line to ~/.zshrc:

Export CDPATH=/var/www:/home/user_name/Dropbox

Now, to open the ~/Dropbox/Books directory, you can use the following command:

$cd Books

ZSH will check to see if there is a Books directory in /var/www or /home/username/Dropbox and move you to it if it exists.

Fasd

There is also a much more powerful tool for moving between directories. This is the fasd (pronounced fast) utility. It remembers all the directories (and just file paths) that you used, and allows you to move between them by specifying only part of the path (even a few letters).

It works like this. Let's say you previously went to the ~/src/projects/apps/myCoolApp directory and now, hours or even days later, you want to return to it. All you need to do is run this command:

$z myCoolApp

It can be simpler:

$z CoolApp

And even simpler:

$z Cool

There is only one requirement: the character set you specify must be unique among all the paths that fasd remembers. In addition to z, fasd also supports other shortcuts: a - shows all saved paths, zz - allows you to go to the directory using the interactive menu (if the entered character set appears in several paths), v - opens the file in the Vim editor.

The fasd utility is available for Debian/Ubuntu, Arch Linux via AUR and for macOS via brew. You can install it on Ubuntu like this:

$ sudo add-apt-repository ppa:aacebedo/fasd $ sudo apt-get update $ sudo apt-get install fasd

Plugins=(git fasd)

Peco

Peco is another tool that can make navigation as well as search much easier. This is a small utility that takes a list of strings as input and displays a pseudo-graphic menu with which you can select or find the desired string. Next, peco gives this line as output and completes its work (in fact, it is a console analogue of dmenu).

Peco can be used to navigate and search any text string, including paths. For example, if you run the following command and select a directory, peco will print its name in the terminal:

$ls | peco

Not very convenient or useful. However, if you complicate the example a little, you will get an interactive cd:

$cd`ls | peco`

The benefits appeared, but the convenience suffered. So let's create a short and simple alias for this command. To do this, add the following line to ~/.zshrc:

Alias ​​cdi="cd `ls | peco`"

The cdi command will now launch our interactive cd.

By the way, about the cd itself. Remember two simple rules:

  • team CD without arguments will send you to your home directory;
  • team cd- will return to the previous directory.

Peco

Using autocompletion to its fullest

The ZSH autocompletion system is interesting not only for its intelligent functions, but also because it works with more than just directory and file names. ZSH can supplement the flags and options of many utilities and display convenient help for them, can supplement the names of packages of apt-get, yum, pacman and other package managers, and supplements host names when connecting via SSH. If you type kill and press Tab, ZSH will list the processes. After pressing Tab a second time, the list will become interactive and you will be able to select the process that should be killed.

In addition to built-in autocompletion rules, on-my-zsh has many plugins with autocompletion rules for many utilities and applications.


Working with command history

Any modern command interpreter, be it ZSH or bash, stores a history of entered commands. ZSH stores history in the /home/username/.zsh_history file. If necessary, you can grep it (grep ls ~/.zsh_history) to find the right command. But it is not at all necessary to do this, because the command interpreter already has in its arsenal a set of tools for working with history.

For example, the following command will insert the previous command into the input line:

$ !!

This is especially useful if you forgot to specify sudo before a command that requires root privileges:

$ pacman -Syu error: you cannot perform this operation unless you are root. $sudo!! sudo pacman -Syu

You can only take the command argument from history. For example:

$ cd /home/user/foo cd: /home/user/foo: No such file or directory $ mkdir !* mkdir /home/user/foo

And this way you can insert the last command into the input line, starting with the specified characters:

$!qwerty

If you need to find a command with the specified characters somewhere in the middle or at the end, you can do this:

$!?qwerty?

You can even correct typos in the last command you entered:

$^dc^cd

Using the Ctrl + R combination, commands can be searched interactively. Just start typing the characters present in the command, and ZSH will insert the desired command into the input line. This is a very convenient function, but it can be made even more convenient if you use the capabilities of the peco we are already familiar with.

You can find a third-party plugin for oh-my-zsh on the Internet called zsh-peco-history. Just download it to the ZSH third-party plugins directory:

$ git clone https://github.com/jimeh/zsh-peco-history.git $ZSH_CUSTOM/plugins/zsh-peco-history

And activate it in ~/.zshrc:

Plugins=(git fasd zsh-peco-history)

Ctrl+R will now launch the full screen peco menu instead of the single line search bar.

Copy, delete, rename

It would seem that what could be simpler than copying or renaming a file? Just enter the command cp or mv, and then the old and new names:

$ cp httpd.conf httpd.conf.bak

But why bother pressing extra buttons when you can do this:

$ cp httpd.conf(,.bak)

$ rename "s/regular/what_to_replace/" *.txt

This command will replace all substrings that match the regular expression in the names of all files with the .txt extension. Not bad, isn't it?

It's also worth learning about the basename command. In normal use, it simply prints the last element of the path:

$ basename /usr/bin/zsh zsh

But it can also be used to cut off parts of a string, for example:

$ basename file.txt .txt file

You may ask, what does this do? Here's what:

$ for file in *.png; do convert "$file" "`basename "$file" .png`.jpg#26759185" ; done;

This is a converter of all PNG files to JPG. The command is extremely simple: we create a loop that goes through all the PNG files in the current directory, then runs the convert command to convert them to JPG. Basename is needed here in order to give new files the correct name. Hint: Backticks run the enclosed command in what is called a subshell. They are needed to run one command from another.

To understand their power, pay attention to the following command:

$ rm -f `tar ztf /path/to/file.tar.gz`

I’m sure this command will save you more than once when you unpack the tar.gz archive into the wrong directory. It deletes all previously unpacked files.

Looking for the right thing

You should already know that any UNIX system has a find command designed to search for files. It is extremely simple to use:

$find. -name *.c -type f

This command will find all files with extension .c in the current directory and all its subdirectories. But what if you need to find the open line in each of these files? And here it is:

$ find -name *.c -type f | xargs grep open


It can be done a little differently:

$find. -name *.c -exec grep -H open() ;

This example is a little more complicated and, oddly enough, slower. Why? Because xargs will parallelize the search by running a separate grep process for each line.

If you wish, you can get rid of find altogether:

$ grep -R open --include="*.c".

This is essentially the equivalent of the previous command.

Working with the clipboard

While reading this article, you probably copied commands every now and then and pasted them into the terminal. If not, then you typed them yourself, which is correct, your memory will thank you. In any case, copying and pasting commands into the terminal is terribly inconvenient, just as the concept of copying/pasting itself is inconvenient.

However, in the case of the terminal, you have one very powerful tool. It's called xclip and it allows you to copy and paste to the clipboard. First, add the following lines to ~/.zshrc and restart the terminal (or ZSH):

Alias ​​-g xcopy="xclip -selection clipboard" alias -g xpaste="xclip -selection clipboard -o"

Now, to copy something to the clipboard, simply redirect the output to xcopy. For example:

$ uname -a | xcopy

The output of the uname -a command will appear on the clipboard. You can insert it in the same way:

$xpaste

The output can also be redirected. Or enclose xpaste in backquotes so that its contents are executed by the shell.

conclusions

The command line is not just a powerful tool. This is such a powerful tool that I can't even think of what type of OS interface could be more efficient. What I wrote about is such a tiny part of the tip of the iceberg that to describe all the tricks command line a series of books akin to the Great Soviet Encyclopedia would be required. And finally, what everyone has been waiting for for so long - dd showing progress:

$ pv -tpreb /dev/sdb | dd of=~/sdb.img bs=1M

The hosts of the travel reality show "Team to Pump" Alexander Kerzhakov and Ahrik Tsveiba, after the first meeting with the players of the Karcha team, drew conclusions why the club does not rise above 7th place in its league

In general, the situation turned out to be not as depressing as in previous clubs, with which the star coaches of Match TV had already had to work. The club has a decent training base and good players. However, they clearly lack the discipline to conquer new heights.

Our professionals did not need long conversations with players to identify the worst offenders. Under the blow of constructive criticism were the greatly improved playing coach Arthur, inseparable friends Mukhammat and Marat, who solve problems on the football field with the help of their fists, and goalkeeper Binya, who is constantly late for training.

“It was clear that the football players needed to be reminded once again that football is, first of all, a discipline,” says program host Alexander Kerzhakov. - The goalkeeper had to personally explain that professional teams impose huge fines for being late. I hope he realized that punctuality is important not only in football. Either no one will take him seriously, or he himself will feel proud when he forces himself to arrive on time and do everything. Of course, we didn’t expect to re-educate and transform grown men in a few days, but we asked for the main thing: when going out onto the field, give all your strength to the game.”

Alexander Kerzhakov began daily training and instilling the team spirit of the football players. Akhrik Tsveiba went home to the player coach, who had greatly recovered, for an educational conversation. At the same time, I agreed with his mother about switching to a healthy diet.

It was decided in practice to discipline the always late goalkeeper. He was called to the next training session an hour early so that he could feel all the negativity of his optionality. The fighters Mukhammat and Marat were sent to re-education in kindergarten so that when dealing with naughty kids they feel how sometimes they themselves behave like children.

The presenters also held team building in the mountains, where a two-way competition took place in a mountain clearing. The team treated Kezhrakov and Tsveiba to shish kebab from young lamb, and after that everyone sang songs and danced traditional dances.
4 days of training flew by like one. On the eve of the match with the national team of the Nogai region, Kerzhakov and Tsveiba addressed the players with a parting speech. A pleasant surprise awaited the athletes in the locker room - a new football uniform. And the goalkeeper who arrived in advance.

The Match TV project “Team to Level Up” continues to introduce viewers of the channel to mass Russian football, and gives lesser-known regional teams a chance to improve their performance. There are still many new cities and teams ahead of travel reality, which may not be waiting for us, but certainly need us.

Watch the next episode of “Team to Pump” this Sunday at 12:55 on Match TV.

Proper team development Here is information for those who have recently started developing a team or who have little experience. Although I think experienced teams will learn something new for themselves... How to start developing a team. There are 2 main strategies for team development. 1. Reliable approach. You immediately start playing with a level below (-1). By constantly playing at level -1, you play more games compared to your level or level +1. Therefore you get more money. The team slowly moves forward, from League to League, managing to level up evenly. Sometimes leveling up starts with the Pro League. But the result is always the same. Having reached the Star League, by that time your team can exceed, in terms of stats, its competitors in level by more than 2 times. The team has no problems with in cash and continues to swing. All players are leveled up evenly. This is a very important factor, because more high levels , you have to play 40-50 games a day!!! Therefore, at higher levels, players, without bothering, set the Quick Game Mode and the computer itself randomly selects the composition. This method of team development is very long, but the most reliable. 2. Intellectual approach. For people who love to use the capabilities and resources of the team as efficiently as possible. The team plays with its level and a higher level, quickly moving from League to League. With such rapid advancement, uniform leveling of the entire team is no longer necessary. Swing - one maximum two players in each line, + 1 Goalkeeper. The rest of the players, when moving from level to level, are replaced with stronger ones... Replacement occurs only during the free agent transfer window, and the money goes exclusively to upgrading selected players. How to choose who to download?? Here you will need: observation, analytical skills, ingenuity, tactical thinking and the ability to adapt to new conditions... First you need to choose the optimal game plan for your team and composition. This will require a series of experiments and games. Change players' positions and view statistics at the end of the match: Who scored how many, from which flank your team scored goals. In general, you will have to look for optimal combinations of players. The same can be said about defense and midfield. If you miss the most from a certain flank or in the center, it means you need to improve the players in this position or replace them with others. In general, look... When you find the most goal-scoring players in the team (2 in each line) - upgrade only them, change the rest in the transfer window. The best assistant in finding the optimal combination is playing for trophies. There is a computer there that randomly selects the arrangement and composition. Allowing you to observe how players perform in certain positions. You can also keep an eye on opposing teams, noting useful players. This method of team development will require more intellectual effort from you, but it will significantly speed up the advancement and development of your team. IT IS DESIRABLE THAT THE COACH AND ALL PLAYERS HAVE THE SAME SPECIALIZATION. Since the coach gives additional stats to the players in the match. But this does not mean that when the game starts, you immediately need to buy up all the players of the coach’s specialization. You may have to change more than once a coach from one specialization to a coach from another specialization. Before the Champions League, you can play with players of different specializations, but after that it’s still worth making a choice. Currently, the priority specialization is Calculator, then Strength, then Runner and Creative. But we’ll talk about this in more detail in the next topic called: Specialized or Driven?? And the last thing... When you train (pump up) players, it is advisable to devote ALL THE TIME to training (once every 36 hours)!! It makes no sense to finish training early, because... money in the game does not fall from heaven, but turnips (reputation points) are spent on it. Reputation is given for matches from 5 to 15 per match - depending on the level of the team relative to you. All reputation should be invested in leveling up the % of the team’s line. We bring the goalkeepers up to 100% and forget about them forever and ever - we invest as much as we have into the remaining lines. How to recruit Friends. The number of daily games depends on the number of friends. Ideally, you need to have 126 friends, then you can play 36 regular games + 10 with friends every day. The method for increasing the number of friends is as follows: a) go to the level below, find a suitable team, click on the manager, his personal information will appear in the next window, add him as a friend. b) Open the PF Tournament. It doesn’t matter what league you’re in, only strong unions make it to the playoffs. Click on duplicate compounds. We select an alliance, then a suitable team, preferably several levels lower, and add them as friends. The higher the rating of the union in which it is listed, the better. c) go to the chat, find managers with suitable teams, viewing their level and alliance, click on the “I” icon, in the team page that opens we find the manager’s name, click on it and get to his page. Next, add him as a friend. It is advisable to have weaker friends from strong alliances (see the results of the last all-Union tournament and the rating of alliances in the table). It should be borne in mind that friends can also strengthen before the tournament, so you should regularly review, especially the last pages of the list of friends, and it is advisable to part with those who have become stronger than you, so that they and their alliances do not gain points at your expense. You should also take into account that games with friends from our union during the all-Union tournament do not bring points, so it is advisable to be friends with weak teams from strong unions. If there are not enough friendly teams, then for a while you can be friends with non-allied teams that are not part of any alliance. During the PF Tournament you can play with them, then no points will be added for either victory or defeat. How to play Event. Be sure to play in Events, where you can earn a lot of money without investment. Event game for the patient and hardy. The opportunity to play the Event appears starting with the League of Masters. The game method is approximately as follows: 1. It is advisable to enter the event immediately after the start or exactly at the time specified in the hint. 2. Try to make a points lead over your closest competitors. This takes about half an hour, the gap should be larger, 60-80 points 3. Next, you need to monitor the situation and the standings. If necessary, continue to play, even if you lose, then you will be awarded bonuses to your team for playing in the Event. 4. The last push usually occurs in the last hour of the event. At this moment, there is usually a fierce struggle for a place in the table, on which the amount of bonuses depends. 5. At this moment, it is sometimes more profitable to wait for another, weaker Event leader than to play with a strong one, because there are intervals between games of several minutes during which everything can change. Remember that with the accepted bonus system in the Event, when proper game you can beat stronger opponents that you would normally lose to in regular games. Therefore, if you enter the event exactly at 10:00 or 14:00, take a lead in points, constantly monitor the positions of teams and weak leaders of the Event in order to play with them in time and score points, and play carefully in the last hour or two, then everyone has a good chance of getting good money, which is so needed on the eve of the tournament. If you entered the Event late or the opponents there are too strong in terms of indicators in the team lines, wait and enter the next event. Everyone is tired, everyone is tired, it is impossible to sit in front of the computer for 4 hours and win all the time, so perhaps in the next game there will be other, weaker opponents and you will have more chances.