start new:
tmux
start new with session name:
tmux new -s myname
| <?php | |
| declare(strict_types=1); | |
| // ... | |
| use OpenApi\Attributes as OA; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Component\Routing\Annotation\Route; | |
| #[OA\Get( | |
| tags: ['foo-bar'], |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """This module's docstring summary line. | |
| This is a multi-line docstring. Paragraphs are separated with blank lines. | |
| Lines conform to 79-column limit. | |
| Module and packages names should be short, lower_case_with_underscores. | |
| Notice that this in not PEP8-cheatsheet.py |
| # bash_aliases | |
| alias reload_bash_aliases="source ~/.bash_aliases" | |
| alias nano_bash_aliases="nano ~/.bash_aliases" | |
| # general | |
| function check_variable_set() { | |
| if [ -z ${1+x} ]; then echo "Variable not set"; return 1; fi; | |
| if [ -z ${2+x} ]; then echo "Variable name not set"; return 1; fi; | |
| if [ -z "$1" ]; then echo "$2 not set"; return 1; fi; |