Skip to content

Instantly share code, notes, and snippets.

@NickCraver
NickCraver / Windows10-Setup.ps1
Last active July 5, 2024 17:09
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using ServiceStack.Net30.Collections.Concurrent;
/// <summary>
import React from 'react';
import md5 from 'MD5';
class Avatar extends React.Component {
static propTypes = {
email: React.PropTypes.string,
size: React.PropTypes.number
}
static defaultProps = {
@thecodejunkie
thecodejunkie / gist:883061
Created March 23, 2011 13:00
Using a custom extension to the Nancy test harness to be able to add multipart/form-data encoded data into the request
[Fact]
public void Should_add_multipart_formdata_encoded_files_to_request_filestream()
{
// Given
var stream =
CreateFakeFileStream("This is the contents of a file");
var multipart = new BrowserContextMultipartFormData(x => {
x.AddFile("foo", "foo.txt", "text/plain", stream);
});