Build something fun by Ray

Technology, Ideation, Startup

Session Middleware of DRF

Login, session and cookie An *HTTP cookie* (web cookie, browser cookie) is a small piece of data that a server sends to a user's web browser. The browser may store the cookie and send it back to t...

Django Restful Framework Videos url:: drf实战和源码剖析 channel:: https://space.bilibili.com/336469068 tags:: rest, DRF, python, django, web, API date:: [[Sep 25th, 2023]] tutor:: 武沛齐 Resources headi...

Python Django deployment

Normally there are following way to deploy python service ECS/EKS EC2 EBS (elastic beanstalk) Lambda WSGI WSGI is the Web Server Gateway Interfa...

Docker storage

Python+Deep+Dive+2.pdf List Comprehension nested 1 2 [(i, j) for i in range(1, 6) if i%2==0 for j in range(1, 6) if j%3==0] [[i*j for j in range(5)] for i in range...

nvim trick

Some Neovim tricks [nvim]{.spurious-link target=”nvim”} [keymap]{.spurious-link target=”keymap”} < C-Y > scroll-up <C-U> scroll-down H, M, L go to high/middle/low it should move to ...

dynamo and lock

Lock ** Optimistic Locking ** With Optimistic Locking, there is always one attribute in your DynamoDB table that will act as a “/version number./” It can be a nano-id, an integer, or a timestamp...

Alacritty Multi session with neovim

tmux or nvimnvim terminal

Tmux is a standard way, there is an alternative: If you are a user of neovim, you can use nvim to do terminal buffer management Check this: Do not need to worry bugs in tumx regarding fonts disp...

Setup postgres debugger env with docker

debug pl/sql with docker and dbeaver

pldebugger setup pldebugger require recompile with postgresql source code. A little bit hard to setup. Lucky enough, debian provides already compiled version. Strech: version 10 Buster: version 12 ...

Replace fzf with vim-clap

swiss army knife for searching in vimvi-clap 简介与配置

vim-clap is a combination of fzf, ctrlp, leaderF, Ag/Ack, nerdtree(in some extends) …… Check this: And this: Clap providers: Clap providers And this: Yes, it also provide a preview window…… C...

keycode in terminal for vim&neovim

Map special keys (e.g ) in vim & nvim in terminalvi/kitty/zsh shift+fn 配置

How keys was defined in terminal This had never been a issue until I give up vimr and use kitty + neovim. I found that my <S-Fn> no longer works. Well, do panic, use infocmp or keybind or k...