Skip to content

Instantly share code, notes, and snippets.

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

Edouard de Lansalut edelans

🏠
Working from home
View GitHub Profile
@edelans
edelans / vagrant-cheat-sheet.md
Last active January 8, 2016 12:32 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

# Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
  • vagrant provision -- forces reprovisioning of the vagrant machine
  • vagrant reload -- The equivalent of vagrant halt followed by vagrant up
  • vagrant reload --provision -- Restart the virtual machine and force provisioning
@edelans
edelans / sublime-text-3-setup.md
Created February 1, 2016 14:56 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@edelans
edelans / instructions.md
Created June 11, 2016 22:28 — forked from mcescalante/instructions.md
Run a Flask application with gunicorn and nginx

This guide assumes:

  • You have a VPS (something like DigitalOcean, Linode, etc.)
  • You have a Flask application and a basic understanding of command line instructions
  • You've got nginx installed and know where your configuration files are

Instructions

  1. First, you should install gunicorn on your box or virtualenv with pip:
@edelans
edelans / nginx_inverse_proxy
Created February 25, 2017 14:22 — forked from osharim/Run django and nodejs running over nginx in the same server
For those people who want django and nodejs running over nginx.
#Django Config
server {
server_name domain.com;
access_log on;
location / {
proxy_pass http://127.0.0.1:8001;
@edelans
edelans / django_cmd.sh
Created February 25, 2017 21:44 — forked from hezhao/django_cmd.sh
Django Commands Cheatsheet
# Use Python 3 for easy unicode
$ virtualenv -p python3 .env
$ source .env/bin/activate
$ pip install django
$ deactivate
# Start new django project and app
$ django-admin.py startproject mysite
$ ./manage.py migrate
$ ./manage.py createsuperuser
#!/bin/bash
if [ `id -u` -ne 0 ]; then
echo "Rippling uninstall must be run by root"
exit 1
fi
sudo launchctl unload /Library/LaunchDaemons/com.rippling.*
sudo rm -rf /Library/LaunchDaemons/com.rippling.*
sudo rm -rf /opt/rippling