This file contains 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
dotnet run -c Release |
This file contains 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 System.Collections.Generic; | |
using BenchmarkDotNet.Attributes; // Library for benchmarking | |
using BenchmarkDotNet.Running; // Library for running benchmarks | |
using Newtonsoft.Json; // Library for JSON serialization | |
namespace JsonBenchmark | |
{ | |
public class Product | |
{ | |
public int Id { get; set; } |
This file contains 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 | |
yum update -y | |
yum install httpd -y | |
systemctl start httpd | |
systemctl enable httpd | |
---------------------------------- | |
rpm -qa | grep httpd | |
----------------------- | |
sudo fdisk -l |
This file contains 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
<Target Name="MyCustomTask" BeforeTargets="CoreBuild"> | |
<Exec Command="$(PowerShellExe) dotnet tool update -g dotnet-format " /> | |
<Exec Command="$(PowerShellExe) git config --local core.hooksPath .\.git-hooks\" /> | |
</Target> |
This file contains 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/sh | |
echo "Formattng the .cs files changed... ✨✨✨" | |
# Valida HoosPath | |
git config core.hooks | |
# Format the code | |
FILES=$(git diff --cached --name-only --diff-filter=ACM "*.cs") | |
if [ -n "$FILES" ] |
This file contains 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
# Create the new tag | |
git tag -a v1.0.2 -m "v1.0.2 version" | |
# Push the new tag | |
git push origin v1.0.2 |
This file contains 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
name: Updating_Code_Version | |
# This action will be triggered on every new tag | |
# For this example I'm using a tag named v1.0.2 | |
on: | |
push: | |
tags: | |
- "*" | |
env: |
This file contains 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
# STEP 1 - Add this line below dev_dependencies on your pubspec.yaml file | |
# for the ones using null safety | |
dev_dependencies: | |
cider: ^0.1.0 | |
# for the ones not using null safety | |
dev_dependencies: | |
cider: ^0.0.5 | |
This file contains 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
name: deploy | |
on: #trigger on push & PR to this branch only | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master |
This file contains 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
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> |
NewerOlder