This app does not collect any personally identifiable information and is designed for the sole use by staff and volunteers of Wilderness Basics Course Sierra Club San Diego Chapter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upload(files) { | |
const config = { | |
onUploadProgress: function(progressEvent) { | |
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
console.log(percentCompleted) | |
} | |
} | |
let data = new FormData() | |
data.append('file', files[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Start emulator in write-only mode | |
C:\Program Files (x86)\Android\android-sdk\emulator>emulator -avd pixel-3 -writable-system | |
# Pull the existing hosts file to your local machine: | |
adb root | |
adb remount | |
adb pull /system/etc/hosts c:\temp\hosts | |
# Edit your hosts file e.g. | |
10.0.2.2 local.mysite.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2022-07-26T21:23:47.449Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-Alias appcmd "$env:ProgramFiles\IIS Express\appcmd.exe" | |
appcmd list site /text:SITE.NAME | % { appcmd delete site $_ } | |
# or remove IISExpress directory | |
Remove-Item -Recurse $env:USERPROFILE\Documents\IISExpress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-SelfSignedCertificate -Type SSLServerAuthentication -DnsName 'local.mysite.com' -CertStoreLocation 'cert:\LocalMachine\My' -KeyExportPolicy Exportable -KeyAlgorithm RSA -KeyLength 4096 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private const int SALT_SIZE = 24; // size in bytes | |
private const int HASH_SIZE = 24; // size in bytes | |
private const int ITERATIONS = 100000; // number of pbkdf2 iterations | |
private static string CreateHash(string input, string salt) | |
{ | |
// Generate a salt | |
var saltBytes = Convert.FromBase64String(salt); | |
// Generate the hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This scripts create an IIS site with an SSL Certificate assigned to it | |
$siteName = 'sitename' | |
$sitepath = 'path to project' | |
Write-Host "Starting Site Creation for $siteName" | |
# Create Certificate | |
New-SelfSignedCertificate -Type SSLServerAuthentication -DnsName $siteName -CertStoreLocation 'cert:\LocalMachine\My' -KeyExportPolicy Exportable -KeyAlgorithm RSA -KeyLength 4096 | |
New-WebAppPool -Name $siteName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /d /r . %%d in (bin,obj,packages) do @if exist "%%d" rd /s/q "%%d" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet new classlib -f netcoreapp3.1 -o Project.Name | |
dotnet add package Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite -v 3.1.19 | |
dotnet add package Microsoft.EntityFrameworkCore.SqlServer -v 3.1.19 | |
dotnet add package Microsoft.EntityFrameworkCore.Design -v 3.1.19 | |
dotnet ef dbcontext scaffold "Server=.;Database=<DataBase>;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -o Models --schema dbo |
OlderNewer