Discover gists
| #!/usr/bin/env python3 | |
| from cryptography.fernet import Fernet | |
| from kdf import derive_key | |
| passphrase = b"hunter2" | |
| f = Fernet(derive_key(passphrase)) | |
| with open('encrypted.txt', 'rb') as file: | |
| encrypted = file.read() # binary read |
| const puppeteer = require('puppeteer') | |
| const { sendNotify } = require("./sendNotify"); | |
| (async () => { | |
| // Launch the browser and open a new blank page | |
| const browser = await puppeteer.launch({headless: "new",args: ['--no-sandbox', '--disable-setuid-sandbox']}); | |
| const page = await browser.newPage(); |
| int main() | |
| { | |
| printf("Hello world"); | |
| return 0; | |
| } |
Some things you need :
- Laravel project
- VPS / Virtual Private Server
- Domain (if any)
- Put your Laravel project into source code management (github/gitlab/others)
Here I will use my company-management reporsitory.
Applied rationality for a coding agent. Defensive epistemology: minimize false beliefs, catch errors early, avoid compounding mistakes.
This is correct for code, where:
- Reality has hard edges (the compiler doesn't care about your intent)
- Mistakes compound (a wrong assumption propagates through everything built on it)
- The cost of being wrong exceeds the cost of being slow
| #################### | |
| # # | |
| # Copiar todo esto # | |
| # # | |
| #################### | |
| # Hecho con gusto por Rafa @GonzalezGouveia | |
| # video 05 - vectores | |
| # Objetivo: estudiar qué es una vector en R. |
A simple webhook plugin for PocketBase.
Adds a new collection "webhooks" to the admin interface, to manage webhooks.
The webhook record in the following example send create, update, and delete events in the tickets collection
to http://localhost:8080/webhook.
Caution Upgrading from Debian 12 to Debian 13 on machines with mdadm has intermittently failed for me; symptom is that grub EFI is not up to date and system boots into BIOS. Root cause under investigation; it might not be related to mdadm.
To start, read the official release notes.
If your install fits into "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 13 "trixie" from Debian 12 "bookworm" can be helpful. 3rd-party repos are handled with a find command.
Note upgrade is only supported from Debian 12 to Debian 13. If you are on Debian 11, upgrade to Debian 12 first. Then once on Debian 12, you can upgrade to Debian 13.
| # First let's update all the packages to the latest ones with the following command | |
| sudo apt update -qq | |
| # Now we want to install some prerequisite packages which will let us use HTTPS over apt | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common -qq | |
| # After that we will add the GPG key for the official Docker repository to the system | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| # We will add the Docker repository to our APT sources |