Skip to content

Instantly share code, notes, and snippets.

thumbprint = "1BCCDDBCA398B0F2C5E65D3C8ABF51849A2D10E4"
powershell_script 'configure-lcm' do
code <<-MYCODE
cd c:\\
configuration LCM
{
param ($thumbprint)
localconfigurationmanager
{
RebootNodeIfNeeded = $false
#[macro_use]
extern crate nom;
use nom::{IResult, digit};
use std::str;
use std::str::FromStr;
fn identity<T>(a: T) -> T {
a
}
diff --git a/providers/default.rb b/providers/default.rb
index ed48bf1..8e6ef78 100644
--- a/providers/default.rb
+++ b/providers/default.rb
@@ -20,6 +20,8 @@
# limitations under the License.
#
+provides :timezone
+
$ErrorActionPreference = "Stop";
Function Log($m) { Write-Host " $m`n" }
Function Make-WebClient {
$proxy = New-Object -TypeName System.Net.WebProxy
$proxy.Address = $env:http_proxy
$client = New-Object -TypeName System.Net.WebClient
$client.Proxy = $proxy
return $client
/*
@TargetNode='localhost'
@GeneratedBy=adamed
@GenerationDate=09/03/2014 22:15:59
@GenerationHost=ADAMED5
*/
instance of MSFT_RoleResource as $MSFT_RoleResource1ref
{
10 failed: elapsed: 2
1 failed: elapsed: 1
0 failed: elapsed: 0
9 failed: elapsed: 2
11 failed: elapsed: 2
2 failed: elapsed: 0
6 failed: elapsed: 3
8 failed: elapsed: 3
7 failed: elapsed: 3
5 failed: elapsed: 4
-module(problem08).
-compile(export_all).
%
% Eliminate consecutive duplicates of list elements.
%
eliminate_duplicates(L) ->
lists:reverse(
lists:foldl(