Skip to content

Instantly share code, notes, and snippets.

View thiagoloureiro's full-sized avatar
🚗
Coding

Thiago Loureiro thiagoloureiro

🚗
Coding
View GitHub Profile
@thiagoloureiro
thiagoloureiro / git-message-prefixes.md
Created December 28, 2022 10:59 — forked from iamskok/git-message-prefixes.md
List of git commit message prefixes

Git commit message prefixes

  • [RFR] - Code refactoring
  • [WIP] - Work in progress
  • [FIX] - Bug fix
  • [FTR] - New feature
  • [SCR] - Security issue fix
  • [CLP] - Changes that do not alter functionality, but improve code style and readability.
  • [CRO] - Content Rate Optimization
  • [TST] - Add test suite for slider component
version: '2'
services:
influxdb:
environment:
INFLUXDB_DB: project_dev
INFLUXDB_ADMIN_USER: admin
INFLUXDB_ADMIN_PASSWORD: admin
INFLUXDB_HTTP_AUTH_ENABLED: "true"
image: influxdb:latest
ports:
dotnet tool install --global dotnet-sonarscanner
declare @TableName sysname = 'Table'
declare @Result varchar(max) = 'public class ' + @TableName + '
{'
select @Result = @Result + '
public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; }
'
from
(
select
@thiagoloureiro
thiagoloureiro / GORILLA.BAS
Created August 7, 2018 16:15 — forked from caffo/GORILLA.BAS
QBasic Gorillas
' Q B a s i c G o r i l l a s
'
' Copyright (C) IBM Corporation 1991
'
' Your mission is to hit your opponent with the exploding banana
@thiagoloureiro
thiagoloureiro / SlackClient.cs
Created July 5, 2018 19:07 — forked from jogleasonjr/SlackClient.cs
A simple C# class to post messages to a Slack channel. You must have the Incoming WebHooks Integration enabled. This class uses the Newtonsoft Json.NET serializer available via NuGet. Scroll down for an example test method and a LinqPad snippet. Enjoy!
using Newtonsoft.Json;
using System;
using System.Collections.Specialized;
using System.Net;
using System.Text;
//A simple C# class to post messages to a Slack channel
//Note: This class uses the Newtonsoft Json.NET serializer available via NuGet
public class SlackClient
{
public void ConfigureServices(IServiceCollection services)
{
var database = "appmetricsdemo";
var uri = new Uri("http://127.0.0.1:8086");
services.AddMetrics(options =>
{
options.WithGlobalTags((globalTags, info) =>
{
globalTags.Add("app", info.EntryAssemblyName);
private static void Main()
{
Console.Clear();
Console.WriteLine("Raspberry Bot Started - Checking your builds");
Console.WriteLine("Connecting to RabbitMQ");
var objRabbit = new RabbitMQ.RabbitMq("AppVeyor");
objRabbit.Connect();
Console.WriteLine("Connected successfully with RabbitMQ!");
public class RabbitMq
{
private ConnectionFactory _factory;
private IConnection _connection;
private IModel _channel;
private EventingBasicConsumer _consumer;
public string QueueName { get; set; }
public RabbitMq(string queuename)
{
public class MessageBroker
{
private ConnectionFactory _factory;
private IConnection _connection;
private IModel _channel;
public string QueueName { get; set; }
public void Connect()
{