Skip to content

Instantly share code, notes, and snippets.

@pervognsen
pervognsen / shift_dfa.md
Last active January 19, 2025 23:09
Shift-based DFAs

A traditional table-based DFA implementation looks like this:

uint8_t table[NUM_STATES][256]

uint8_t run(const uint8_t *start, const uint8_t *end, uint8_t state) {
    for (const uint8_t *s = start; s != end; s++)
        state = table[state][*s];
    return state;
}
@NorkzYT
NorkzYT / proxmox-lxc-cifs-share.sh
Last active January 19, 2025 23:09
Proxmox CIFS Share Mount Wizard Script
#!/bin/bash
# This script is designed to assist in mounting CIFS/SMB shares to a Proxmox LXC container.
# It automates the process of creating a mount point on the Proxmox VE (PVE) host, adding the
# CIFS share to the /etc/fstab for persistent mounts, and configuring the LXC container to
# recognize the share. This script is intended for use on a Proxmox Virtual Environment and
# requires an LXC container to be specified that will access the mounted share.
#
# Prerequisites:
# - Proxmox Virtual Environment setup.
@cgonzalezdai
cgonzalezdai / como-subir-un-proyecto-local-a-github.md
Last active January 19, 2025 23:04
Como subir un proyecto local a github

Como subir un proyecto local a github.

desde la web de github

Creamos un nuevo repositorio en https://github.com. Le damos nombre, descripción, seleccionamos si va a ser un proyecto publico o privado si es el caso, y dejamos el check de crear README sin marcar. Le damos a crear repositorio y con esto ya tenemos el repositorio donde alojaremos nuestro proyecto.

desde la terminal del equipo donde esta el proyecto que queremos subir a github

Nos vamos a la carpeta del proyecto y ejecutamos estos comandos.

git init

git add .
@strickvl
strickvl / README.md
Last active January 19, 2025 23:04
Youtube Summarisation tampermonkey script

YouTube Video Summarizer

A Tampermonkey userscript that adds AI-powered video summarization capabilities to YouTube using GPT-4 and Claude models.

CleanShot 2025-01-19 at 17 27 06@2x

Updated recently to give better / more detailed summaries for the 'detailed summaries' button

Features

# freezedetect

ffmpeg -i xxx.mkv -vf "freezedetect=n=-60dB:d=2,metadata=mode=print:file=/tmp/test2.log" -map 0:v:0 -f null -

% cat /tmp/test2.log frame:60 pts:2000 pts_time:2 lavfi.freezedetect.freeze_start=0 frame:126 pts:4200 pts_time:4.2 lavfi.freezedetect.freeze_duration=4.2 lavfi.freezedetect.freeze_end=4.2

@DavidWells
DavidWells / aligning-images.md
Last active January 19, 2025 23:00
Guide to aligning images in github readme.md files. https://davidwells.io/snippets/how-to-align-images-in-markdown

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@wikrie
wikrie / fritzbox-cert-update.sh
Last active January 19, 2025 22:59
Fritzbox Fritz!Box AVM SSL Letsencrypt automatically update
#!/bin/bash
## this little Gist is for Copy the Letsencrypt Cert from an Linux machine (e.g. Raspberry PI or Synology NAS)
## to the router (Fritzbox).
## It is usefull to be able to speak to the Router over DDNS without any Cert issue in the Browser.
## thanks to https://gist.github.com/mahowi for the perfect Idea
## put it in /etc/letsencrypt/renewal-hooks/post so it gets run after every renewal.
## since Fritz OS 7.25 it is needed to select a Username, from a security point of view
## it is always a good idea to have a non default user name. And as normaly a Fritz Box
## is connected to the Internet, the prefered method should be WITH Username.
@Shadowroot97
Shadowroot97 / Endpoint api common list
Last active January 19, 2025 22:59
Endpoint api common list for fuzzing
0
1
1.0
2
2.0
3
3.0
4
4.0
5