Skip to content

Instantly share code, notes, and snippets.

View dreammaster38's full-sized avatar

Thomas Guenther dreammaster38

View GitHub Profile
#-------------------------------------------------------------------------------------
# Create Self signed root certificate
# -dnsname -DnsName domain.example.com,anothersubdomain.example.com
# -Subject "CN=Patti Fuller,OU=UserAccounts,DC=corp,DC=contoso,DC=com"
$cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature `
-Subject "CN=P2SRootCert" `
-KeyExportPolicy Exportable `
-HashAlgorithm sha256 -KeyLength 4096 `
-CertStoreLocation "Cert:\CurrentUser\My" `
-KeyUsageProperty Sign `
@dreammaster38
dreammaster38 / Program.cs
Created June 22, 2016 20:56 — forked from jamesmanning/Program.cs
simple TCP client and server
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
@dreammaster38
dreammaster38 / foreach-progressbar.R
Last active August 29, 2015 14:27 — forked from andrie/foreach-progressbar.R
Create a tclktk progressbar to provide feedback when running a parallel job
library(foreach)
library(iterators)
library(doParallel)
library(tcltk)
# Choose number of iterations
n <- 250
# In sequence, without progress bar ---------------------------------------
@dreammaster38
dreammaster38 / foreach-parallel-progressbar.R
Last active August 29, 2015 14:27 — forked from andrie/foreach-parallel-progressbar.R
Creating progress bars from each parallel worker using foreach and doParallel
library(foreach)
library(iterators)
library(doParallel)
library(tcltk)
# Choose number of iterations
n <- 1000
cl <- makeCluster(8)
<#
This license governs use of the accompanying software. If you use the software, you
accept this license. If you do not accept the license, do not use the software.
1. Definitions
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
same meaning here as under U.S. copyright law.
A "contribution" is the original software, or any additions or changes to the software.
A "contributor" is any person that distributes its contribution under this license.
"Licensed patents" are a contributor's patent claims that read directly on its contribution.
4r5e
5h1t
5hit
a55
anal
anus
ar5e
arrse
arse
ass