This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
None of the string methods modify this – they always return fresh strings.
charAt(pos: number): string ES1
Returns the character at index pos, as a string (JavaScript does not have a datatype for characters). str[i] is equivalent to str.charAt(i) and more concise (caveat: may not work on old engines).
Steps to publish a npm package to beta that won't be available via latest and won't auto install on ncu updates etc
npm run dist etc"version": "0.1.120-beta.1" where beta.x is the number of those betasnpm publish --tag betaThere are two options for install:
npm install packagename@betanpm install package@0.1.120-beta.1| # Turn on Notifications | |
| do shell script "defaults -currentHost write com.apple.notificationcenterui doNotDisturb -bool FALSE; defaults -currentHost delete com.apple.notificationcenterui doNotDisturbDate; osascript -e 'quit application \"NotificationCenter\" ' && killall usernoted" -- this set 'Do not disturb' to false in the pref | |
| # Show Desktop | |
| do shell script "defaults write com.apple.finder CreateDesktop -bool true; killall Finder" | |
| # Show all windows | |
| tell application "System Events" | |
| set visible of (every process) to true | |
| end tell |
UPDATE (Fall 2020): This gist is an updated version to the Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL) guide, I usually just keep here notes, configuration or short guides for personal use, it was nice to know it also helps other ppl, I hope this one too.
Windows updated windows subsystem for linux to version 2, as the F.A.Q stated you can still use WSL version 1 side by side with version 2. I'm not sure about existing WSL machines surviving the upgrade process, but as always backup and 🤞. NOTE: WSL version 1 is not replace/deprecated, and there ar
First download the new old icon: https://cl.ly/mzTc (based on this)
You can also use the icon you want, but you need to convert it to .icns. You can use this service to convert PNG to ICNS.
Go to Applications and find VSCode, right click there and choose Get Info. Drag 'n drop the new icon.
| import chai from 'chai'; | |
| import sinonChai from 'sinon-chai'; | |
| import chaiAsPromised from 'chai-as-promised'; | |
| import chaiEnzyme from 'chai-enzyme'; | |
| chai.use(sinonChai); | |
| chai.use(chaiAsPromised); | |
| chai.use(chaiEnzyme()); | |
| // Make sure chai and jasmine ".not" play nice together |
| # Name it whatever you want. I like `y` because in my keyboard layout it's close to `;` | |
| function y() { | |
| previous=$? | |
| if [ $previous -eq 0 ]; then | |
| osascript -e "display notification \"Done\" with title \"Terminal Task\"" && say "it is done"; | |
| else | |
| osascript -e "display notification \"Failed\" with title \"Terminal Task\"" && say "it went to the trees"; | |
| fi | |
| } |
| Possible values for ext-name: | |
| bcmath | |
| bz2 | |
| calendar | |
| ctype | |
| curl | |
| dba | |
| dom | |
| enchant |
updated list moved to https://grin.io/coding-maxims