Skip to content

Instantly share code, notes, and snippets.

View mshenoy83's full-sized avatar
:octocat:

Madhav Shenoy mshenoy83

:octocat:
View GitHub Profile
@mshenoy83
mshenoy83 / OctopusDeploymentClient.cs
Last active August 23, 2017 13:21
Octopus Deploy - Multiple releases from single project in TeamCIty
using Octopus.Client;
using Octopus.Client.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OctopusDeploymentClient
{
@mshenoy83
mshenoy83 / Login.Xaml
Last active March 28, 2017 22:04
Sample Xaml Binding
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="CustomerApp.Views.Login"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:behaviors="clr-namespace:CustomerApp.Infrastructure.Behaviors;assembly=CustomerApp"
xmlns:c="clr-namespace:CustomerApp.Infrastructure.Converters;assembly=CustomerApp"
Style="{StaticResource SignUpScreen}">
<ContentPage.Resources>
<ResourceDictionary>
@mshenoy83
mshenoy83 / CustomTlsSSLSocketFactory.cs
Last active September 21, 2017 03:21
CustomTlsSSLSocketFactory
public class CustomTlsSSLSocketFactory : SSLSocketFactory
{
public CustomTlsSSLSocketFactory()
{
SSLContext context = SSLContext.GetInstance("TLS");
context.Init(null, null, null);
_factory = context.SocketFactory;
}
private readonly SSLSocketFactory _factory;
public class IOSDeviceInfo : IDeviceInfo
{
private string _deviceId;
private const string DeviceIdentifier = "MyDeviceIdentifier";
public string GetDeviceId
{
get
{
/* return UIDevice.CurrentDevice.IdentifierForVendor.ToString();*/
_deviceId = GetRecordsFromKeychain(DeviceIdentifier);
@mshenoy83
mshenoy83 / Dockerfile
Created February 4, 2018 18:44
Microsoft Sql Server Linux DockerFile with Full Text Search
# mssql-agent-fts-ha-tools
# Maintainers: Microsoft Corporation (LuisBosquez and twright-msft on GitHub)
# GitRepo: https://github.com/Microsoft/mssql-docker
# Base OS layer: Latest Ubuntu LTS + mssql-server-linux (SQL Server engine + tools)
FROM microsoft/mssql-server-linux
#Install curl since it is needed to get repo config
# Get official Microsoft repository configuration
RUN export DEBIAN_FRONTEND=noninteractive && \
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
There are some problems with the configuration, described below.
The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
Error: Invalid expression
on main.tf line 3, in resource "aws_cloudformation_stack" "eventbridge_bus":
3: template_body = <<EOF
@mshenoy83
mshenoy83 / converttomp4.ps1
Created June 5, 2021 08:59
Convert mkv file to mp4 using ffmpeg
param($folderpath)
Get-ChildItem $folderpath -Filter *.mkv |
Foreach-Object {
Set-Location $folderpath
$newfile = $_.FullName -replace ".mkv", ".mp4"
Write-Host $newfile
./ffmpeg -i $_.FullName -vcodec copy -acodec copy $newfile
}
{
"payloads": [
{
"timestamp": "2023-09-06T01:03:23.538Z",
"baseTransactionNumber": 10722,
"actionMetadata": {
"source": "publicApi",
"sourceMetadata": {
"user": {
"id": "usrVvgGyuyiyRiPl2",