This file contains hidden or 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
[user] | |
default=my_default_user |
This file contains hidden or 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
# wsl Help | |
wsl --help | |
# Check WSL status | |
wsl --status | |
# Check WSL version | |
wsl --version | |
# Update WSL |
This file contains hidden or 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
AWS Amplify and AppSync with Expo (React Native) cheat sheet and reference guide | |
[AWS Amplify] https://aws-amplify.github.io | |
[Expo] https://expo.io | |
// In order to run the Android emulator with Expo you will need Android Studio with Android Virtual Device Manager | |
// In order to run the iOS simulator with Expo you'll need Xcode | |
INITIALIZE PROJECT |
This file contains hidden or 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
# Function to change the default user | |
Function WSL-SetDefaultUser ($distro, $user) { Get-ItemProperty Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\*\ DistributionName | Where-Object -Property DistributionName -eq $distro | Set-ItemProperty -Name DefaultUid -Value ((wsl -d $distro -u $user -e id -u) | Out-String); }; | |
# Usage | |
# WSL-SetDefaultUser <DistroName> <UserName> | |
$title = 'WSL Import' | |
$question = 'The current Ubuntu WSL system will be unregistered, and the new VHD imported. Are you sure you want to proceed?' | |
$choices = '&Yes', '&No' | |
$decision = $Host.UI.PromptForChoice($title, $question, $choices, 1) |
This file contains hidden or 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
wsl --export Ubuntu ubuntu.tar | |
wsl --unregister Ubuntu | |
wsl --import Ubuntu D:\VMs\WSL\Ubuntu\ ubuntu.tar --version 2 |
This file contains hidden or 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
[wsl2] | |
localhostForwarding=true |
This file contains hidden or 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
module.exports = ({ env }) => ({ | |
defaultConnection: 'default', | |
connections: { | |
default: { | |
connector: 'mongoose', | |
settings: { | |
host: env('DATABASE_HOST', 'cluster0-shard-00-00.hp5fc.mongodb.net:27017,cluster0-shard-00-01.hp5fc.mongodb.net:27017,cluster0-shard-00-02.hp5fc.mongodb.net:27017'), | |
srv: env.bool('DATABASE_SRV', false), | |
port: env.int('DATABASE_PORT', 27017), | |
database: env('DATABASE_NAME', 'cmsdb'), |
This file contains hidden or 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
module.exports = ({ env }) => ({ | |
defaultConnection: 'default', | |
connections: { | |
default: { | |
connector: 'mongoose', | |
settings: { | |
host: env('DATABASE_HOST', 'cluster0.hp5fc.mongodb.net'), // Your MongoDB Atlas Cluster Service DNS | |
srv: env.bool('DATABASE_SRV', true), | |
port: env.int('DATABASE_PORT', 27017), | |
database: env('DATABASE_NAME', 'cmsdb'), |
This file contains hidden or 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
# mongod.conf | |
# for documentation of all options, see: | |
# http://docs.mongodb.org/manual/reference/configuration-options/ | |
# Where and how to store data. | |
storage: | |
dbPath: C:\your\custom\path\to\mongodb\data | |
journal: | |
enabled: true |
This file contains hidden or 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
{ | |
"name": "my_javascript_project", | |
"version": "1.0.0", | |
... | |
"scripts": { | |
"lint": "./node_modules/.bin/eslint ./app/**/*.*js* --fix", | |
... | |
}, | |
"husky": { | |
"hooks": { |