FROM php:8.1-fpm-alpine AS xhprof
WORKDIR /app
# graphviz and ttf-freefont are required to vizualize functions calls
This file contains hidden or 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
if [[ $# < 1 ]] ; then | |
echo 'Usage: ./start-screen.sh <screen_name> ["commands_in_quotes"]' | |
echo 'To stop screen: ./start-screen.sh <screen_name> "quit"' | |
exit 1 | |
fi | |
SCREEN_NAME=$1 | |
COMMAND=$2 | |
if ! screen -list | grep -q $SCREEN_NAME; then |
This file contains hidden or 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
if [[ $# < 1 ]] ; then | |
echo 'Usage: ./run-tmux.sh <start|stop|"command">' | |
exit 1 | |
fi | |
SESSION_FILE=tmux.session | |
SESSION_NAME=shared | |
COMMAND=$1 |
This file contains hidden or 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
<?php declare(strict_types=1); | |
class Converter | |
{ | |
private const URL = 'http://www.cbr.ru/scripts/XML_daily.asp'; | |
private const CURRENCY_ID = 'R01239'; | |
/** @var DOMXPath|null */ | |
private $xpath = null; |
This file contains hidden or 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
(() => { | |
function roundedImage(x, y, width, height, radius) { | |
ctx.beginPath(); | |
ctx.moveTo(x + radius, y); | |
ctx.lineTo(x + width - radius, y); | |
ctx.quadraticCurveTo(x + width, y, x + width, y + radius); | |
ctx.lineTo(x + width, y + height - radius); | |
ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height); | |
ctx.lineTo(x + radius, y + height); | |
ctx.quadraticCurveTo(x, y + height, x, y + height - radius); |
This file contains hidden or 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
server { | |
listen 80; | |
server_name example.com; | |
return 301 https://example.com/; | |
} | |
server{ | |
listen 443 ssl http2; |
This file contains hidden or 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
const clubs = ["Тирана","Теута","Влазния","Лячи","Кукеси","Скендербеу","Партизани","Алашкерт","Арарат","Ноа","Арарат-Армения","Пюник","Гандзасар","Урарту","Ширак","Ред Булл Зальцбург","ЛАСК","Рапид Вена","Штурм","Альтах","Рид","Санкт-Пельтен","Адмира","Аустрия","Нефтчи","Карабах","Габала","Кешля","Сабаил","Ислочь","Энергетик-БГУ","Рух Брест","Динамо Минск","Шахтер Солигорск","Спутник","БАТЭ","Неман","Славия Мозырь","Динамо Брест","Минск","Витебск","Слуцк","Гомель","Торпедо-БелАЗ","Сморгонь","Серкль Брюгге","Брюгге","Гент","Эйпен","Берсхот","Генк","Кортрейк","Левен","Антверпен","Мускрон","Стандард","Андерлехт","Сент-Труйден","Шарлеруа","Зюлте-Варегем","Васланд-Беверен","Мехелен","Остенде","Борац Баня-Лука","Радник","Сараево","Железничар","Зриньски","Широки Бриег","Берое","ЦСКА-1948 София","ЦСКА София","Левски","Локомотив Пловдив","Лудогорец","Динамо Загреб","Хайдук","Риека","Локомотива Загреб","Осиек","Славен","Вараждин","АЕЛ","Анортосис","Омония","АЕК Ларнака","Аполлон","АПОЭЛ","Виктория Пльзень","Сигма","Фас |
Retry simulation for https://github.com/wal-g/wal-g/blob/feb60cc7d25056c443b310f99639c6effe32c01c/pkg/storages/s3/folder.go#L51
Copy and paste to https://go.dev/play/
or
- Get the binary: https://github.com/fatedier/frp/releases
- wget it to your directory
tar -xvzf frp_0.53.2_linux_amd64.tar.gz
vi frps.toml
bindAddr = "0.0.0.0"
bindPort = 27000
kcpBindPort = 27000
OlderNewer