🏃♂️
This file contains hidden or 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
using (StringWriter sw = new StringWriter()) | |
{ | |
ViewData.Model = oCalendarEvent; | |
ViewEngineResult viewResult = ViewEngines.Engines.FindPartialView(ControllerContext, "_PARTIALVIEWNAME"); | |
ViewContext viewContext = new ViewContext(ControllerContext, viewResult.View, ViewData, TempData, sw); | |
viewResult.View.Render(viewContext, sw); | |
eventView = sw.GetStringBuilder().ToString().RemoveAll("\r\n"); | |
} |
This file contains hidden or 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
#!/bin/bash | |
# mongodump reference: http://www.nacaolivre.com.br/servidor/mysql-backup-com-mysqldump/ | |
# Author: Lazaro Lima - www.lazarolima.com.br | |
# | |
S3_BUCKET_NAME="condomundo-databases-snapshots" | |
S3_BUCKET_PATH="mysql-backups" | |
MYSQLROOT="yourUserName" | |
MYSQLPASS="yourPassword" |
This file contains hidden or 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
#!/bin/bash | |
#Force file syncronization and lock writes | |
mongo admin --eval "printjson(db.fsyncLock())" | |
MONGODUMP_PATH="/usr/bin/mongodump" | |
MONGO_HOST="prod.example.com" | |
MONGO_PORT="27017" | |
MONGO_DATABASE="dbname" | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Google Maps JavaScript API v3 Example: Geocoding Simple</title> | |
<link href="https://developers.google.com/maps/documentation/javascript/examples/default.css" rel="stylesheet"> | |
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> | |
<script> |
This file contains hidden or 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
<%@ Application Language="C#" %> | |
<%@ Import Namespace="System.Web.Routing" %> | |
<script RunAt="server"> | |
/// <summary> | |
/// Add routes to application | |
/// </summary> | |
void RegisterRoutes(RouteCollection routes) | |
{ | |
#region Rotas amigáveis |
NewerOlder