Korbs / Signing OCI Images via Zot Registry
Última actividad 5 days 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 actividad 21 hours 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 actividad 1 week 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 actividad 1 week 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 actividad 1 week 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 actividad 1 week ago
Script:
const FormatDate = (LocaleDate: string) =>
new Date(LocaleDate).toLocaleString('en-US', {
dateStyle: "short",
timeStyle: "short"
})
FormatDate(YourDateVariable)
Korbs / c7ab272d34ef4a4da9c4c085f17f7e06
Última actividad 1 week 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 |
Korbs / ba16d4261d0749259c597da1ad083e1e
Última actividad 1 week ago
| 1 | <video controls style="width: 100%; margin-bottom: 24px;" src="./vid.mp4"></video> |
| 2 | <div class="full-seekbar"> |
| 3 | <div class="video-timestamp"> |
| 4 | <span id="text-live">--:--</span> |
| 5 | <span id="text-full">--:--</span> |
| 6 | </div> |
| 7 | <div class="seekbar"> |
| 8 | <span class="seekbar-current-progress"></span> |
| 9 | <span class="seekbar-tooltip"></span> |
| 10 | <input id="seek" name="seekbar" type="range"/> |
Korbs / a3dce5d09f1142169f492e7dae101613
Última actividad 1 week ago
Installing Agent on Linux
To install an agent into your Linux machine, Docker Engine is required to be installed.
Once done, create a new folder somewhere on the server and put the following file, named docker-compose.yml into it:
services:
drone-runner-docker:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
Korbs / b8b74de2925345cd95c34eca274f0d10
Última actividad 1 week ago
Letter to Netweak
About
This email explains ideas and features that SudoVanilla is interested in seeing on the service in the future.
Based on Status
