Skip to content

Instantly share code, notes, and snippets.

View jnbdz's full-sized avatar
👨‍💻
None stop

JN Σ jnbdz

👨‍💻
None stop
View GitHub Profile
[Desktop Entry]
Name=dwm
Comment=Dynamic Window Manager
Exec=/usr/local/bin/dwm
Type=Application
X-GDM-SessionRegisters=true
---
name: Pre-Build Workflow
on:
push:
branches:
- master
- develop
jobs:
tests:
runs-on: ${{ matrix.os }}
//await expect(page.locator("#box-tabs")).toBeInViewport();
// Check if specific tabs are present and visible
/*const heryTab = page.locator('#box-tabs-hery-file-link');
const cacheTab = page.locator('#box-tabs-cache-link');
const uploadTab = page.locator('#box-tabs-eql-link');
await expect(heryTab).toBeVisible();
await expect(cacheTab).toBeVisible();
await expect(uploadTab).toBeVisible();
<ul class="pf-v6-c-tabs__list" role="tablist">
<li class="pf-v6-c-tabs__item" role="presentation">
<button
type="button"
class="pf-v6-c-tabs__link"
role="tab"
id="vertical-tabs-hery-link"
>
<span class="pf-v6-c-tabs__item-text">Users</span>
</button>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🛝 Hery - Playground 🛝</title>
<link rel="stylesheet" href="assets/library/node_modules/@patternfly/patternfly/patternfly.min.css">
<!--<link rel="stylesheet" href="assets/library/node_modules/@patternfly/patternfly/patternfly-addons.css">-->
<!--<link rel="stylesheet" href="assets/library/node_modules/jquery-ui/dist/themes/start/jquery-ui.min.css">-->
<link rel="stylesheet" href="assets/style.css">
<div class="pf-v6-l-stack">
<div class="pf-v6-l-stack__item">content</div>
<div class="pf-v6-l-stack__item pf-m-fill pf-v6-l-split">
<div class="pf-v6-l-split__item">content</div>
<div class="pf-v6-l-split__item pf-m-fill">pf-m-fill</div>
<div class="pf-v6-l-split__item">content</div>
</div>
<div class="pf-v6-l-stack__item">content</div>
</div>
@jnbdz
jnbdz / pre-push
Created September 14, 2024 22:38
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Function to output error messages
error() {
echo "Error: $1" >&2
exit 1
}
Some cookies are misusing the recommended “SameSite“ attribute 2
Cookie “q_auth_d97c331f-595d-4592-8b1a-6166bbeea031” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite localhost:8442
Cookie “q_session_chunk_2” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribut
// Source: https://miloserdov.org/?p=2667
sudo swapoff /swapfile
sudo swapon --priority 100 /swapfile