Skip to content

Instantly share code, notes, and snippets.

@cukabeka
cukabeka / clean_wpimport_for_pelican.py
Created September 1, 2022 23:22 — forked from kevingoldsmith/clean_wpimport_for_pelican.py
Clean up the markdown code created from pelican-import from wordpress including downloading and re-adding all the images
import argparse
import xml.etree.ElementTree as ET
from bs4 import BeautifulSoup
import urllib.request
from urllib.parse import urlparse
import os
import re
def get_downloads_from_img(img):
return_list = []
@cukabeka
cukabeka / class.xform.action_saveinsession.inc.php
Last active July 30, 2020 14:02 — forked from anonymous/class.xform.action_saveinsession.inc.php
REDAXO XForm mit Sessions nutzen + Beispiel
<?php
/*
Danke an Blumbeet für diese Action!
$objparams["actions"][] = "db"; // z.b. email, datenbank, als datei speichern etc.
$objparams["action_params"][] = array(
"table" => "REX_VALUE[8]",
"where" => "REX_VALUE[8]",
@cukabeka
cukabeka / copycats.php
Last active August 29, 2015 14:08 — forked from dajoho/copycats.php
<?php
error_reporting(0);
include 'redaxo/include/master.inc.php';
error_reporting(E_ALL ^E_NOTICE);
ini_set('display_errors', 1);
$CLONE_THIS_ID = 184;
$DUPLICATE_MODULES = true;
<?php
/**
*=============================================
* REDAXO-Modul: do form!
* Bereich: Eingabe
* Version: 4.5 ajax
* Redaxo Version: 4.3
* Module-id: 364
* Thomas Skerbis / www.klxm.de
* Hinweise: