Skip to content

Instantly share code, notes, and snippets.

View ChrisLegaxy's full-sized avatar
🔥
Surging

Chris Van ChrisLegaxy

🔥
Surging
View GitHub Profile
@ChrisLegaxy
ChrisLegaxy / README.md
Created July 26, 2022 18:48
PostgreSQL Restore DB via Docker PGAdmin4 (psql)
# copy dump from host to container
docker cp [file] [container_id]:/var/lib/pgadmin/storage/[pg_admin_user]

# restore with psql
/usr/local/pgsql-[version]/psql --username postgres -h db -f /var/lib/pgadmin/storage/[pg_admin_user]/[file]
@ChrisLegaxy
ChrisLegaxy / docker-for-windows.md
Created July 23, 2022 19:08 — forked from BretFisher/docker-for-windows.md
Getting a Shell in the Docker for Windows Moby VM

2018 Update: Easiest option is Justin's repo and image

Just run this from your CLI and it'll drop you in a container with full permissions on the Moby VM. Only works for Moby Linux VM (doesn't work for Windows Containers). Note this also works on Docker for Mac.

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1

@ChrisLegaxy
ChrisLegaxy / MANUAL.md
Created February 28, 2021 16:09 — forked from kimyvgy/MANUAL.md
Deploy nodejs app with gitlab.com and pm2

Deploy nodejs app with gitlab.com and pm2

This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:

  • Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
  • Windows 10 on my PC to work.
https://www.vuemastery.com/pdf/Nuxtjs-Cheat-Sheet.pdf
@ChrisLegaxy
ChrisLegaxy / Vue.md
Created November 8, 2019 13:41
Vue Essentials
@ChrisLegaxy
ChrisLegaxy / DjangoGist.md
Last active November 7, 2019 04:01
Basic Django Commands & Procedures

Basic Django Commands & Procedures

Packages

  • django
  • pylint-django
#Instal the following
pipenv install django pylint-django
@ChrisLegaxy
ChrisLegaxy / pipenv_cheat_sheet.md
Created November 5, 2019 08:32 — forked from bradtraversy/pipenv_cheat_sheet.md
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
@ChrisLegaxy
ChrisLegaxy / django_crash_course.MD
Created October 25, 2019 19:04 — forked from bradtraversy/django_crash_course.MD
Commands for Django 2.x Crash Course

Django Crash Course Commands

# Install pipenv
pip install pipenv
# Create Venv
pipenv shell
@ChrisLegaxy
ChrisLegaxy / README-Template.md
Created June 11, 2019 03:06 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites