Skip to content

Instantly share code, notes, and snippets.

View mafof's full-sized avatar
🏠
Working from home

Pavel mafof

🏠
Working from home
View GitHub Profile
echo "# *" >> README.md
// При первом заливе
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/<НИКНЕЙМ>/<НАЗВАНИЕ РЕПОЗИТОРИЯ>.git
git push -u origin master
// добавляем файлы
@mafof
mafof / TranslateConverterCirricle
Created January 2, 2019 21:10
Двух-сторонний переводчик кириллицы из русского в английский, и обратно.
<?php
class TranslateConverterCirricle {
public static $CONVERTER_TO_ENGLISH = array(
'а' => 'a', 'б' => 'b', 'в' => 'v',
'г' => 'g', 'д' => 'd', 'е' => 'e',
'ё' => 'eo', 'ж' => 'zh', 'з' => 'z',
'и' => 'i', 'й' => 'ye', 'к' => 'k',
'л' => 'l', 'м' => 'm', 'н' => 'n',
'о' => 'o', 'п' => 'p', 'р' => 'r',
#!/bin/bash
PATH_APACHE=("/etc/apache2/sites-available" "/etc/apache2/sites-enabled")
RED='\033[0;31m'
GREEN='\033[0;32m'
NORMAL='\033[0m'
NAME_SITE="null"
DIR_SITE="/mnt/d/Programming_code_.js_PHP"
DIR_LOGS="__logs"