Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View maythamfahmi's full-sized avatar
:octocat:
Continuous Delivery

Maytham Fahmi maythamfahmi

:octocat:
Continuous Delivery
View GitHub Profile
@maythamfahmi
maythamfahmi / Replace-Tokens.ps1
Created October 11, 2023 08:12 — forked from niclaslindstedt/Replace-Tokens.ps1
PowerShell script to replace tokens in a file. Useful for DevOps when you have a template config file that you wish to insert real values into.
<#
.SYNOPSIS
Replace tokens in a file with values.
.DESCRIPTION
Finds tokens in a given file and replace them with values. It is best used to replace configuration values in a release pipeline.
.PARAMETER InputFile
The file containing the tokens.
@maythamfahmi
maythamfahmi / ConsolePortScanner.cs
Created September 8, 2019 00:48 — forked from jonlabelle/ConsolePortScanner.cs
Simple async C# Open Port Network Scanner
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Net.Sockets;
namespace ConsolePortScanner
{
class MainClass