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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<Configuration Condition="$(Configuration) == '' "></Configuration> | |
<MsDeployPath>C:\Program Files\IIS\Microsoft Web Deploy V3</MsDeployPath> | |
<DeployPackageLocation>SomePath</DeployPackageLocation> | |
<UserName>notauser</UserName> | |
<Password>NotAPassword</Password> | |
<MachineName>noteahost</MachineName> | |
<PackageLocation>SomePackage.Zip</PackageLocation> | |
</PropertyGroup> |
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
Param( | |
[bool]$firstRun, | |
[Parameter(Mandatory=$true)] | |
[string]$dbServer, | |
[Parameter(Mandatory=$true)] | |
[string]$userName, | |
[Parameter(Mandatory=$true)] | |
[string]$password, | |
[Parameter(Mandatory=$true)] | |
[string]$esServerInstance, |
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
# this grabs offers from stater bros.com | |
$coupons = $null | |
$json = Invoke-WebRequest -Uri "http://coupons.staterbros.com/Coupons/Index?pageSize=600¤tPage=1&filter=0&sort=1&couponType=4&brandName=AllBrands&_=1383513834477" | select-object -Property Content | |
$StaterBriosrawObj = ConvertFrom-Json $json.Content | |
$StaterBriosrawObj.CouponsGrid | Group-Object { $_.Name } | Sort-Object -Descending Count | |
$staterCoupons = $StaterBriosrawObj.CouponsGrid | |
$coupons += $staterCoupons | Select-Object @{Name="Brand"; Expression={ $_.Name.tolower() -replace "[^A-Za-z0-9_.\$@ ]","" }}, #-replace [char]174, '' -replace [char]8482, '' } }, | |
@{Name="Category";Expression={ "N/A"}}, |
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
/// <remarks> | |
/// ## Successfull Requests | |
/// | |
/// Will have information about the User this information is broken down in the following. The return code will | |
/// be **200 OK**. The following breakdown of user entity information will be provided to the user. | |
/// | |
/// | Element Name | Friendly Name | Description | | |
/// | -------------- | ------------- | -------------------------------- | | |
/// | userName | User Name |The name of the user in the system| | |
/// | firstName | First Name | The first name of the user in the system (if availble from authentication provider) | |
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
/// <returns> | |
/// ## Successfull Requests | |
/// | |
/// Will have information about the User this information is broken down in the following. The return code will | |
/// be **200 OK**. The following breakdown of user entity information will be provided to the user. | |
/// | |
/// | Element Name | Friendly Name | Description | | |
/// | -------------- | ------------- | -------------------------------- | | |
/// | userName | User Name |The name of the user in the system| | |
/// | firstName | First Name | The first name of the user in the system (if availble from authentication provider) | |
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
protected async override System.Threading.Tasks.Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) | |
{ | |
var baseHandler = await base.SendAsync(request, cancellationToken); | |
var content = await baseHandler.Content.ReadAsAsync<ResponseBase>(); | |
if (content != null) | |
{ | |
var apiDescription = request.GetActionDescriptor().Configuration.Services.GetApiExplorer().ApiDescriptions.Where(x => x.ActionDescriptor == request.GetActionDescriptor()).SingleOrDefault(); | |
if (apiDescription != null) |
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
#!/usr/bin/env bash | |
apt-get update | |
# install elasticsearch | |
cd ~ | |
sudo apt-get update | |
dpkg --get-selections | grep openjdk-7-jre || sudo apt-get install openjdk-7-jre -y | |
# download key |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.provision :shell, :path=> "bootstrap.sh" | |
config.vm.network "forwarded_port", guest: 3306, host: 3306 | |
config.vm.network "private_network", ip: "192.168.50.4" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "2048"] |
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
#make global to not inure this only once versus multiple times. | |
$aws_extensions = Get-Module -ListAvailable | where-object { $_.Name -eq "AWSPowerShell" } | |
<# | |
.SYNOPSIS | |
copy-awsqueue will allow you to copy messages from one queue to another without deleting |
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
var http = require('http'); | |
var port = process.env.port || 1337; | |
var qs = require("querystring"); | |
var os=require('os'); | |
var child_process = require("child_process"); | |
http.createServer(function (req, res) { | |
res.writeHead(200, { 'Content-Type': 'text/plain' }); | |
var str = req.url.split('?')[1]; | |
var ip = qs.parse(str); |
OlderNewer