Skip to content

Instantly share code, notes, and snippets.

View AchillesKal's full-sized avatar
☢️

Achilles Kaloeridis AchillesKal

☢️
View GitHub Profile
@AchillesKal
AchillesKal / Controller.php
Last active October 11, 2023 04:33 — forked from atlance/Controller.php
Open API attributes for nelmio api doc
<?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
@AchillesKal
AchillesKal / .bash_aliases
Last active January 26, 2022 15:10 — forked from akalineskou/.bash_aliases
Useful bash_aliases
# 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;
@AchillesKal
AchillesKal / tmux-cheatsheet.markdown
Created September 29, 2018 13:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname