Skip to content

Instantly share code, notes, and snippets.

View tonidy's full-sized avatar

toni dy tonidy

View GitHub Profile
@SyntaxC4
SyntaxC4 / Clear-WebPICache.ps1
Last active August 29, 2015 13:57
Windows Azure Boot Camp (Training) Resource Kit
gci -Force "$env:localappdata\Microsoft\Web Platform Installer" | Remove-Item -Recurse -Force
gci -Force "$env:appdata\Microsoft\Web Platform Installer" | Remove-Item -Recurse -Force
<!-- https://gist.github.com/mahemoff/443933
This is a Node+WebSocket powered demo to sync videos
across different browsers. This file is the client,
the other one is the Node server. Powered by Node and
https://github.com/einaros/ws -->
<style>
.inactive { display: none; }
.active { display: block; }
</style>
@alexanderfloh
alexanderfloh / boxstarter
Last active September 2, 2015 15:32
boxstarter
# todos:
# add working eclipse
# vs2010 sp1 may not work
# actipro-syntax-editor - headless install doesnt work (license stuff)
if ((gwmi win32_computersystem).partofdomain -eq $true) {
write-host -fore green "I am domain joined!"
} else {
Write-ChocolateyFailure "machine needs to be domain joined."
throw "machine needs to be domain joined."
@yungchou
yungchou / ITCamp.FY14Q4.Lab4.Deployment.Template.v1.7.ps1
Last active September 4, 2015 06:32
IT Camp Lab 4 - Application Deployment as a Service Deployment Teamplate v1.7
#region [Customization - The only part to customize, as preferred]
write-host "
------------------------------------------------------------------------
This PowerShell script and its associated files are intended for and
only for learning and testing in a lab environemnt. The code is not
optimized, nor adequately secure for a production use.
The content of this script is provided AS IS; with no warranties,
@fschwiet
fschwiet / gist:1302170
Created October 20, 2011 20:01
install IIS via powershell
#
# http://technet.microsoft.com/en-us/library/cc722041%28v=WS.10%29.aspx
#
# Feature names are case-sensitive, and you will get no warnings if you mispell a feature or
# do not include prerequisite features first. Proceed with care.
#
function InstallFeature($name) {
cmd /c "ocsetup $name /passive"
@bsimser
bsimser / program.cs
Created May 26, 2012 02:19
.NET console app SignalR client
using System;
using SignalR.Client.Hubs;
namespace FANS.Demo
{
internal class Program
{
private static void Main(string[] args)
{
try
@zippy1981
zippy1981 / ConEmuTasks.reg
Created November 3, 2012 00:34
ConEmu Tasks Registry File
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\ConEmu\.Vanilla\Tasks]
"Count"=dword:00000009
[HKEY_CURRENT_USER\Software\ConEmu\.Vanilla\Tasks\Task1]
"Name"="{PowerShell}"
"GuiArgs"="/single /Dir %userprofile%"
"Cmd1"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
"Active"=dword:00000000
@sayedihashimi
sayedihashimi / msdeploy-setAcl-rootDir.xml
Created February 23, 2013 06:35
Shows how you can use the setAcl provider to set a permission on the root directory on publish.
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IncludeSetAclProviderOnDestination>false</IncludeSetAclProviderOnDestination>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
@denji
denji / Galera.md
Last active December 31, 2015 13:58
Ubuntu 13.10: 3 Node MariaDB Cluster + XtraBackup + GLB Load Balancer ( aka MySQL + Galera )
@tyaslab
tyaslab / select2-directive.js
Last active May 17, 2016 11:39
angular select2 directive
<!DOCTYPE html>
<html data-ng-app="app">
<head>
<title>Test Select2</title>
<link rel="stylesheet" href="{{ STATIC_URL }}front/bower_components/select2/select2.css">
</head>
<body>
<div data-ng-controller="MyController">
{[{ apaAtuh }]}