Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| # | |
| # install Geoserver on Ubuntu Maverick 10.10 | |
| # note: Geoserver is proxied through apache so port 8080 is not used | |
| # | |
| # @spara 11/15/10 | |
| # | |
| # setup sources | |
| sudo sh -c "echo ' ' >> /etc/apt/sources.list" | |
| sudo sh -c "echo 'deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse' >> /etc/apt/sources.list" |
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: Django EC2 server | |
| # Required-Start: networking | |
| # Required-Stop: networking | |
| # Default-Start: 3 5 | |
| # Default-Stop: 0 1 2 6 | |
| # Short-Description: Django server management script | |
| # Description: Django server management script | |
| ### END INIT INFO |
| [program:gunicorn] | |
| command=/bin/gunicorn -w 4 myapp:app | |
| environment=MY_ENV=/var/null | |
| user=www-data |
| from fabric.api import * | |
| """ | |
| Base configuration | |
| """ | |
| env.project_name = '$(project)' | |
| env.database_password = '$(db_password)' | |
| env.site_media_prefix = "site_media" | |
| env.admin_media_prefix = "admin_media" | |
| env.newsapps_media_prefix = "na_media" |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| fabfile for Django | |
| ------------------ | |
| see http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/ | |
| modified for fabric 0.9/1.0 by Hraban (fiëé visuëlle) | |
| several additions, corrections and customizations, too |
| import sys | |
| from fabric.colors import green, yellow | |
| from fabric.contrib.console import confirm | |
| from fabric.context_managers import cd, prefix | |
| from fabric.operations import prompt | |
| from fabric.api import run, local, env, sudo | |
| env.user = 'ubuntu' | |
| env.hosts = ['0.0.0.0'] #ip do ec2 | |
| env.app_path = '/home/seu-usuario-do-ec2/bomgusto' |
| .idea/* | |
| *.pyc |
| # Simple ggplot2 heatmap | |
| # with colorBrewer "spectral" palette | |
| doInstall <- TRUE # Change to FALSE if you don't want packages installed. | |
| toInstall <- c("ggplot2", "reshape2", "RColorBrewer") | |
| if(doInstall){install.packages(toInstall, repos = "http://cran.us.r-project.org")} | |
| lapply(toInstall, library, character.only = TRUE) | |
| # Generate a random matrix | |
| # This can be any type of numeric matrix, |