Skip to content

Instantly share code, notes, and snippets.

Domingo Alvarez Duarte mingodad

Block or report user

Report or block mingodad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mingodad
mingodad / bkp2git.sh
Created Feb 2, 2019
Create a git repository from a set of backup files
View bkp2git.sh
#!/bin/bash
#expect an ordered list of backup files in bkpList.txt
#for an example dowload indent backup files with "wget -nc -i bkpListSrc.txt"
bkp_ext=".tar.gz"
git_folder=src
if [[ ! -e $git_folder ]]
then
@mingodad
mingodad / compiler-warning-luajit-2.0.5.patch
Created Dec 27, 2018
Add compiler warning/error for duplicate variable declaration in LuaJIT 2.0.5
View compiler-warning-luajit-2.0.5.patch
--- lj_parse.c
+++ lj_parse.c
@@ -25,6 +25,8 @@
#include "lj_parse.h"
#include "lj_vm.h"
#include "lj_vmevent.h"
+
+#include <stdio.h>
/* -- Parser structures and definitions ----------------------------------- */
@mingodad
mingodad / compiler-warning-luajit-2.1.patch
Created Dec 27, 2018
Add compiler warning/error for duplicate variable declaration in LuaJIT 2.1
View compiler-warning-luajit-2.1.patch
--- lj_parse.c
+++ lj_parse.c
@@ -27,6 +27,8 @@
#include "lj_parse.h"
#include "lj_vm.h"
#include "lj_vmevent.h"
+
+#include <stdio.h>
/* -- Parser structures and definitions ----------------------------------- */
@mingodad
mingodad / compiler-warning-lua-5.4.0-work2.patch
Created Dec 27, 2018
Add compiler warning/error for duplicate variable declaration in Lua 5.4.0-work2
View compiler-warning-lua-5.4.0-work2.patch
--- lparser.c
+++ lparser.c
@@ -11,6 +11,7 @@
#include <string.h>
+#include <stdio.h>
#include "lua.h"
@mingodad
mingodad / compiler-warning-lua-5.3.5.patch
Created Dec 27, 2018
Add compiler warning/error for duplicate variable declaration in Lua 5.3.5
View compiler-warning-lua-5.3.5.patch
--- lparser.c
+++ lparser.c
@@ -11,6 +11,7 @@
#include <string.h>
+#include <stdio.h>
#include "lua.h"
@mingodad
mingodad / compiler-warning-lua-5.2.4.patch
Created Dec 27, 2018
Add compiler warning/error for duplicate variable declaration in Lua 5.2.4
View compiler-warning-lua-5.2.4.patch
--- lparser.c
+++ lparser.c
@@ -6,6 +6,7 @@
#include <string.h>
+#include <stdio.h>
#define lparser_c
#define LUA_CORE
@mingodad
mingodad / compiler-warning-lua-5.1.5.patch
Created Dec 27, 2018
Add compiler warning/error for duplicate variable declaration in Lua 5.1.5
View compiler-warning-lua-5.1.5.patch
--- lparser.c 2018-11-30 11:47:05.053864317 +0100
+++ lparser.c 2018-12-27 09:28:55.536952662 +0100
@@ -6,6 +6,7 @@
#include <string.h>
+#include <stdio.h>
#define lparser_c
#define LUA_CORE
@mingodad
mingodad / fts5-compress-column.diff
Created Sep 24, 2018
Implementation of "compressed" and "min_word_size" option for columns in fts5 for sqlite3
View fts5-compress-column.diff
Index: ext/fts5/fts5Int.h
==================================================================
--- ext/fts5/fts5Int.h
+++ ext/fts5/fts5Int.h
@@ -160,10 +160,11 @@
char *zDb; /* Database holding FTS index (e.g. "main") */
char *zName; /* Name of FTS index */
int nCol; /* Number of columns */
char **azCol; /* Column names */
u8 *abUnindexed; /* True for unindexed columns */
@mingodad
mingodad / fts3-compress-column.diff
Created Sep 24, 2018
Here is the diffs to an implementation of "notcompressed" option for columns in fts3/4 in sqlite3
View fts3-compress-column.diff
Index: ext/fts3/fts3.c
==================================================================
--- ext/fts3/fts3.c
+++ ext/fts3/fts3.c
@@ -851,11 +851,12 @@
}else{
zFree = zFunction = fts3QuoteId(zFunc);
}
fts3Appendf(pRc, &zRet, "docid");
for(i=0; i<p->nColumn; i++){
View simple-string-template.nut
//{!first_name}
function fillTemplate(tpl, data)
{
local missing_keys = [];
local result = tpl.gsub(
"{!%s*(%S[^%s}]+)%s*}",
function(key)
{
if(key in data)
You can’t perform that action at this time.