Skip to content

Instantly share code, notes, and snippets.

View CleitonDeLima's full-sized avatar
🇧🇷
Working from home

Cleiton de Lima CleitonDeLima

🇧🇷
Working from home
View GitHub Profile
@CleitonDeLima
CleitonDeLima / install-docker.sh
Last active October 15, 2019 13:37 — forked from sethbergman/install-docker.sh
Install Docker CE on Linux Mint 19
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
# use linux mint: sudo add-apt-repository "\ndeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install docker.io
@CleitonDeLima
CleitonDeLima / django-media-permissions.md
Created March 6, 2019 20:05 — forked from douglasmiranda/django-media-permissions.md
Fix Django Media Folder Permissions

Check your current file/directory permission with:

stat -c "%a" /path/to/dir_or_file

To recursively give directories read&execute privileges:

find /path/to/base/dir -type d -exec chmod 755 {} +
@CleitonDeLima
CleitonDeLima / select2-vuejs-component.md
Created March 13, 2018 13:39 — forked from craigh411/select2-vuejs-component.md
Vue.js component for Select2

#Vue.js component for Select2

A select2 component for vue.js. Quickly create select2 components, load data via ajax and retrieve selected values and newly created tags.

#Usage

Download and register the component:

Vue.component(
@CleitonDeLima
CleitonDeLima / README.md
Created March 15, 2017 16:13 — forked from genomics-geek/README.md
Setting up a Dockerized web application with Django REST APIs, ReactJS with Redux pattern, and Webpack Hot Reloading! Mouthful.

Guide on how to create and set up a Dockerized web app using Django REST APIs and ReactJS

Hopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"

I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)

Main features:

  • Django REST APIs
  • ReactJS with Redux Pattern
  • Webpack module bundler manager