Useful for accessing a computer that does not have a public IP address, over the internet. The machine can be behind multiple firewalls and NATs.
###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.
Here are the commands might be usefull in this purpose:
anydesk --get-status: To get current status of anydesk, which might beofflien,onlineor nothing.anydesk --get-id: To get the ID that your system can be accessed by.anydesk --service: To start anydesk service if not already running (for Linux).anydesk --restart-service: To restart anydesk serviceanydesk --stop-service: To stop anydesk service
asyncvsdefervsmoduleattribute for <script> in HTML- w3schools
- MDN Web Docs
- NodeJS
- nvm - NodeJS installer and version manager written in Bash!
- Eloquent JS
- You don't know JS
- Type of any JS value:
Object.prototype.toString.call(value).split(' ').pop().slice(0,-1) - Event-loop: MDN Docs | NodeJS | Codedamn. Await doesn't block!
- Difference: `pro
- Type of any JS value:
Ref:
- https://learn.microsoft.com/en-us/windows/wsl/networking
- https://superuser.com/questions/1679757/how-to-access-windows-localhost-from-wsl2
- Obtain the IP address of your host machine (Windows) by running this command from your Linux distribution:
cat /etc/resolv.conf- Official Guide
- VMagnin's post
- NOTE: Make sure to do
sudo apt updateafter adding intel's repositories to apt. - VMagnin's post regarding sourcing
/opt/intel/oneapi/setvars.sh - Another useful source
My route:
curl -Lo- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpgsudo tee /etc/apt/sources.list.d/oneAPI.list <<< "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main"sudo apt update
Static sites are useful as personal website, portfolio, blogs, conference website, brouchureware etc.. Following are a few resources to get us started. Also see this sister gist.
Use @octokit/core.js or @octokit/request.js framework modules for interacting with the GitHub API. Don't write your own code for this.
- Introduction to GraphQL
- Using Global Node IDs received from REST API calls to fetch objects in GraphQL directly
- Forming calls with GraphQL
- Playground aka Explorer to learn and experiment with GitHub GraphQL: https://docs.github.com/en/graphql/overview/explorer
- Query: https://docs.github.com/en/graphql/reference/queries#repository
- Objects are identified by arguments. Objects have fields: https://docs.github.com/en/graphql/reference/objects#repository
- How to request GraphQL endpoint: https://docs.github.com/en/graphql/guides/forming-calls-with-graphql
- Octokit GraphQL client: use this for JS instead of own fetch()-based code, as it follows GitHub best practices
- GitHub doesn't allow unauthenticated GraphQL requests. How
- take your
minified JSONand turn it into a URL safe base64 string. The length of this string can be as big as this. - make a dummy url like
http://dummy.tld/<the base64 string>and shorten it using any URL shortener. - save the unique path of the shortened url as your compressed data (henceforth called token). No need to store the domain of the shortened URL as the URL shortener would be hardcoded in your app.
- Reconstruct the shortened URL from the token. Try to fetch (GET) the shortened URL.
- Parse the response for the redirect url and extract the base64 string.
- Decode the base64.
NewerOlder