Skip to content

Instantly share code, notes, and snippets.

View lAnubisl's full-sized avatar
🇺🇦
Glory to Ukraine

Alexander Panfilenok lAnubisl

🇺🇦
Glory to Ukraine
View GitHub Profile
@lAnubisl
lAnubisl / .gitlab-ci.yml
Last active August 19, 2023 12:42
Deployment script GitLab | FrontEnd app to Azure Storage Account
stages:
- build
- deploy
variables:
CONNECTION_STRING: $CONNECTION_STRING
stages:
- build
- deploy
@lAnubisl
lAnubisl / main.tf
Last active August 19, 2023 10:13
Terraform Infrastructure | React FrontEnd Application on Azure Storage Account
resource "azurerm_resource_group" "rg" {
name = "rg-my-react-app"
location = "westeurope"
}
resource "azurerm_storage_account" "sa" {
name = "mystorageaccount1985"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
account_tier = "Standard"
@lAnubisl
lAnubisl / main.tf
Last active July 8, 2023 12:06
Azure API Management to Azure Service Bus Integration
resource "azurerm_resource_group" "rg" {
name = "rg-apim-to-servicebus"
location = "westeurope"
}
resource "azurerm_servicebus_namespace" "sbns" {
name = "sbns-brands-test-2023"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
sku = "Standard"
@lAnubisl
lAnubisl / main.tf
Created July 6, 2023 16:35
Integration between Azure API Management and Azure Blob Storage
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 3.45.0"
}
}
required_version = ">= 1.4.6"
}
@lAnubisl
lAnubisl / sampletemplate.json
Created August 30, 2022 18:29
Azure dotnet-isolated broken
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"subscriptionId": {
"type": "string"
},
"name": {
"type": "string"
},
@lAnubisl
lAnubisl / sample_azure_function_broken.tf
Created August 30, 2022 15:29
Microsoft.Azure.WebJobs.Script: WorkerConfig for runtime: dotnet-isolated not found.
variable "project_name" {
type = string
}
variable "tags" {
type = map(any)
default = {
Environment = "Production"
}
}
@lAnubisl
lAnubisl / docker-compose.yaml
Last active December 4, 2020 16:38
docker-compose pihole+cloudflared for raspberry pi 3B
version: "3.5"
# Manually create a network so we can use static IPs on the backend
networks:
pihole_net:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/24
@lAnubisl
lAnubisl / TriggerBuilds.ps1
Last active April 28, 2019 14:38
TeamCity Step to trigger other builds that are dependent on current one
function TriggerBuilds($buildIds) {
foreach($buildId in $buildIds) {
try {
$request = [System.Net.WebRequest]::Create("http://localhost:8111/httpAuth/app/rest/buildQueue")
$request.PreAuthenticate = $true
$request.Method = "POST"
$request.ContentType = "application/xml"
$request.Credentials = new-object system.net.networkcredential("%TeamCity_UserName%", "%TeamCity_Password%")
$encoding = new-object System.Text.ASCIIEncoding
IF("%teamcity.build.branch%" -eq "master"){
@lAnubisl
lAnubisl / 1. IdentifyMaxIdentity.sql
Last active September 15, 2022 03:09
Merge SQL Databases
use TargetDB;
go;
declare @TablesToImport table
(
Name nvarchar(128)
)
insert into @TablesToImport (Name) values
('Users'), ('Orders'), ('Products'), ('Categories')