| Feature | Keyboard Shortcut / Interaction |
|---|---|
| Autocomplete Code Suggestions | Appears automatically as you type code. |
| Asking Technical Questions | Start a comment with Q: followed by your question. |
| Generating Regular Expressions | Describe the desired regex in a code comment. |
| Generating Unit Tests | Describe the function to be tested in a code comment. |
| SQL Query Suggestions | Describe the desired SQL query in a code comment. |
| Viewing Multiple Solutions | Click on the ellipses (...) next to a suggestion, then select "Open GitHub Copilot." |
| Handling Multiple Conditions | Provide multiple conditions within your code comments. |
Classic tokens can be used to clone a github repo that needs github authetication
- Generate a classic token from your github setting --> developer setting --> personal access tokens --> Tokens (classic)
- In your server, go to a directory you want, then
git clone https://{token}@github.com/{username}/{repo}.git - done!
If your token expired, it will ask you for password, You can get this password in github developer setting --> personal access tokens --> Tokens (classic) then you will see that token has expired, when click on the warning message, it will create new token which is the password that the promot wants
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
| <template> | |
| <div> | |
| <section> | |
| <h2>Vue Component Structure</h2> | |
| <code> {{ '<template> // HTML </template>' }} </code> | |
| <code> | |
| {{ ` | |
| <script setup lang="ts"> | |
| // Javascript | |
| </script> |
- Open a new or existing file with
vim FILE_NAME. - Type
ito switch intoinsert modeso that you can start editing the file. pressEscTo get out of insert mode and back to command mode. :wq- To save and exit your file.:q!- Quit without first saving the file you were working on:w- To save file:e FILE_NAME- open and edit FILE_NAME/[keyword]- Searches for text in the document where keyword is whatever keyword, phrase or string of characters you're looking for?[keyword]- Searches previous text for your keyword, phrase or character string
- Create a
docker-compose.yaml
version: '3.1'
services:
wordpress:| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Intersection Observer API</title> | |
| <style> | |
| body { |
is a file used to execute code in a docker container. Docker images act as a set of instructions to build a Docker container, like a template
is a runnable instance of an image
-it run in the console you've typed this and you can see result there