Skip to content

Instantly share code, notes, and snippets.

#bin/bash
docker run -p 6379:6379 -i redis
M104 S0
M140 S0
;Retract the filament
G92 E1
G1 E-1 F300
G28 X0 Y0
M84
#bin/bash
docker run -p 5432:5432 -e POSTGRES_USER="vcamargo" -e POSTGRES_PASSWORD="maxwell" -v /opt/databases/postgresql:/var/lib/postgresql -i postgres
docker run -p 5432:5432 -e POSTGRES_USER="vcamargo" -e POSTGRES_PASSWORD="maxwell" --name postgres -i postgres
@Azrrael-exe
Azrrael-exe / custom .bashrc
Last active March 16, 2020 21:02
Custom .bashrc
IS_VENV=false
function virtualenv_check(){
if [ -d "${PWD}/venv" ] && ! $IS_VENV;
then
echo "--- Virtualenv Activate---"
source venv/bin/activate
IS_VENV=true
if [ -d "${PWD}/venv/etc/jupyter" ];
then
echo "Jupyter detected do you want to launch it? (Y/N)"