- Examples of how to set up simple HTTP servers with different languages / libaries
- Main use case is for
- HTML pages
- file transfers
- Access via a browser with a format like
http://your.ip.address.or.hostname.here:8080
(e.g.http://127.0.0.1:8080
/http://localhost:8080
/http://192.168.0.1:8080
)- Local access IP:
127.0.0.1
/localhost
- Remote access IP:
- Some servers will show the IP address in the output
- Local access IP:
- Code for generating the user_hash value for Intercom's Identity verfication (Note: Identity verification was prevoiusly called Secure Mode)
- Based on http://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-languages/#ruby
- When creating this for mobile, the final output needs to be in lowercase (the web version accepts both upper and lower case)
- So Javascript code below should only be used for testing unless modified and used to run on a server
This file contains 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 | Type | Start Date | End Date | Moon Dependent | Notes | |
---|---|---|---|---|---|---|
New Year's Day | Public Holiday | 2024-01-01 | 2024-01-01 | N | Monday | |
Isra' Mi'raj | Public Holiday | 2024-02-08 | 2024-02-08 | N | Thursday | |
Chinese New Year | Public Holiday | 2024-02-10 | 2024-02-10 | N | Saturday | |
Chinese New Year | Public Holiday Replacement (Private) | 2024-02-12 | 2024-02-12 | N | Monday | |
National Day | Public Holiday | 2024-02-23 | 2024-02-23 | N | Friday | |
National Day | Public Holiday Replacement (Government) | 2024-02-24 | 2024-02-24 | N | Saturday | |
First Day of Ramadhan | Public Holiday | 2024-03-12 | 2024-03-12 | Y | Tuesday 2024-03-12 / Wednesday 2024-03-13 | |
Nuzul Al-Qur'an | Public Holiday | 2024-03-28 | 2024-03-28 | Y | Thursday 2024-03-28 / Friday 2024-03-29 | |
Hari Raya | Public Holiday | 2024-04-10 | 2024-04-12 | Y | 3 days starting on Wednesdaty 2024-04-10 / Thursday 2024-04-11 |
- https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html
- https://learnxinyminutes.com/docs/bash/
variable=1 # no spaces before and after =
This file contains 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
test text file |
This file contains 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
# Quick start for youtube-dl | |
- https://github.com/ytdl-org/youtube-dl/ | |
## Default usage | |
youtube-dl URL | |
## Download certain resolution | |
youtube-dl -f "best[height<=480]" URL | |
## Download certain extension |
echo '{"foo": {"bar": 1}}' | jq .foo.bar
-
Initiate commands with
Mod
key -
Mod
key:Win
/Alt
depending on configuration -
By default tiles horizontally
yt-dlp $URL
NewerOlder