Skip to content

Instantly share code, notes, and snippets.

View RadoslavGatev's full-sized avatar

Radoslav Gatev RadoslavGatev

View GitHub Profile
@RadoslavGatev
RadoslavGatev / Lively dashboard.json
Created March 25, 2023 17:23
Azure dashboard using Azure Resource Graph
{
"properties": {
"lenses": {
"0": {
"order": 0,
"parts": {
"0": {
"position": {
"x": 0,
"y": 0,
# Install IIS (with Management Console)
Install-WindowsFeature -name Web-Server -IncludeManagementTools
# Install ASP.NET Core 6
$dotnetInstall = [System.IO.Path]::GetTempFileName() | Rename-Item -NewName { $_ -replace 'tmp$', 'ps1' } -PassThru
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -OutFile $dotnetInstall
. dotnetInstall -Channel 6.0 -Runtime aspnetcore
# Delete contents of wwwroot
Remove-Item -Recurse C:\inetpub\wwwroot\*
@RadoslavGatev
RadoslavGatev / Russell3000_v1.py
Created January 22, 2021 17:00 — forked from dast1/Russell3000_v1.py
Scrapes the Russell 3000 Membership List (official source in .pdf) and builds Symbol List
# Build Russell 3000 List
# Import libraries
import urllib.request
import datetime
# Download Russell 3000 to local repository
f_path = "/Russell3000/Membership Lists/"
f_name = f_path + "Russell3000 " + datetime.date.today().strftime("(%b %d, %Y)") + ".pdf"
def download_file(url):
@RadoslavGatev
RadoslavGatev / deploymentsript.ps1
Created October 2, 2020 08:03
deploymentsript.ps1
param(
[string] [Parameter(Mandatory=$true)] $resourceGroupName,
[string] [Parameter(Mandatory=$true)] $resourceGroupLocation
)
$ErrorActionPreference = 'Stop'
$DeploymentScriptOutputs = @{}
$virtualNetwork = Get-AzVirtualNetwork -ResourceGroupName $resourceGroupName -Name 'test-vnet'
$subnets = Get-AzVirtualNetworkSubnetConfig -VirtualNetwork $virtualNetwork
Add-AzVirtualNetworkSubnetConfig -Name 'backendSubnet4' -VirtualNetwork $virtualNetwork -AddressPrefix '10.0.5.0/24'
@RadoslavGatev
RadoslavGatev / Swagger.json
Created February 13, 2020 09:49
Mailchimp swagger
{
"x-doc-structure": {
"resources": {
"root": {
"title": "API Root",
"description": "The API root resource links to all other resources available in the API. Calling the root directory also returns details about the Mailchimp user account.",
"paths": [
"/"
],
"subResources": []
@RadoslavGatev
RadoslavGatev / Database-Build.json
Last active February 4, 2019 23:45
Database CI/CD using Azure DevOps
{
"options":[
{
"enabled":true,
"definition":{
"id":"5d58cc01-7c75-450c-be18-a388ddb129ec"
},
"inputs":{
"branchFilters":"[\"+refs/heads/*\"]",
"additionalFields":"{}"
using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using CameraControl.Devices;
@RadoslavGatev
RadoslavGatev / database.json
Last active May 28, 2019 05:17
Resource Template
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sqlDatabaseName": {
"type": "string",
"metadata": {
"description": "The name of the database"
}
},

Keybase proof

I hereby claim:

  • I am RadoslavGatev on github.
  • I am radoslavgatev (https://keybase.io/radoslavgatev) on keybase.
  • I have a public key whose fingerprint is 9989 F270 5EBF 24BF D2B5 8CA3 3B71 7E24 4F24 465F

To claim this, I am signing this object: