Skip to content

Instantly share code, notes, and snippets.

View shortcuts.md

Shortcuts memo

In case i lose my memory.

UEFI

  • F2 -- enter UEFI
  • F12 -- open boot menu

Gnome

View cron.txt
* * * * * [command] > /dev/null 2>&1
* 0) minute
* 1) hour
* 2) day of month
* 3) month
* 4) week day
0,15,30,45 — multiple times
*/20 — every 20
View _tmux.conf
# remap prefix from 'C-b' to 'M-x' {alt & x}
set-option -g prefix M-x
bind-key M-x send-prefix
unbind C-b
# set {alt & x}: z -- next, c -- new, v -- tree
bind 'z' next-window
# bind 'c' new-window
bind 'v' choose-tree
@alkorgun
alkorgun / project-structure-example.txt
Created Oct 19, 2020
3-in-1 apps (with common db) project structure example
View project-structure-example.txt
.
├── service0
│   ├── __init__.py
│   ├── app.py
│   ├── exceptions.py
│   ├── logger.py
│   └── ...
├── service1
│   ├── __init__.py
│   └── app.py
@alkorgun
alkorgun / starter.py
Created May 1, 2020
asyncio graceful shutdown
View starter.py
import abc
import asyncio
import logging
import os
import signal
__all__ = [
'AppInterface',
'start'
]