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
#!/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
@edelans
edelans / snow.css
Last active December 18, 2017 19:52
CSS only snow animation. All credits goes to https://carloseo.com/let-it-snow-css-animation/
.snow{
background-image:
url(https://user-images.githubusercontent.com/2805640/34124910-ec43e9a2-e434-11e7-85e5-0caebbe8ae94.png),
url(https://user-images.githubusercontent.com/2805640/34124916-f2bd028c-e434-11e7-8cf4-71d50265798f.png),
url(https://user-images.githubusercontent.com/2805640/34124918-f435eb42-e434-11e7-85c6-576e94b90377.png);
width: 100%;
height:100%;
position: absoulute;
top: 0;
left: 0;
@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
@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 / 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 / git_config
Last active January 5, 2018 11:06
alias git
[user]
email = edelans@gmail.com
name = edelans
[merge]
tool = meld
conflictstyle = diff3
[alias]
st = status
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
@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 / disk usage exploration.md
Created December 18, 2015 19:26
disk usage exploration

Find Biggest files/repo

sudo du -shx /* 2>/dev/null | sort -n

@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
#!/bin/sh
#####################################
# #
# Script de recette de serveur #
# #
#####################################
# OS
echo 'OS check:'