This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 2.0 | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory=$true)] | |
[ValidateScript({ Test-Path -Path $_ -PathType Leaf })] | |
[string] | |
$Path | |
) | |
$ErrorActionPreference = 'Stop' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IObservable<IList<TSource>> BufferWhile<TSource>( | |
this IObservable<TSource> source, | |
Func<TSource, bool> condition) | |
{ | |
return source.AggregateUntil( | |
() => new List<TSource>(), | |
(list, value) => | |
{ | |
list.Add(value); | |
return list; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<title>Syncbox</title> | |
</head> | |
<body> | |
<textarea id="sync" style="width:100%; height:100%; overflow:auto; border:0;"></textarea> | |
<script> | |
if(window.localStorage){ | |
var sync = document.getElementById("sync"); | |
var key = 'sync'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to install, enter this command in WIN+R prompt: | |
# http://bit.ly/1zIthRQ | |
# Boxstarter options | |
$Boxstarter.RebootOk=$True # Allow reboots | |
$Boxstarter.NoPassword=$False | |
$Boxstarter.AutoLogin=$True # Save my password securely and auto-login after a reboot | |
# bigger console window | |
if ($Host.Name -match "console"){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 2.0 | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory=$true)] | |
[ValidateScript({ $_.ToLower().StartsWith("d4.") -or $_.ToLower().StartsWith("d5.") -or $_.ToLower() -eq "dev" })] | |
[string] | |
$Version | |
) | |
echo "************************BEGIN*********************************" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//tested this myself | |
//should probably also try | |
//https://github.com/knockout/knockout/wiki/Bindings---tinyMCE | |
tinymce.init({ | |
setup: function (ed) { | |
ed.on('keyup', function (e) { | |
tinyMceChange(ed); | |
}); | |
ed.on('change', function(e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cinst git.install | |
cinst git.commandline | |
cinst msysgit | |
cinst poshgit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM usage: convert2mp3.bat path\to\video.mp4 | |
start "%ProgramFiles(x86)%\VideoLAN\vlc\vlc.exe -I dummy --sout '#std{access=file,mux=raw,dst=%~n1.mp3}' %1 vlc://quit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:start | |
cls | |
set ssid= | |
set pw= | |
cls | |
SET/P username=Please enter the network ssid: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
DoStuff() | |
} | |
catch (ArgumentException 💩) | |
{ | |
Console.WriteLine(💩.Message); | |
} | |
catch (Exception ಠ_ಠ) | |
{ |
OlderNewer