Skip to content

Instantly share code, notes, and snippets.

View daltonbr's full-sized avatar
🎮
Brighton - UK

Dalton Lima daltonbr

🎮
Brighton - UK
View GitHub Profile
@daltonbr
daltonbr / .editorconfig
Created June 6, 2022 16:00 — forked from srmagura/.editorconfig
.editorconfig with some StyleCop rules disabled
[*.cs]
csharp_style_var_for_built_in_types=true:silent
csharp_style_var_when_type_is_apparent=true:silent
csharp_style_var_elsewhere=true:silent
##
## StyleCop.Analyzers
##
# Using directive should appear within a namespace declaration
@daltonbr
daltonbr / HelpshiftApi.cs
Created December 27, 2023 09:10
mapping data to cif dictionary in Helpshift
private Dictionary<string, object> GetConversationConfig(Dictionary<string, object> cifDictionary)
{
Dictionary<string, object> configMap = new()
{
//{ "fullPrivacy", MagCenterSettings.HelpshiftConfig.FullPrivacy },
{ "enableContactUs", _helpshiftSettings.GetEnableContactUsSetting(_segmentationPersistedDataAdapter) },
{ "tags", new[] { _helpshiftSettings.GetPayerSubscriberTag(_segmentationPersistedDataAdapter) } },
};
cifDictionary ??= new Dictionary<string, object>();
@daltonbr
daltonbr / HelpshiftApi.cs
Created December 29, 2023 18:37
Correct CIF in Helpshift
private Dictionary<string, object> GetConversationConfig(Dictionary<string, object> cifDictionary)
{
Dictionary<string, object> configMap = new()
{
//{ "fullPrivacy", MagCenterSettings.HelpshiftConfig.FullPrivacy },
{ "enableContactUs", _helpshiftSettings.GetEnableContactUsSetting(_segmentationPersistedDataAdapter) },
{ "tags", new[] { _helpshiftSettings.GetPayerSubscriberTag(_segmentationPersistedDataAdapter) } }
};
Dictionary<string, string> userId = new()
version: "3"
networks:
default:
driver: macvlan
driver_opts:
parent: enp7s0
ipam:
config:
- subnet: 192.168.1.0/24
@daltonbr
daltonbr / nerd_fonts.md
Created March 2, 2024 23:24 — forked from davidteren/nerd_fonts.md
Install Nerd Fonts via Homebrew [updated & fixed]
@daltonbr
daltonbr / badges.md
Last active February 8, 2026 15:21
Concise, consistent, and legible badges
@daltonbr
daltonbr / LinterVsFormatter.md
Last active October 9, 2024 11:36
A brief discussion about Linters and Formatters 🧹