Skip to content

Instantly share code, notes, and snippets.

@mostafabahri
mostafabahri / decrypt.py
Last active December 7, 2025 12:01
Fernet encryption example with password
#!/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
@Archeb
Archeb / MTeamKeep.js
Last active December 7, 2025 12:00
MTeam自动登录保号脚本(青龙面板用)
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();
@Yassine2124
Yassine2124 / hello.c
Last active December 7, 2025 11:59
Mon hello world
int main()
{
printf("Hello world");
return 0;
}
@alfajrimutawadhi
alfajrimutawadhi / deploy-laravel-en.md
Created June 16, 2023 06:19
How to deploy Laravel to server (VPS)

How to deploy Laravel application to Virtual Private Server (VPS)


Some things you need :

  • Laravel project
  • VPS / Virtual Private Server
  • Domain (if any)

Here's how to deploy your Laravel application to the server

  1. Put your Laravel project into source code management (github/gitlab/others)
    Here I will use my company-management reporsitory.
@Web-Dev-Codi
Web-Dev-Codi / CLAUDE.md
Created December 6, 2025 16:44 — forked from ctoth/CLAUDE.md
My Current global CLAUDE.md

Working with Q — Coding Agent Protocol

What This Is

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.
@LargatSeif
LargatSeif / README.md
Last active December 7, 2025 11:48 — forked from cugu/README.md
Webhooks for PocketBase

Webhooks for PocketBase (v0.29.0-migrated by me :) )

A simple webhook plugin for PocketBase.

Adds a new collection "webhooks" to the admin interface, to manage webhooks.

Example

The webhook record in the following example send create, update, and delete events in the tickets collection to http://localhost:8080/webhook.

@yorickdowne
yorickdowne / friday.md
Last active December 7, 2025 11:46
Debian 13 trixie upgrade

Debian 13

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.

@mwufi
mwufi / install_docker_in_colab.sh
Last active December 7, 2025 11:46
Install Docker in Google Colab!
# 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