Skip to content

Instantly share code, notes, and snippets.

View vicheanath's full-sized avatar
:octocat:
Open to work

Vichea vicheanath

:octocat:
Open to work
View GitHub Profile
@Starraider
Starraider / vim_tips.md
Last active November 18, 2024 07:53
Tips & Tricks for Vim/NeoVim

Tips & Tricks for Vim/NeoVim

Keyboard Shortcuts

Be aware the following shortcuts are only working, if you have the plugins installed mentioned below.

In Command Mode:

:w              Save file

:w filename Save file under new filename

@shivamgpt38
shivamgpt38 / nginx.conf
Created August 11, 2020 15:59
Nginx configuration for NodeJs+socket.io+let's encrypt
upstream my-domain {
server 127.0.0.1:8080; // nodejs and socketio running on same port. chnage or create new upstream for socket if socket running on different port
}
server {
listen 80;
server_name *.example.com; //change domain
return 301 https://$host$request_uri;
}
@teimurjan
teimurjan / dto.py
Created July 5, 2018 04:21
django-solid-architecture
class DTO:
def __init__(self, id_):
self._id = id_
@property
def id(self):
return self._id
class UserDTO(DTO):