Skip to content

Instantly share code, notes, and snippets.

View JasonFreeberg's full-sized avatar
🐢
Print debugging

Jason Freeberg JasonFreeberg

🐢
Print debugging
View GitHub Profile
@JasonFreeberg
JasonFreeberg / manabox-to-archidekt.py
Created April 22, 2023 00:13
ManaBox to Archidekt CSV converter
"""
This script reads the CSV exports from the ManaBox mobile application, then writes the
card quantities and Scryfall ID's to a new CSV. This new CSV can then be uploaded using
Archidekt.com's CSV upload utility.
To call this script, run the following command in a terminal:
$ python manabox-to-archidekt.py source.csv target.csv
... where "source.csv" and "target.csv" are the actual names of the CSV files from ManaBox
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
"details": [
{
"message": "<Error xmlns=\"http://schemas.microsoft.com/windowsazure\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"><Code>BadRequest</Code><Message>Repository 'UpdateSiteSourceControl' operation failed with System.Net.WebException: The remote server returned an error: (400) Bad Request.&#xD;\n at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&#xD;\n at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)&#xD;\n--- End of stack trace from previous location where exception was thrown ---&#xD;\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#xD;\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebug
@JasonFreeberg
JasonFreeberg / extension-script.sh
Last active December 9, 2020 23:18
Azure DevOps self hosted VM
#!/bin/bash
agentuser=${AGENT_USER}
pool=${AGENT_POOL}
pat=${AGENT_TOKEN}
azdourl=${AZDO_URL}
# install az cli
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# download azdo agent
@JasonFreeberg
JasonFreeberg / dotnetcore_exceptions.md
Created August 3, 2020 19:49
Errors from the .NET Core test app

Build-time warning

##[warning]Startup.cs(34,56): warning CS0618: 'IHostingEnvironment' is obsolete: 'This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.AspNetCore.Hosting.IWebHostEnvironment.' [D:\a\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore.csproj]
##[warning]Startup.cs(30,55): warning CS0618: 'CompatibilityVersion.Version_2_2' is obsolete: 'This CompatibilityVersion value is obsolete. The recommended alternatives are Version_3_0 or later.' [D:\a\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore.csproj]
##[warning]Startup.cs(48,13): warning MVC1005: Using 'UseMvc' to configure MVC is not supported while using Endpoint Routing. To continue using 'UseMvc', please set 'MvcOptions.EnableEndpointRouting = false' inside 'ConfigureServices'. [D:\a\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore.csproj]
@JasonFreeberg
JasonFreeberg / replace_strings.js
Created June 29, 2020 17:19
Replace template strings in workflow files
// Variables from APIs or user input
inputs = {
"web-app-name": "my_cool_webapp",
"azure-webapp-publish-profile-name": "pubProfile120931248234",
"branch": "master",
"java-version": "1.8",
"slot-name": "production",
}
@JasonFreeberg
JasonFreeberg / html_example.html
Created August 30, 2017 21:50
Model Interpretor
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">