Skip to content

Instantly share code, notes, and snippets.

View jozefizso's full-sized avatar
🏳️‍🌈

Jozef Izso jozefizso

🏳️‍🌈
  • Slido, Cisco Systems
  • Bratislava, Slovakia
View GitHub Profile
DOMAIN='sso-dbbfec7f.sso.duosecurity.com'
PORT=443
echo "A records:"; dig +short "$DOMAIN" A
echo "AAAA records:"; dig +short "$DOMAIN" AAAA
for ip in $(dig +short "$DOMAIN" A; dig +short "$DOMAIN" AAAA); do
echo "== $ip =="
openssl s_client -connect "${ip}:${PORT}" -servername "$DOMAIN" </dev/null 2>/dev/null \
| openssl x509 -noout -fingerprint -sha256 -subject -issuer -startdate -enddate
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOxix8wtGKaxhq3R7cO9keiGD/JE+mTDLrgDIb1NCuii jozef@rpi.home
@jozefizso
jozefizso / table.md
Last active November 24, 2025 13:50
Password manager command to read tokens securely.
Secret Manager Example Command
GitHub CLI $(gh auth token)
Keychain Access $(security find-generic-password -a "$USER" -s github_token_mcp -w)
1Password CLI $(op read 'op://CLI/GITHUB_TOKEN_MCP/password')
Gnome Keyring $(secret-tool lookup service github-token-mcp account "$USER")
@jozefizso
jozefizso / workflow.yml
Created November 13, 2025 21:26
Run Copilot in a workflow
jobs:
ai-dependabot-review:
if: github.event.pull_request.user.login == 'dependabot[bot]'
permissions:
contents: read
env:
GITHUB_TOKEN: ${{ secrets.COPILOT_PAT }} # fine-grained PAT with "Copilot Requests" read-only
PR_TITLE: ${{ github.event.pull_request.title }}
PR_BODY: ${{ github.event.pull_request.body }} # sanitizes before used in the shell command
runs-on: ubuntu-latest
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-24.04
RUN sudo apt install -y software-properties-common
RUN sudo add-apt-repository ppa:ondrej/apache2
RUN sudo add-apt-repository ppa:ondrej/php
RUN sudo apt update
RUN sudo apt install php-5.6
#
# Test activation of Slido for PowerPoint add-in
#
# © 2025 Cisco Systems, Inc. All rights reserved.
#
$addin = New-Object -ComObject "Slido.PowerPoint.Addin"
if ($addin -ne $null) {
Write-Host "Slido object 'Slido.PowerPoint.Addin' activated."
}
0000000: 0000 0000 011e 0002 0001 1045 6c20 4361 ...........El Ca
0000010: 7069 7461 6e20 3130 5f31 3100 0000 0000 pitan 10_11.....
0000020: 0000 0000 0000 e087 027f 482b 0000 0006 ..........H+....
0000030: 86a2 0752 6570 6f72 7473 0000 0000 0000 ...Reports......
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000070: 0000 0016 f3eb e3a5 c0a9 0000 0000 0000 ................
0000080: 0000 ffff ffff 0000 4920 0000 0000 0000 ........I ......
0000090: 0000 0000 0000 0010 0008 0000 e086 e65f ..............._
@jozefizso
jozefizso / 01_yo.md
Last active December 31, 2024 17:10
Yeoman environments supported by `yo` cli and the `yeoman-generator` library.
yo yeoman-environment node
2.0.0 ^2.0 >=4
2.0.6 ^2.3 >=6
3.x ^2.4 >=8
4.0 ~3.2 >=12.10.0
4.3 ^3.5 >=12.10.0
5.0 ^4.0 ^18.17.0 || >=20.5.0
5.1 ^4.3 ^18.17.0 || >=20.5.0
import { test, expect } from './../../packages/playwright-mso-core/index.mjs';
// the `powerpoint` object is auto injected
test('test Microsoft PowerPoint app', async ({ powerpoint }) => {
await expect(powerpoint.version).toEqual('16.0');
});
// the `presentation` object is auto injected with the `powerpoint` object as auto dependency
test('test presentation', async ({ presentation }) => {
const title = await presentation.title();
// alt
// import { powerpoint } from '@netofficefw/playwright-mso'
// import { powerpoint } from '@netofficefw/playwright-powerpoint'
import { powerpoint } from '@netofficefw/playwright'
(async () => {
// launch PowerPoint app
const app = await powerpoint.launch();
console.log(`Version: ${app.version()}`);