Korbs / SudoVanilla Wormhole - Keycloak Login Theme
Última atividade 3 days ago
| 1 | /* Changes made by SudoVanilla */ |
| 2 | html::before { |
| 3 | content: ""; |
| 4 | background: url("https://via.sudovanilla.org/media/wallpapers/SudoVanilla/Night%20Lint.png"); |
| 5 | position: fixed; |
| 6 | top: 0; |
| 7 | left: 0; |
| 8 | width: 100%; |
| 9 | height: 100%; |
| 10 | background-repeat: no-repeat; |
Korbs / Multi-Architecture OCI Image
Última atividade 1 month ago
Add multi-architecture support to an OCI image.
SudoVanilla uses
buildahinstead of Docker, as it builds valid OCI images that are supported by the SudoVanilla OCI Registry. The SudoVanilla OCI Registry is powered by Zot Registry, a OCI-native container image registry.
Build or Pull Images
Korbs / Signing OCI Images via Zot Registry
Última atividade 1 month ago
Zot Registry Configuration
Please enable notation as a trust option and API keys:
...
"http": {
"auth": {
"apikey": true
}
}
Korbs / Stop Using JavaScript, Use These Methods Instead
Última atividade 1 month ago

Stop Using JavaScript, Use These Methods Instead
Let's Talk First, About the JavaScript Issue
For years now JavaScript continues to be heavily overused for web features, where now today you have functions that have standardized, native, and high-performance equivalents in HTML and CSS. In today's modern web standards, it now allows developers to replace these complex and unnesesary scripts with simple declarative tags that provide better accessibility and speed. It's also really annoying when developers decide to use entire libraries for these basic tasks such as jQuery and React logic, which I personally hate.
Common Overused Scenarios
Korbs / e553eb313dcf498aa59a89c33123a0e8
Última atividade 1 month ago
Login via SSH Passwordless
Allow yourself to remotely login to your server without the need of typing in the password.
All of the commands listed below are to be run on the client-side only.
Generate RSA Keypair
Generate an RSA Keypair using ssh-keygen, run the following:
Korbs / cb7bd384220146ba8bd4d3487489763b
Última atividade 1 month ago
| 1 | function GetIEVersion() { |
| 2 | var sAgent = window.navigator.userAgent; |
| 3 | var Idx = sAgent.indexOf("MSIE"); |
| 4 | if (Idx > 0) |
| 5 | return parseInt(sAgent.substring(Idx+ 5, sAgent.indexOf(".", Idx))); |
| 6 | else if (!!navigator.userAgent.match(/Trident\/7\./)) |
| 7 | return 11; else return 0; |
| 8 | } |
| 9 | if (GetIEVersion() > 0) {document.write("This is IE " + GetIEVersion());document.write('<div id="out"><p>You are using an unsupported browser.</p><p style="font-size: 14px;">Try a different web browser:</p><ui><li><a href="https://www.microsoft.com/en-us/edge?r=1">Microsoft Edge</a></li><li><a href="https://www.google.com/chrome/">Google Chrome</a></li><li><a href="https://www.mozilla.org/en-US/firefox/new/">Firefox</a></li><li><a href="https://opera.com/">Opera</a></li></ui><p>You are using Internet Explorer ' + GetIEVersion() +'</p></div> <style>a {color: white;} li {font-size: 14px;} div#out {position: fixed;z-index: 999;background: black;color: white;border: none;top: 0px;left: 0px;width: 100%;height: 100%;padding: 30px;}</style>')} else {} |
Korbs / d4a8bce661f24c69817f65ef237a1b81
Última atividade 1 month ago
Astro - If Else Statements
Basic
With a true or false statement, we can simply create something like a link or button that changes depending on if the user is signed in.
Let's start out this example:
---
var UserLogin = false
Korbs / ca4ca79d04954338a80999cf08c2bdcb
Última atividade 1 month ago
Script:
const FormatDate = (LocaleDate: string) =>
new Date(LocaleDate).toLocaleString('en-US', {
dateStyle: "short",
timeStyle: "short"
})
FormatDate(YourDateVariable)
Korbs / c7ab272d34ef4a4da9c4c085f17f7e06
Última atividade 1 month ago
| 1 | services: |
| 2 | certbot_dns_porkbun: |
| 3 | image: infinityofspace/certbot_dns_porkbun:latest |
| 4 | command: certonly --non-interactive --agree-tos --email ${ACME_EMAIL} |
| 5 | --preferred-challenges dns --authenticator dns-porkbun |
| 6 | --dns-porkbun-key ${PORKBUN_API_KEY} --dns-porkbun-secret |
| 7 | ${PORKBUN_API_SECRET} --dns-porkbun-propagation-seconds 60 -d |
| 8 | "${DOMAIN}" |
| 9 | volumes: |
| 10 | - /etc/letsencrypt:/etc/letsencrypt |