Анимация Земли. Подробнее о создании можно почитать на Хабрахабре.
I have read many articles about WSL networking that try and sort DNAT and static IP and none that I've found seem to work or only work for some. So here is my attempt....
It seems getting port forwarding to work in WSL is not easy. I think WSL has unusual hidden network mechanisms and that confuses the matter. Also when WSL boots the WSL init mechanism gives the guest a random address, which is no use for static NAT
This worked for me. Try it yourself and let me know if I've finally cracked it !!
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
- take your
minified JSON
and 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.
#!/bin/bash | |
# rainbow | |
# A bash script that prints a nice set of colours on an ANSI terminal | |
# Written as a platform to test capability and conformance, but it's also pretty!! | |
# Written in celebration of Pride Month 2023 and support of LGBTQ+ | |
# J. Morgan (@the-moog on github) | |
# | |
# License: MIT: Free to the community not commercial gain and no warranties applied. |
- 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
Use @octokit/core.js or @octokit/request.js framework modules for interacting with the GitHub API. Don't write your own code for this.
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.
По этой ссылке вы можете найти
релизы Github Desktop для Linux. Чтобы скачать один из них, кликните по нужному названию (например, GitHubDesktop-linux-amd64-1.4.2-linux1.deb
).
Если вы используете Ubuntu или Debian - вам нужен установщик с расширением .deb
. Скачайте
его, откройте и нажмите install
в появившемся окошке. Готово, программа
установлена.