Skip to content

Instantly share code, notes, and snippets.

View chrisg32's full-sized avatar

Chris Gonzales chrisg32

View GitHub Profile
@motowilliams
motowilliams / error.md
Last active November 9, 2017 09:43
Xamarin.Android Build Failures
  • No build definition changes and the solution builds locally.
  • Build fails on master branch where changes haven't been landed for a few days.
2017-10-31T21:58:47.2398136Z ##[error]Unable to process command '##vso[telemetry.publish area=Tasks.CrossPlatform;feature=XamarinAndroid]{ "jdkVersion": default }' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
2017-10-31T21:58:47.2408444Z ##[error]Unable to parse telemetry data { "jdkVersion": default }. Error: Unexpected character encountered while parsing value: d. Path 'jdkVersion', line 1, position 16.
2017-10-31T21:58:47.2408444Z ##[debug]System.ArgumentException: Unable to parse telemetry data { "jdkVersion": default }. Error: Unexpected character encountered while parsing value: d. Path 'jdkVersion', line 1, position 16.
   at Microsoft.VisualStudio.Services.Agent.Worker.Telemetry.TelemetryCommandExtension.ProcessPublishTelemetryCommand(IExecutionContext context, Dictionary`2 eventProperties, String data)
@alexrainman
alexrainman / Connectivity.cs
Last active March 27, 2023 07:45 — forked from emil2k/Connectivity.java
Check device's network connectivity and speed for Xamarin.Android
using System.Threading;
using Android.Content;
using Android.Net;
using Android.Telephony;
using Java.IO;
using Java.Net;
namespace YourNamespace {
/**
@atenni
atenni / README.md
Last active July 20, 2024 05:49
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]