Skip to content

Instantly share code, notes, and snippets.

@I90Runner
I90Runner / purge_frontdoor_cdn.yml
Created August 11, 2022 03:12 — forked from jyotsnaravikumar/purge_frontdoor_cdn.yml
Programmatically Purge Frontdoor CDN
## Programmatically Purging Azure Frontdoor CDN With AzDevops
1. Create a Azure Service Connection by creating a service principal so that devops process has access to perform pruging operation on frontdoor resource
1. Create a App Registration -> as spn-devops-dev
2. Goto Certificates and Secrets -> Add secret , note the ApplicationId and Secret
3. Goto Frontdoor instance -> open Access Control (IAM) -> Add Role Assignment -> Role as "Contributor" -> Assign Access To-> "user, groups or service principal" -> Select -> search for service principal spn-devops-dev -> Select
4. Note the Azure Service Connection name - as mymap-dev-service-connection
2. Add environment variables for Azure FrontDoor, ResourceGroup and Service Connection
3. Add a purging step which depends on the successly deploy. This ensure the cdn cache is refreshed with newer contents from the build after every build.
@I90Runner
I90Runner / DiagnoseRedisErrors-ClientSide.md
Created November 26, 2018 17:54 — forked from JonCole/DiagnoseRedisErrors-ClientSide.md
Diagnosing Redis errors caused by issues on the client side

Diagnosing Redis errors on the client side

Customers periodically ask "Why am I getting errors when talking to Redis". The answer is complicated - it could be a client or server side problem. In this article, I am going to talk about client side issues. For server side issues, see here

Clients can see connectivity issues or timeouts for several reason, here are some of the common ones I see:


Memory pressure

@I90Runner
I90Runner / List.md
Created March 30, 2018 02:37 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@I90Runner
I90Runner / List.md
Created March 30, 2018 02:37 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@I90Runner
I90Runner / laravellocal.md
Created March 29, 2018 02:41 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@I90Runner
I90Runner / nginx.default.conf
Created March 3, 2018 21:16 — forked from sumardi/nginx.default.conf
Install PHP-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
# Install linux update, followed by GCC and Make
sudo yum -y update
sudo yum install -y gcc make
# Install Nginx and PHP-FPM
sudo yum install -y nginx php-fpm
# Install PHP extensions
sudo yum install -y php-devel php-mysql php-pdo \
php-pear php-mbstring php-cli php-odbc \
@I90Runner
I90Runner / Send-Email.ps1
Created February 3, 2018 04:15 — forked from 9to5IT/Send-Email.ps1
PowerShell: Send Email
Function Send-Email{
<#
.SYNOPSIS
Used to send data as an email to a list of addresses
.DESCRIPTION
This function is used to send an email to a list of addresses. The body can be provided in HTML or plain-text
.PARAMETER EmailFrom
Mandatory. The email addresses of who you want to send the email from. Example: "admin@9to5IT.com"
@I90Runner
I90Runner / Get-VCEvents.ps1
Created February 3, 2018 04:14 — forked from 9to5IT/Get-VCEvents.ps1
PowerShell: Collect vCenter Events
#-----------------------------------------------------------------------------
# Import PowerCLI Module
#-----------------------------------------------------------------------------
Add-PSSnapin VMware.VimAutomation.Core
#-----------------------------------------------------------------------------
# Connect to vCenter Server
#-----------------------------------------------------------------------------
$Server = Read-Host 'Specify the vCenter Server or ESXi Host to connect to (IP or FQDN)?'
Connect-VMwareServer -VMServer $Server
@I90Runner
I90Runner / Script-Template-WithCreds.ps1
Created February 1, 2018 02:00 — forked from davefunkel/Script-Template-WithCreds.ps1
PowerShell Script Template with Saved Creds
<#
.SYNOPSIS
The synopsis goes here. This can be one line, or many.
This version of the template has inbuilt functions to capture credentials and store it securely for reuse
Avoids the need to have plaintext passwords in the script
.DESCRIPTION
The description is usually a longer, more detailed explanation of what the script or function does.
Take as many lines as you need.
# Your account access key - must have read access to your S3 Bucket
$accessKey = "YOUR-ACCESS-KEY"
# Your account secret access key
$secretKey = "YOUR-SECRET-KEY"
# The region associated with your bucket e.g. eu-west-1, us-east-1 etc. (see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions)
$region = "eu-west-1"
# The name of your S3 Bucket
$bucket = "my-test-bucket"
# The folder in your bucket to copy, including trailing slash. Leave blank to copy the entire bucket
$keyPrefix = "my-folder/"