Skip to content

Instantly share code, notes, and snippets.

Avatar

Tig Kindel tig

View GitHub Profile
@tig
tig / kill.ps1
Last active Sep 27, 2020
OCGV command to kill process in PowerShell
View kill.ps1
gps | ocgv -OutputMode Single | Stop-Process -Id {$_.Id}
@tig
tig / F7History.ps1
Last active Jun 3, 2022
Use F7 as "Show Command History" in Powershell
View F7History.ps1
################################################################################
# ocgv_history -Global $true | $false
#
# Uses Out-ConsoleGridView to display either the local or global command history
# If an item is selected in OCGV, it will be returned as output and placed on
# the command line.
#
# Anything on the command line when this function is executed will be used as the
# -Filter for OCGV. E.g. to search the command line for all commands starting
# with "git", type "git" on the command line and press F7 or Shift-F7.
@tig
tig / cloudSettings
Last active Nov 19, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-11-19T13:17:35.971Z","extensionVersion":"v3.4.3"}
View keybase.md

Keybase proof

I hereby claim:

  • I am tig on github.
  • I am ckindel (https://keybase.io/ckindel) on keybase.
  • I have a public key ASBuSPUUuLZ_Wj124tflbI10VQ4BTU4m-d1GRp0eIkcYCQo

To claim this, I am signing this object:

@tig
tig / gist:4193759
Created Dec 3, 2012
wp8 pivot prob
View gist:4193759
<phone:PhoneApplicationPage
x:Class="Premise.View.Cameras"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
View gist:4193590
// App exits on call to client.UploadStringAsync
// The ClientUploadStringCompleted handler is never called.
public event EventHandler<LoginCompletedEventArgs> LoginCompleted;
public void OnLoginCompleted(LoginCompletedEventArgs e)
{
var handler = LoginCompleted;
if (handler != null) handler(this, e);
}
@tig
tig / itsybits.c
Created Aug 27, 2012
ItsyBitsy window support module (itsybits)
View itsybits.c
/////////////////////////////////////////////////////////////////////////
//
// Project: ItsyBitsy window support module
// Module: itsybits.c
//
//
// ItsyBitsy is a support module that allows you to create windows
// that look and act very much like a popup window witha system
// menu and caption bar, except everything is scaled to about 2/3
// scale.
@tig
tig / amelia.lessc.css
Created Jun 22, 2012
Amelia Bootswatch from lessc
View amelia.lessc.css
@import url('https://fonts.googleapis.com/css?family=Lobster');
@import url('https://fonts.googleapis.com/css?family=Cabin:400,700');
/*!
* Bootstrap v2.0.4
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
@tig
tig / amelia.dotless.css
Created Jun 22, 2012
Amelia Bootswatch generated with dotless
View amelia.dotless.css
/*!
* Bootstrap v2.0.4
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
@tig
tig / fixcal.cs
Created Apr 1, 2012
Exchange Web Services sample to remove "Copy: " from every calendar item on a calendar
View fixcal.cs
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Web;
using System.Net;
using Microsoft.Exchange.WebServices.Autodiscover;
using Microsoft.Exchange.WebServices.Data;
namespace fixcal
{