https://www.spurtcommerce.com/



pip freeze > requirements.txt
Ache o PID do processo, estou usando a porta 8080 como exemplo:
fuser 8080/tcp
Finalize o processo com:
kill -9 <PID>
Ou em apenas um único comando:
fuser -k -n tcp 80
Referencias:
[ 1 ] – https://www.codegrepper.com/code-examples/shell/how+to+kill+port+5000
Inicie o programa:
eval $(ssh-agent)
Adicione a sua chave privada
ssh-add ~/.ssh/<private_key_file>
Referencias:
[ 1] – https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
ffmpeg -f pulse -i default output.wav
Referencia:
[1] – https://askubuntu.com/questions/682144/capturing-only-desktop-audio-with-ffmpeg
Em python 2
python -m SimpleHTTPServer 8000
Em python 3
python -m http.server 8000
Referencia:
[1] – https://ryanblunden.com/create-a-http-server-with-one-command-thanks-to-python-29fcfdcd240e
Instale o pacote de temas:
pip install jupyterthemes
veja os temas disponíveis:
jt -l
Resetar o tema:
jt -r
Selecione o tema:
jt -t <nome-do-tema>
exemplo:
jt -t monokai
Referências:
[1] – https://stackoverflow.com/questions/46510192/change-the-theme-in-jupyter-notebook
[2] – https://stackoverflow.com/questions/40683123/how-to-reset-jupyter-notebook-theme-to-default
Crie uma nova configuração:
jupyter notebook --generate-config
No arquivo criado coloque essas duas linhas:
c.NotebookApp.allow_origin = '*' #allow all origi
c.NotebookApp.ip = '0.0.0.0' # listen on all
E depois no terminal digite comando:
jupyter notebook --ip xx.xx.xx.xx --port 8888
Troque o xx.xx.xx.xx pelo ip da maquina.
Voce poderá colocar uma senha no seu Notebook digitando o comando abaixo:
c = get_config()
c.NotebookApp.password = u'sha1:6c2164fc2b22:ed55ecf07fc0f985ab46561483c0e888e8964ae6'
Voce poderá gerar sua própria senha sha1 com o seguinte código python:
from IPython.lib import passwd
password = passwd("secret")
password
Referencias:
Se não tiver instalado:
pip install virtualenv
Criar um ambiente:
virtualenv -p <versão-python> <nome da pasta>
Exemplo:
virtualenv -p python3 jmallone/
Ativar o ambiente:
cd jmallone
source bin/activate
Referência:
[1] – https://realpython.com/python-virtual-environments-a-primer/
Abra e edite o seguinte arquivo:
sudo vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=video"
Cria um arquivo:
sudo vim usr/share/X11/xorg.conf.d/80-backlight.con
Escreva e salve:
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "Backlight" "acpi_video0"
BusID "PCI:0:2:0"
EndSection
Digite o seguinte comando para atualizar o Grub:
sudo update-gru
E por fim reinicie o sistema.
Referencia:
[1] – https://askubuntu.com/questions/1034305/brightness-problem-ubuntu-18-04-lts