Skip to content

Instantly share code, notes, and snippets.

View bmsimo's full-sized avatar
🏠
Working from home

Mohamed Bermaki bmsimo

🏠
Working from home
View GitHub Profile
From 103a10426c3efc7c275a93ee2a4102665ec61efd Mon Sep 17 00:00:00 2001
From: Mohamed Bermaki <simobermaki@gmail.com>
Date: Wed, 26 Nov 2025 12:39:48 +0100
Subject: [PATCH] Feature: AI Rewriter
---
app/browser/preload.js | 5 +-
app/browser/tools/aiRewriter.js | 261 ++++++++++++++++++++++++++++++++
app/index.js | 94 +++++++++++-
app/security/ipcValidator.js | 3 +-
@bmsimo
bmsimo / migrate_paginas.yml
Created January 17, 2023 16:51
Migrate Pages in Drupal
id: migrate_paginas
label: Archivo de Migracion del tipo de contenido Paginas
migration_tags:
- content_types
source:
plugin: url
data_fetcher_plugin: file
data_parser_plugin: json
urls:
@bmsimo
bmsimo / migrate_users.yml
Created January 17, 2023 16:27
Drupal User Migration YAML File
id: migrate_users
label: 'Users'
source:
plugin: users
key: migrate
process:
uid: uid
name: name
mail: mail
pass: pass
@bmsimo
bmsimo / gist:3a48f7cb266915060d3f05ef6a10d04b
Last active January 17, 2023 16:25
Drupal Users Migration
<?php
namespace Drupal\MODULE_NAME\Plugin\migrate\source;
use Drupal\migrate\Annotation\MigrateSource;
use Drupal\migrate\Plugin\migrate\source\SqlBase;
use Drupal\migrate\Row;
/**
* Minimalistic example for a SqlBase source plugin.