All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
Korbs's Avatar

Korbs / a2bdaf5add0643faaf215ce6544680d8

0 likes
0 forks
3 files
Last active 1 week ago
1 services:
2 zot:
3 image: ghcr.io/project-zot/zot:latest
4 network_mode: host # Configure the ports in the "config.json" file.
5 stdin_open: true
6 tty: true
7 volumes:
8 - ./config.json:/etc/zot/config.json
9 - ./htpasswd:/etc/zot/htpasswd
10 - ./zot:/var/lib/registry # Generated
Korbs's Avatar

Korbs / 1408498b9961410dbb50c50baf71fddb

0 likes
0 forks
1 files
Last active 1 week ago
1 var htmlElement = document.documentElement;
2 if (navigator.platform.match(/(Mac)/i)) {
3 htmlElement.className = 'Mac'
4 }
5 if (navigator.platform.match(/(Linux)/i)) {
6 htmlElement.className = 'Linux'
7 } else {
8 htmlElement.className = 'Windows'
9 }
10 document.addEventListener('click', function(event) {
Korbs's Avatar

Korbs / 10448ff5e7fc48c4bd668d6b42651904

0 likes
0 forks
1 files
Last active 1 week ago

Randomize Class Names in Astro Web Framework

If you're wanting to have your class names in your Astro website randomized, no extra integrations or packages are needed. This can be done simply using the module method.

Module Method

Your CSS file needs to have the module name in it, such as *.module.css. For this example, we'll use index.module.css.

/* index.module.css */
Korbs's Avatar

Korbs / 4504dda5a13440bf916c6c8ae75f6519

0 likes
0 forks
1 files
Last active 1 week ago

How To

Screen Recording - Using Method in Mozilla Firefox

Violentmonkey Extension

This extension is required, please install for your browser:

  • Chromium
  • Firefox (Mobile is also supported)

Violentmonkey Script

Korbs's Avatar

Korbs / 1669f84c435b4f1cbccfa0fb3fdd030f

0 likes
0 forks
1 files
Last active 1 week ago
1 find . | grep 'JPG' | nl -nrz -w3 -v0001 | while read n f; do mv "$f" "$n.JPG"; done
Korbs's Avatar

Korbs / 955a131032e44682a1a3b7c653f9dc98

0 likes
0 forks
4 files
Last active 1 week ago
1 <h2 data-i18n="page-heading"></h2>
2 <p data-i18n="message"></p>
3 <a data-i18n="links.source" href="#"></a>
4
5 <script>
6 const availableLocales = ['en', 'jp']
7 const locales = {
8 en: {
9 "page-heading": "i18n in Vanilla JavaScript",
10 "message": "This is a sample text.",
Korbs's Avatar

Korbs / 0386a43f4bd14e398de6d471d2b19e48

0 likes
0 forks
2 files
Last active 1 week ago
1 services:
2 nephele:
3 image: oci.registry.sudovanilla.org/cloud
4 restart: always
5 ports:
6 - 'PORT:80'
7 volumes:
8 - ./storage/:/data
9 environment:
10 REALM: cloud1.sudovanilla.org
Korbs's Avatar

Korbs / 337c037a56a74186b1a332531d63cb78

0 likes
0 forks
1 files
Last active 1 week ago

Watch Dogs 2 running on the Steam Deck via Steam Client

For last resort only if all other methods to boot Watch Dogs 2 fails on the Steam Deck. This already assumes you own Watch Dogs(WD1) and Watch Dogs 2(WD2). In my case, I own WD1 via Steam and WD2 via Ubisoft Connect.

I've only been able to get WD1 to boot via Steam client and all other methods to boot WD2 do not work as Ubisoft Connect tends to crash on boot.

Instead, since I am no longer interested in playing WD1, I went ahead and swap out the files in the Steam folder for WD1 with WD2, also making sure the executable still matches the target path so Steam boots it. This appears to work in tricking Steam to boot WD2 without issue and Ubisoft Connects boots properly.

File Structure

Korbs's Avatar

Korbs / 183b3ed1d0b74c25a6433cd1215112ce

0 likes
0 forks
1 files
Last active 1 week ago
1 cd repository
2 git checkout --orphan NEW_ORPHAN_BRANCH_NAME
3 git rm -rf .
4 rm '.gitignore'
5 echo "# New Orphan Branch" > README.md
6 git add README.md
7 git commit -a -m ":rocket: Init"
8 git push origin NEW_ORPHAN_BRANCH_NAME
Korbs's Avatar

Korbs / 58c32c97ca8f490a9a19471299832d1a

0 likes
0 forks
3 files
Last active 1 week ago
1 .video-container {
2 position: relative;
3 }
4 .video-container canvas {
5 top: 0px;
6 left: 0px;
7 width: 100%;
8 height: 100%;
9 object-fit: cover;
10 z-index: -1;
Newer Older

Powered by Opengist ⋅ Load: 90ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文