Archive for November, 2023|Monthly archive page

DotNet File Locations in MacOS & Removing .Net

All Files: /usr/local/share/dotnet/

SDKs: /usr/share/dotnet/sdk/$version/

Runtime: /usr/share/dotnet/shared/$product/$version

.Net Host: /usr/share/dotnet/host/fxr/$version/

To remove a product: sudo rm -rf /usr/share/dotnet/<one-of-the-above-paths>

Example:

/usr/local/share/dotnet/sdk$ ls
7.0.400	7.0.403
/usr/local/share/dotnet/sdk$ sudo rm -rf 7.0.400
Password:
/usr/local/share/dotnet/sdk$ ls
7.0.403
/usr/local/share/dotnet/sdk$ cd .. 
/usr/local/share/dotnet$ ls
LICENSE.txt		host			sdk-manifests
ThirdPartyNotices.txt	packs			shared
dotnet			sdk			templates
/usr/local/share/dotnet$ cd shared
/usr/local/share/dotnet/shared$ ls
Microsoft.AspNetCore.App	Microsoft.NETCore.App
/usr/local/share/dotnet/shared$ cd Microsoft.AspNetCore.App 
/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App$ ls
7.0.10	7.0.13
/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App$ sudo rm -rf 7.0.10         
/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App$ cd ..
/usr/local/share/dotnet/shared$ cd Microsoft.NETCore.App    
/usr/local/share/dotnet/shared/Microsoft.NETCore.App$ ls                      
7.0.10	7.0.13
/usr/local/share/dotnet/shared/Microsoft.NETCore.App$ sudo rm -rf 7.0.10      
/usr/local/share/dotnet/shared/Microsoft.NETCore.App$ ls
7.0.13
/usr/local/share/dotnet/shared/Microsoft.NETCore.App$ cd ../..
/usr/local/share/dotnet$ ls
LICENSE.txt		host			sdk-manifests
ThirdPartyNotices.txt	packs			shared
dotnet			sdk			templates
/usr/local/share/dotnet$ cd host 
/usr/local/share/dotnet/host$ ls
fxr
/usr/local/share/dotnet/host$ cd fxr
/usr/local/share/dotnet/host/fxr$ ls
7.0.10	7.0.13
/usr/local/share/dotnet/host/fxr$ 
/usr/local/share/dotnet/host/fxr$ sudo rm -rf 7.0.10
/usr/local/share/dotnet/host/fxr$ ls
7.0.13
One-Time
Monthly
Yearly

Make a one-time donation

Make a monthly donation

Make a yearly donation

Choose an amount

$1.00
$5.00
$10.00
$5.00
$15.00
$100.00
$5.00
$15.00
$100.00

Or enter a custom amount

$

Your contribution is appreciated.

Your contribution is appreciated.

Your contribution is appreciated.

DonateDonate monthlyDonate yearly

GitHub Authentication

  • Username & Password (risky)
  • Personal Access Tokens
  • SSH Keys
  • Deploy Keys

Added Security Options

  • Two Factor Authentication (MFA)
  • SAML SSO
    • Active Directory Federation Services (ADFS)
    • Microsoft Entra ID
    • Okta
    • OneLogin
    • PingOne
    • Others…
  • LDAP
    • Active Directory
    • Oracle Directory Server Enterprise Edition
    • OpenLDAP
    • Open Directory
    • Others…

JavaScript Dates

new Date() is a JavaScript object containing a number that represents milliseconds since 1/1/1970 UTC. Also defined as the number of milliseconds that have elapsed since the ECMAScript epoch (equivalent to the UNIX epoch) of 1/1/1970.

Interesting Note:

A number in ECMAScript can represent all integers from -9,007,199,254,740,992 to 9,007,199,254,740,992. The time value is something less than that: -8,640,000,000,000,000 to 8,640,000,000,000,000 milliseconds. This works out to approximately -273,790 to 273,790 years relative to 1970. (Reference 21.4.1.1 ECMAScript).

MDN Reference

Keep in mind: the month is zero based. All others are 1 based. Example:

let date = new Date(2022,3,29,14,1,30,50);

The integer “3” for the month parameter is not March, but April.

Getters return the time zone of the machine the code is running on. There is the UTC version of the date getters.