Skip to content

Instantly share code, notes, and snippets.

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

Christoph M. Becker cmb69

🏠
Working from home
View GitHub Profile
<?xml version="1.0"?>
<x:books xmlns:x="urn:books">
<book id="1">
<author>Writer</author>
<title>The First Book</title>
<genre>Fiction</genre>
<price>44.95</price>
<pub_date>2000-10-01</pub_date>
<review>An amazing story of nothing.</review>
</book>
{
// General options
theme : "advanced",
element_format : "%ELEMENT_FORMAT%",
language : "%LANGUAGE%",
plugins : "calleditor,advimage,advlink,autosave,contextmenu,emotions,fullscreen,insertdatetime,lists,media,paste,save,searchreplace,table,wordcount",
/*
style_formats : [
{title : "Normal", block : "p", classes : true , remove : "all", exact : false},
@cmb69
cmb69 / xhshop1.nfo
Last active September 17, 2017 10:45
xhshop1.nfo
XH-Shop,1.0,1.0,,,https://github.com/cmsimple-xh/xhshop/releases/tag/1.0,https://gist.githubusercontent.com/cmb69/d6f681e90d62ad17b37a1b71631dc85f/raw/xhshop1.nfo
@cmb69
cmb69 / hack.diff
Created October 9, 2017 12:50
Always use default lang in back-end
cmsimple/cms.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cmsimple/cms.php b/cmsimple/cms.php
index fbfe9437..f71e341c 100644
--- a/cmsimple/cms.php
+++ b/cmsimple/cms.php
@@ -338,6 +338,7 @@ if (preg_match('/\/([A-z]{2})\/index.php$/', sv('SCRIPT_NAME'), $temp)
$pth['folder']['content'] = $pth['folder']['base'] . $cf['folders']['content'];
}
@cmb69
cmb69 / .diff
Created October 12, 2017 16:22
enchant-2
ext/enchant/enchant.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c
index 77f6840161..b00697a858 100644
--- a/ext/enchant/enchant.c
+++ b/ext/enchant/enchant.c
@@ -737,7 +737,7 @@ PHP_FUNCTION(enchant_dict_quick_check)
for (i = 0; i < n_sugg; i++) {
add_next_index_string(sugg, suggs[i]);
@cmb69
cmb69 / XH-1.7.0.diff
Last active January 17, 2018 17:27
Startseite – kein DC
cmsimple/classes/Search.php | 6 +++++-
cmsimple/functions.php | 6 ++++--
cmsimple/tplfuncs.php | 13 +++++++++++--
3 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/cmsimple/classes/Search.php b/cmsimple/classes/Search.php
index 1b5b458..6785cf4 100644
--- a/cmsimple/classes/Search.php
+++ b/cmsimple/classes/Search.php
@@ -214,7 +214,11 @@ class Search
@cmb69
cmb69 / dashed_line.c
Created April 16, 2018 12:13
gdImageSetStyle() and gdImageLine() instead of gdImageDashedLine()
#include <string.h>
#include <gd.h>
/* does not try to create a symmetric pattern */
void dashed_line(gdImagePtr im, int x1, int y1, int x2, int y2, int color)
{
int wid = im->thick; /* this may have to be adjusted */
int *oldStyle, oldStyleLength = im->styleLength, oldStylePos = im->stylePos;
int *newStyle, newStyleLength = wid * gdDashSize * 2;
php-7.3.0alpha2.tar.bz2
SHA256 hash: 92229e690593b537b2d775901a7db17ddfb568e9537e81c72b481d982bc6db26
PGP signature:
-----BEGIN PGP SIGNATURE-----
iQJABAABCAAqFiEEy69p8XOg/qS1N/Rw1myVkxGLzLYFAlsrZ4AMHGNtYkBwaHAu
bmV0AAoJENZslZMRi8y2Ak8QAIshF2NJua/3F9uL9ullf5U9WqqAC6v8MA0C2im+
fgGqAWi1dDfkFwse2GDRmU2HATzGEiB/wCC/4F7gtI37Yz6SEDd3ymVVmuEUCdEI
0cbpdVW/lVted/AFZSBjW4NmauCW9H3BJHseUIE1pmlMUTXc+y4yx107Pg1CB48D
h5oVgY7Jl9O9bJiNeNNKKo84xXNYL0b9sGaNZqEpiU5sOuNVDDo6zperZQyJ6O6g
@cmb69
cmb69 / 0001-Update-for-PHP-7.3.patch
Created July 4, 2018 12:26
Preliminary fix uopz for PHP 7.3
From f0ffe9876d90982a4fefed21fec4b3be2022087d Mon Sep 17 00:00:00 2001
From: "Christoph M. Becker" <cmbecker69@gmx.de>
Date: Wed, 4 Jul 2018 14:24:40 +0200
Subject: [PATCH] Update for PHP 7.3
---
src/function.c | 2 +-
src/handlers.c | 44 ++++++++++++++++++++++----------------------
2 files changed, 23 insertions(+), 23 deletions(-)
php-7.3.0alpha3.tar.bz2
SHA256 hash: e5aa2ae8113a01ffaea5a97894e6eb066f15f99450a719ce64fbf6fd24ee1515
PGP signature:
-----BEGIN PGP SIGNATURE-----
iQJABAABCAAqFiEEy69p8XOg/qS1N/Rw1myVkxGLzLYFAls7cwMMHGNtYkBwaHAu
bmV0AAoJENZslZMRi8y2QBQP/3RJqkUaR0IugwZZHZ5Wa5eACqYLoir27gxW/CzE
W5509ctLrk/QqHBL3XNyPLtRgglQhKUOD1oEVz9JkYlQ5HnGsWIItgfBtmD9g39v
tw4DmWr71Cg14sKDswymA9feYOyBZlWMR0dRqHGef0j7GdsqgLCoManiPFn1leb5
fgWMgon8SmdEPptd+LRHCn875k2CHodgU61gfJAC5v0UqsAdC1t6ygM76+mmkeDK