Skip to content

Instantly share code, notes, and snippets.

View caisback's full-sized avatar

caisback

View GitHub Profile
@caisback
caisback / Gitflow Branching Model.md
Last active April 16, 2023 00:08
Gitflow Branching Model

The Gitflow branching model is a branching strategy that defines two main types of branches: long-lived branches and short-lived branches.

Long-lived branches

  • master branch: This branch represents the production-ready code and should always contain the latest stable release of the software. The master branch is created from the develop branch when a new release is ready.
  • develop branch: This branch represents the mainline development code and should always contain the latest changes that are being worked on by the development team. All feature branches and hotfix branches are created from the develop branch.

Short-lived branches

  • feature branch: This branch is used to develop a new feature or functionality. A new feature branch is created from the develop branch and is merged back into the develop branch once the feature is completed.
  • release branch: This branch is used to prepare for a new production release. A new release branch is created from the develop branch and is merged
@caisback
caisback / Modularized Class with Azure Function.md
Last active April 11, 2023 05:45
Modularized Class with Azure Function 6.0 In-Proc
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

	<ItemGroup>
 
@caisback
caisback / Base Azure Function 6.0 In-Proc.md
Created April 11, 2023 05:42
Base Azure Function 6.0 In-Proc
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <AzureFunctionsVersion>v4</AzureFunctionsVersion>
    <FunctionsInDependencies>true</FunctionsInDependencies>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
 
@caisback
caisback / Azure Function .Net6 in-proc with OPenAPI.md
Last active March 14, 2023 07:48
Azure Function .Net6 in-proc with OpenAPI - default function
using System.IO;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums;
@caisback
caisback / ng.ps1 cannot be loaded because running scripts is disabled on this system.md
Created March 3, 2023 10:04
Angular on VSCode - ng : File C:\Program Files\nodejs\ng.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.

Problem:

With in VSCode terminal when running > ng version

ng : File C:\Program Files\nodejs\ng.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.

Resolution:

PS C:\> set-ExecutionPolicy RemoteSigned -Scope CurrentUser
PS C:\&gt; Get-ExecutionPolicy
@caisback
caisback / Enabling Guitarix on Ubuntu 20.04.md
Last active March 14, 2023 04:36
Enabling Guitarix on Ubuntu 20.04
@caisback
caisback / VB.Net - Windows - Object Centering.md
Created October 1, 2022 10:58
VB.Net - Windows - Object Centering
Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        'btnCenter.Location = New Point((Me.Width / 2) - (btnCenter.Width / 2), btnCenter.Location.Y)

        btnCenter.Location = New Point((Me.Width / 2) - (btnCenter.Width / 2), (Me.Height / 2) - (btnCenter.Height / 2))

        tbCenter.Location = New Point((Me.Width / 2) - (tbCenter.Width / 2), tbCenter.Location.Y)
@caisback
caisback / NestJs - npm ERR! ERESOLVE unable to resolve dependency tree.md
Created June 13, 2022 23:29
NestJs - npm ERR! ERESOLVE unable to resolve dependency tree

Problem:

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree

$ npm i --save @nestjs/microservices
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: x-app@0.0.1
npm ERR! Found: @nestjs/common@8.4.6
@caisback
caisback / Azure - Creating SSH keys with the ssh-keygen.md
Last active May 12, 2022 23:55
Azure - Creating SSH keys with the ssh-keygen
@caisback
caisback / Free IPTV.cs
Created May 10, 2022 00:18
c# - filtering IPTV list from selected countries and removed geo-blocked using LINQ
async void FileIOwithLINQ()
{
const string FILE_PATH = "./Data/country.oneliner.m3u.txt";
const string ODD_EVEN_SEPERATOR = "~";
// const string OUTPUT_FILE_PATH = "./Output/country.oneliner.m3u.txt";
const string OUTPUT_FILE_PATH = "./Output/caFilteredChannels.m3u";
string[] lines = System.IO.File.ReadAllLines(FILE_PATH);
// string FilterBy = "tvg-country=\"INT\" tvg-language=\"English\"";
string[] FilterBys = {