This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su - | |
# update so | |
sudo apt update | |
sudo apt upgrade | |
# install curl | |
sudo apt install curl | |
#install docker-compose via curl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from asgiref.sync import async_to_sync | |
from channels.generic.websocket import WebsocketConsumer | |
from apps.utils.print_colors import _green | |
class UserRequestConsumer(WebsocketConsumer): | |
def connect(self): | |
self.user_id = self.scope['url_route']['kwargs']['user_id'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first steps if you have locales issues | |
sudo dpkg-reconfigure locales | |
sudo apt install language-pack-en | |
sudo locale-gen en_US en_US.UTF-8 | |
nano /etc/default/locale | |
LANG=en_US.UTF-8 | |
LC_ALL="en_US.UTF-8” | |
LANGUAGE="en_US:en" | |
# first steps :) |