This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#You will probably need root privilegies so use sudo before any command or login as root | |
#Lets update everything before we go | |
apt-get update | |
apt-get upgrade | |
#Now for the python dependencies | |
#You need all of this in order for python to compile with full power |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<Header> | |
<Title>form</Title> | |
<Author>Microsoft Corporation</Author> | |
<Shortcut>form</Shortcut> | |
<Description>Markup snippet for a HTML form</Description> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
<SnippetType>SurroundsWith</SnippetType> | |
</SnippetTypes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gzip on; | |
gzip_http_version 1.0; | |
gzip_proxied any; | |
gzip_min_length 500; | |
gzip_disable "MSIE [1-6]\."; | |
gzip_vary on; | |
gzip_comp_level 6; | |
# gzip_buffers 16 8k; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dj_database_url | |
DATABASES= {'default':dj_database_url.config( | |
default='postgres://DbUser:strongPasword@yourhost/dbName' | |
)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static string GetConnectionString() | |
{ | |
var environmentVariable = Environment.GetEnvironmentVariable("FunctionalTests"); | |
return environmentVariable == null | |
? ConfigurationManager.ConnectionStrings["SchoolContext"].ConnectionString | |
: ConfigurationManager.ConnectionStrings["SchoolContext-FunctionalTests"].ConnectionString; | |
} | |
//Si esta setiado el valor de la variable de entorno FunctionalTests usa la base de datos para la prueba |
NewerOlder