Skip to content

Instantly share code, notes, and snippets.

View serjee's full-sized avatar

Sergei Bashkov serjee

View GitHub Profile
@serjee
serjee / script-template.sh
Created November 19, 2021 14:05 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]

Docker CheatSheet 🐋

List commands, version and info

docker list docker commands

docker container --help list container commands

docker --version short info about version

@serjee
serjee / pandas-instead-sql.ipynb
Created June 12, 2020 20:27
Python: Pandas instead SQL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@serjee
serjee / mysql-cheat-sheets.md
Created June 12, 2020 19:22
MySQL Cheat Sheet

MySQL Cheat Sheet

MySQL Queries

Browsing

SHOW DATABASES
SHOW TABLES
SHOW FIELDS FROM table / DESCRIBE table
SHOW CREATE TABLE table