Skip to content

Instantly share code, notes, and snippets.

View tucaz's full-sized avatar

tucaz tucaz

View GitHub Profile

Add New Relic To Elastic Beanstalk for .NET

The instructions and files in this Gist can be used to configure an EC2 instance to install both the New Relic .NET Agent and Server Monitor on an EC2 deployed inside of an Elastic Beanstalk, without creating a custom AMI. Once configured, EC2s will begin reporting application and server metrics automatically to New Relic, even as the Elastic Beanstalk scales up and adds more EC2s.

Steps

  1. Create a top-level directory in your source bundle called .ebextensions and add newrelic.config to it.
  2. Change the values in newrelic.config to match your configuration, where:
  • download_path_to = URL to download the PowerShell script and New Relic Agents (e.g. an S3 bucket)
Desenvolvedor .NET - Fnac.com.br
O desenvolvedor irá trabalhar junto da equipe de desenvolvimento web/internet na operação diária dos sistemas, suporte aos usuários, correção de bugs e novas implementações.
Utilizamos diversas tecnologias (WebForms, MVC, WinForms, WPF, TFS, Sql Server, SQLite, Javascript entre outras) e estamos sempre em busca de conhecer como novas ferramentas
podem nos ajudar em nosso trabalho construindo, um ambiente onde o aprendizado é constante. Além disso, trabalhamos diretamente com as equipes de negócio então
além da parte técnica o desenvolvedor terá oportunidade de aprender e influenciar em decisões estratégicas e operacionais da empresa.
Nossa equipe tem uma forte cultura em terminar projetos. Procuramos pessoas orientadas a completar as atividades e projetos em que trabalham, sem deixar as coisas pela metade.
@tucaz
tucaz / gist:5018051
Created February 23, 2013 02:24 — forked from ayende/gist:1669767
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Lucene.Net.Analysis;
using Lucene.Net.Analysis.Standard;
using Lucene.Net.Analysis.Tokenattributes;
using Lucene.Net.Util;
using Raven.Abstractions.Indexing;
using Raven.Client.Linq;
using Raven.Database.Indexing;
@tucaz
tucaz / post.cs
Created February 9, 2013 18:12
Post com WebClient
using (var client = new WebClient())
{
client.Credentials = new NetworkCredential("SeuUsuario", "SuaSenha");
var url = "UrlServico";
var parameters = "op=Consulta&agencia=J3&origem=1&destino=57&data=2013-02-15";
var response = client.UploadString(
url,
"POST",
A Sonda Marciana
Regras
O problema descrito abaixo requer alguma forma de entrada de dados. Você está livre pra implementar qualquer mecanismo de entrada de dados que desejar na sua solução (dados hard coded dentro de um test unitário, por exemplo).
Você deve prover evidência suficiente de que sua solução está completa para, no mínimo, indicar que funciona corretamente para o consjunto de dados de testes fornecidos.
Recomendamos que você utilize um framework de testes como NUnit ou MSTest. Mesmo que você não tenha os utilizado antes, são fáceis de aprender e incrivelmente uteis.
google-site-verification: google14553faac4a24dde.html
@tucaz
tucaz / ModalSpecs.js
Created October 23, 2012 00:11
Knockout JS + Testes com Jasmine
describe("Modal", function () {
beforeEach(function () {
this.addMatchers({
toExist: function () {
return this.actual != null;
},
toBeHidden: function () {
return this.actual.vm.visivel() === false;
},
toBeDisplayed: function () {
@tucaz
tucaz / gist:2313254
Created April 5, 2012 19:01
Namespace declaration in JS
if (typeof(MyNamespace) != "object") { var MyNamespace = {}; }
MyNamespace.ChildObject = {};
@tucaz
tucaz / POP3.cs
Created January 30, 2012 23:36
Sample usage of AE.NET.Mail
//Sample usage of AE.NET.Mail
//https://github.com/andyedinborough/aenetmail
using (var pop = new AE.Net.Mail.Pop3Client(_host, _username, _password, _port, _useSSL))
{
var count = pop.GetMessageCount();
for (var i = count - 1; i >= 0; i--)
{
var msg = pop.GetMessage(i, false);
sSQL = @"SELECT
A.CTA_ID,
A.CTA_AG_NUM,
A.CTA_AG_NOM,
A.CTA_NUM,
A.CTA_NOM_GRT,
A.CTA_BCO_ID,
B.BCO_NOM,
A.CTA_DD_TEL,
A.CTA_TEL,