Skip to content

Instantly share code, notes, and snippets.

View coderhh's full-sized avatar
🎯
Focusing

James Han coderhh

🎯
Focusing
  • Shanghai, China
View GitHub Profile
@coderhh
coderhh / tensorflow_gpu_setup_win10.ps1
Last active October 1, 2020 03:48
PowerShell Script to setup tensorflow gpu on Windows 10
<#
Script to setup gpu support for tensorflow on Windows 10
Author: Yehang Han
#>
Clear-Host
# 1. Install Microsoft Visual C++ Compiler
Write-Host "Installing Microsoft Visual C++ Compiler" -ForegroundColor Green
if (Get-Module -ListAvailable -Name VSSetup) {
#Write-Host "Module VSSetup exists"
@coderhh
coderhh / ExportRootCA.ps1
Created June 22, 2020 14:02
powershell script to export root CA
$geExternalRootCAExportPath = $proxyPath + "\certificate.cer"
Write-Host "Exporting GE External Root CA"
$certificate = Get-Item (Get-ChildItem -Path Cert:\CurrentUser\Root\ | Where-Object {$_.Subject -eq "CN=GE External Root CA 2.1, O=General Electric Company, C=US"}).PSPath
Export-Certificate -FilePath $geExternalRootCAExportPath -Cert $certificate[0]