Skip to content

Scripts for setting up a development environment in university's computers

License

Notifications You must be signed in to change notification settings

mon-jai/environment-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Environment Setup

Scripts for setting up a development environment in university's computers.

Installation

Note
Also set an environment variable named SetupLogFilePath, containing the path to log file.

Syntax

. { Set-ExecutionPolicy Bypass -Scope Process -Force } *> $null; . ([scriptblock]::Create((irm 'https://raw.githubusercontent.com/mon-jai/environment-setup/main/setup-environment.ps1')))`
  [-Lang <ProgrammingLanguage>]

Parameters

-Lang

Valid values:

  • python/py. Install Python and related tooling.

  • c++/cpp. Install C++ tooling.

MISC

Enable Internet Connection Sharing

(run with administrative privileges)

# https://superuser.com/a/649183
regsvr32 hnetcfg.dll
$HNetShare = New-Object -ComObject HNetCfg.HNetShare
$connection = $m.EnumEveryConnection |? { $m.NetConnectionProps.Invoke($_).Name -eq "乙太網路" }
$config = $HNetShare.INetSharingConfigurationForINetConnection.Invoke($connection)
$config.EnableSharing(0)

Cleanup

Delete Chrome profile data

Remove-Item "$Env:LOCALAPPDATA\Google\Chrome\User Data\" -Force -Recurse

About

Scripts for setting up a development environment in university's computers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published