Skip to content

Instantly share code, notes, and snippets.

View mingodad's full-sized avatar

Domingo Alvarez Duarte mingodad

View GitHub Profile
@mingodad
mingodad / tl.tljs
Created March 22, 2022 09:18
Teal Language first attempt to Tealjs language
var VERSION = "0.13.2+dev";
var record tl {
enum LoadMode {
"b",
"t",
"bt",
};
type LoadFunction = function(...:any): any...;
@mingodad
mingodad / postgresql-13.3-src-backend-parser-gram.y
Created July 4, 2021 12:16
PostgreSQL-13.3 parser.y with positional references by named references
%{
/*#define YYDEBUG 1*/
/*-------------------------------------------------------------------------
*
* gram.y
* POSTGRESQL BISON rules/actions
*
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
@mingodad
mingodad / bkp2git.sh
Created February 2, 2019 10:53
Create a git repository from a set of backup files
#!/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 December 27, 2018 09:54
Add compiler warning/error for duplicate variable declaration in LuaJIT 2.0.5
--- 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 December 27, 2018 09:53
Add compiler warning/error for duplicate variable declaration in LuaJIT 2.1
--- 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 December 27, 2018 09:52
Add compiler warning/error for duplicate variable declaration in Lua 5.4.0-work2
--- 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 December 27, 2018 09:50
Add compiler warning/error for duplicate variable declaration in Lua 5.3.5
--- 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 December 27, 2018 09:49
Add compiler warning/error for duplicate variable declaration in Lua 5.2.4
--- 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 December 27, 2018 09:48
Add compiler warning/error for duplicate variable declaration in Lua 5.1.5
--- 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 September 24, 2018 13:49
Implementation of "compressed" and "min_word_size" option for columns in fts5 for sqlite3
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 */