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
$version = '922' | |
$msi_file_name = "7z$version-x64.msi" | |
$download_url = "http://downloads.sourceforge.net/sevenzip/$msi_file_name" | |
(New-Object System.Net.WebClient).DownloadFile($download_url, "C:\Windows\Temp\$msi_file_name") | |
&msiexec /i "C:\Windows\Temp\$msi_file_name" INSTALLDIR='C:\7-zip' /qb |
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
$download_url = 'https://opscode-omnibus-packages.s3.amazonaws.com/windows/2008r2/x86_64/chef-client-11.12.4-1.windows.msi' | |
(New-Object System.Net.WebClient).DownloadFile($download_url, 'C:\\Windows\\Temp\\chef.msi') | |
Start-Process 'msiexec' -ArgumentList '/qb /i C:\\Windows\\Temp\\chef.msi' -NoNewWindow -Wait |
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
$version = '9.6.1' | |
# from /Applications/VMware Fusion.app/Contents/Library/isoimages/windows.iso | |
$iso_name = 'vmware_fusion_tools_windows_6.0.3.iso' | |
$download_url = "http://host.example.com/$iso_name" | |
(New-Object System.Net.WebClient).DownloadFile($download_url, "c:\windows\temp\$iso_name") | |
&c:\7-zip\7z.exe x "c:\windows\temp\$iso_name" -oc:\windows\temp\vmware -aoa | Out-Host | |
&c:\windows\temp\vmware\setup.exe /S /v`"/qn REBOOT=R`" | Out-Host |
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
$command = "<%= options[:command] %>" + '; exit $LASTEXITCODE' | |
$user = '<%= options[:username] %>' | |
$password = '<%= options[:password] %>' | |
$task_name = "WinRM_Elevated_Shell" | |
$out_file = "$env:SystemRoot\Temp\WinRM_Elevated_Shell.log" | |
if (Test-Path $out_file) { | |
del $out_file | |
} |
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
using System.Web; | |
using eProject.Framework; | |
using eProject.Framework.CallContextPreparation; | |
using eProject.Framework.PublicObjects; | |
using log4net; | |
using log4net.Util; | |
namespace Daptiv.Infrastructure.Logging | |
{ | |
public class LoggingCallContextPreparator : ICallContextPreparator |
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
require 'socket' | |
require 'net/ntlm' | |
$:.unshift(File.dirname(__FILE__) + '/../lib') | |
$user = nil | |
$passwd = nil | |
$host = ARGV[0] || "localhost" | |
$port = 80 | |
def header(f, host) |
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
//Copyright (c) 2012 Josip Medved <jmedved@jmedved.com> | |
//2012-04-12: Initial version. | |
using System; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Medo.Security.Cryptography { |
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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:String x:Key="/Default/CodeStyle/CodeCleanup/SilentCleanupProfile/@EntryValue">Default: Full Cleanup</s:String> | |
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ANONYMOUS_METHOD_DECLARATION_BRACES/@EntryValue">NEXT_LINE</s:String> | |
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_NAMESPACE/@EntryValue">1</s:Int64> | |
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/CASE_BLOCK_BRACES/@EntryValue">NEXT_LINE</s:String> | |
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/CONTINUOUS_INDENT_MULTIPLIER/@EntryValue">1</s:Int64> | |
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/EMPTY_BLOCK_STYLE/@EntryValue">TOGETHER_SAME_LINE</s:String> | |
<s:String x: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
<?xml version="1.0" encoding="utf-8"?> | |
<RuleSet Name="Daptiv All Rules" Description="This rule set contains all rules. Running this rule set may result in a large number of warnings being reported. Use this rule set to get a comprehensive picture of all issues in your code. This can help you decide which of the more focused rule sets are most appropriate to run for your projects." ToolsVersion="11.0"> | |
<IncludeAll Action="Warning" /> | |
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed"> | |
<Rule Id="CA1000" Action="Error" /> | |
<Rule Id="CA1001" Action="Error" /> | |
<Rule Id="CA1002" Action="Error" /> | |
<Rule Id="CA1003" Action="Error" /> | |
<Rule Id="CA1004" Action="Error" /> | |
<Rule Id="CA1005" Action="Error" /> |