Skip to content

Instantly share code, notes, and snippets.

View BrunoCaimar's full-sized avatar

Bruno Caimar BrunoCaimar

View GitHub Profile
@BrunoCaimar
BrunoCaimar / AgileTrends.2015.MD
Last active August 29, 2015 14:20
AgileTrends.2015

Notes from Agile Trends - 2015

Agile Tester - Daniel Amorim

Qual a diferença entre um Dev e um QA? Mindset! Visão!

Dimensões de um Tester: Business, DevOps, Técnica

Cucumber - Se o cliente entender use, senão não vale a pena.

@BrunoCaimar
BrunoCaimar / QCon2015.md
Last active August 29, 2015 14:18
QCon2015

** Mobile Segurança - @abstractj

  • ShellShock
  • HeartBleed
  • Adobe leak passwords - Common ones - Check this one. Good for black lists
  • Mobile - Smudge / Thermal Cameras /
  • Check OWASP Top 10 Mobile Risks
  • Mobile = Avoid to Request Unnecessary permissions
  • @iamdevloper (Twitter Account) Not Related but looks funny
  • letsencrypt.org
  • www.the-cloak.com
@BrunoCaimar
BrunoCaimar / devsummit2015.md
Last active August 29, 2015 14:18
DevSummit 2015

Dia 1

Using The File Geodatabase API

  • Wrapper in C#.NET - Officially supported
  • spatial query limited to envelope intersects operation
  • 1.4 version - Next Week
  • Apache License
  • LoadModeOonly and setwritelock improves performance in block inserts operations.
  • OGR supports filegeodatabase
@BrunoCaimar
BrunoCaimar / Pylint.ps1
Created January 28, 2015 20:05
PyLint - Powershell Script
cd C:\Python27\ArcGIS10.3\Scripts
del pylint.log
.\pylint --output-format=parseable $(Get-ChildItem $env:WORKSPACE\MinisterioCidades\*.py) >pylint.log
copy pylint.log $env:WORKSPACE
@BrunoCaimar
BrunoCaimar / pylint.bat
Created January 28, 2015 20:01
PyLint - Windows Batch File
echo "*************** PYLINT *********************"
SETLOCAL EnableDelayedExpansion
set path=%path%;c:\Python27\ArcGIS10.3\;c:\Python27\ArcGIS10.3\Scripts
del pylint.log
set _f=
for /f %%x in ('dir MinisterioCidades\*.py /b') do set _f=!_f! MinisterioCidades\%%x
echo %_f%
pylint --output-format=parseable %_f% >pylint.log
echo %ERRORLEVEL%
@BrunoCaimar
BrunoCaimar / Eclipse.Atalhos.md
Created August 1, 2014 12:59
Eclipse - Atalhos

ATALHOS Eclipse

CTRL + 1 ==> Show options on a statement

CTRL + SHIFT + R = Locate something

CTRL + O => Outline

CTRL + 3 => Fast Menu

@BrunoCaimar
BrunoCaimar / initialExtent.xml
Created July 16, 2014 13:35
initialExtent.xml
<com.esri.android.map.MapView
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
initExtent="-6225455.543131757, -2901885.860126649, -5547005.195999772, -2589825.202412621" >
</com.esri.android.map.MapView>
XMin:-6225455.543131757
YMin: -2901885.860126649
@BrunoCaimar
BrunoCaimar / DriveInfo.cs
Created July 1, 2014 20:38
DrivesInfo.cs
using System;
namespace DetectingConnectedDrives
{
class Program
{
static void Main(string[] args)
{
var driveInfo = System.IO.DriveInfo.GetDrives();
@BrunoCaimar
BrunoCaimar / NhibernateQueryWithLinq.cs
Created June 6, 2014 17:57
NhibernateQueryWithLinq
private void ExecutarQueryLinq()
{
using (var session = this.SessionProvider.OpenStateLessSession())
{
Expression<Func<ProcessoAlocacao, bool>> expressionWhereClause = p => p.DataAlocacao < new DateTime(2014, 1, 28);
Func<ProcessoAlocacao, bool> funcWhereClause = p => p.DataAlocacao < new DateTime(2014, 1, 28);
// Expression irá gerar sql com filtro
var command2 = session.Query<ProcessoAlocacao>().Where(expressionWhereClause).ToList();
this.Log.Debug("(1)command.ToList().Count(): {0} ", command2.Count());
@BrunoCaimar
BrunoCaimar / AutenticadorActiveDirectory.cs
Created May 9, 2014 18:30
AutenticadorActiveDirectory
using System.DirectoryServices;
namespace Utils.Web.Services.Configuration
{
public class AutenticadorActiveDirectory : IAutenticadorService
{
private const int ERROR_LOGON_FAILURE = -2147023570;
private const string UserAccountControlString = "useraccountcontrol";
private readonly string _caminhoAd;