Skip to content

Instantly share code, notes, and snippets.

@q3k
q3k / hashes.txt
Last active April 14, 2024 17:11
liblzma backdoor strings extracted from 5.6.1 (from a built-in trie)
0810 b' from '
0678 b' ssh2'
00d8 b'%.48s:%.48s():%d (pid=%ld)\x00'
0708 b'%s'
0108 b'/usr/sbin/sshd\x00'
0870 b'Accepted password for '
01a0 b'Accepted publickey for '
0c40 b'BN_bin2bn\x00'
06d0 b'BN_bn2bin\x00'
0958 b'BN_dup\x00'
@thesamesam
thesamesam / xz-backdoor.md
Last active May 4, 2024 09:26
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@vkbo
vkbo / upscaleDS9.py
Last active May 2, 2024 17:48
Script used to upscale ST:DS9 from PAL DVD to HD using Topaz Video AI and Iris V1 model
"""
Upscale: Star Trek Deep Space Nine
Source: PAL DVD
AI Model: Topaz Video AI 3.4, Iris V1
"""
import sys
import subprocess
from pathlib import Path
@gilangvperdana
gilangvperdana / nginx-minio-static.md
Last active December 19, 2023 00:58 — forked from harshavardhana/nginx-minio-static.md
How to configure static website using Nginx with MinIO ?

How to configure static website using Nginx with MinIO ?

1. Install nginx

2. Install minio

3. Install mc client

  • Add Minio
mc config host add <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY>
mc config host list
@MarkusPic
MarkusPic / .gitlab-ci.yml
Last active June 13, 2023 01:01
logseq-publish-for-gitlab
pages:
image: ghcr.io/pengx17/logseq-base:master
stage: deploy
script:
- mkdir public
- mv publish.mjs /home/logseq/publish.mjs
- cd /home/logseq
- "xvfb-run node /home/logseq/publish.mjs -p $CI_PROJECT_DIR -t $CI_PROJECT_DIR/public/build_trace.txt -o $CI_PROJECT_DIR/public"
artifacts:
paths:
@sjeandeaux
sjeandeaux / github-action-docker.yaml
Created September 9, 2022 07:47
Github Action and Google Workload Identity
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v2
- id: auth
uses: google-github-actions/auth@v0.8.1
@ashleykleynhans
ashleykleynhans / README.md
Last active January 24, 2024 13:27 — forked from dlage/README.md
Namecheap DNS to zone file
@a10y
a10y / coordinator.ts
Created August 16, 2022 02:41
Deno webworker example
import { serve } from "https://deno.land/std@0.140.0/http/server.ts";
serve(async (request) => {
const worker = new Worker(new URL("./worker.ts", import.meta.url).href, {
type: "module",
name: "worker-" + (100 * Math.random()).toFixed(),
});
const data = await request.json();
@LukasForst
LukasForst / README.md
Last active April 11, 2024 17:10
Traefik, Authentik forward auth example

Deploying Traefik using forward proxy mode with Authentik

This is an example guide how to deploy Authentik with Traefik in forward auth proxy mode - that means that any application behind the proxy will be automatically authenticated by Traefik. This allows better reuse of code and completely moves user management to Traefik & Authentik.

In this guide we use custom DNS to make the requests nicer and to show that it works with DNS. So step #1 is to put following records to your /etc/hosts (for example by sudo nano /etc/hosts and adding these values)

@Kranzes
Kranzes / guide.md
Last active April 21, 2024 00:03
SSH Resident Key Guide

Initial checks

Start by checking that there aren't any previous ssh keys inside the FIDO2 authenticator of your YubiKey. You can check if they exist by running the command below:

nix shell nixpkgs#yubikey-manager -c ykman fido credentials list

If the command above outputs a string mentioning "ssh" or "openssh", then you have already got a key generated and store on your YubiKey.

Evaluating additional authentication factors

Before generating a new ssh key to store on your YubiKey you must consider which additional required authentication factors you want to use. Below you can see a table with the available factors and their corresponding command: