Skip to content

Instantly share code, notes, and snippets.

View aledruetta's full-sized avatar
🏠
Working from home

Alejandro Druetta aledruetta

🏠
Working from home
View GitHub Profile
@aledruetta
aledruetta / less-cheatsheet.md
Created December 9, 2022 13:28 — forked from glnds/less-cheatsheet.md
Less Cheatsheet

Less Cheatsheet

less {filename}
Navigation
SPACE forward one window
b backward one window
d forward half window
FROM python:slim
WORKDIR /app/
COPY ./server.py .
EXPOSE 5001
CMD ["python", "/app/server.py"]
FROM python:slim
WORKDIR /app/
COPY ./client.py .
CMD ["python", "/app/client.py"]
# cliente.py
from socket import *
HOST = "192.168.1.2"
PORT = 5001
def upper_rcp(msg):
s = socket(AF_INET, SOCK_STREAM)
s.connect((HOST, PORT))
# server.py
from socket import *
HOST = gethostname()
PORT = 5001
def setup():
s = socket(AF_INET, SOCK_STREAM)
s.bind((HOST, PORT))
sudo vim /usr/share/applications/quartus.desktop
sudo chmod 555 vsim
cd /opt/intelFPGA_lite/19.1/modelsim_ase/bin
vim vsim
cd /opt/intelFPGA_lite/19.1/modelsim_ase/bin/
sudo chmod 777 vsim
cd QuartusLite
sudo ./setup.sh