This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#After find the bases of this script here http://bneijt.nl/blog/post/running-nginx-for-local-development/ | |
#I did some changes to make it more generic: | |
#--mynginx | |
#!/bin/bash | |
set -x | |
RELD="`dirname "$0"`" | |
ABSD=$PWD | |
NGINX_HOME=$HOME/local/nginx-last |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -urB sqlite-src-3081101/src/loadext.c sqlite-src-3081101-2/src/loadext.c | |
--- sqlite-src-3081101/src/loadext.c 2015-07-29 21:06:55.000000000 +0100 | |
+++ sqlite-src-3081101-2/src/loadext.c 2015-08-14 11:07:01.779944573 +0100 | |
@@ -94,6 +94,7 @@ | |
#ifdef SQLITE_OMIT_TRACE | |
# define sqlite3_profile 0 | |
# define sqlite3_trace 0 | |
+# define sqlite3_trace_v2 0 | |
#endif | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- shell.c | |
+++ shell.c | |
@@ -550,10 +550,12 @@ | |
sqlite3_stmt *pStmt; /* Current statement if any. */ | |
FILE *pLog; /* Write log output here */ | |
int *aiIndent; /* Array of indents used in MODE_Explain */ | |
int nIndent; /* Size of array aiIndent[] */ | |
int iIndent; /* Index of current op in aiIndent[] */ | |
+ int dumpDataOnly; /*when dump a database exclude schema */ | |
+ int doStartTransaction; /* when dumping schema only before first record output "BEGIN;" */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* To build it with gcc | |
gcc -std=c99 -O2 -g -o sqlite-wal-test \ | |
-DSQLITE_OMIT_LOAD_EXTENSION=1 \ | |
-DSQLITE_USE_URI=1 \ | |
main.c sqlite3.c -lpthread | |
*/ | |
/* To run it with shell script | |
#!/bin/sh | |
data_size=256 | |
num_threads=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Raspberry PI 3 connected through ethernet, httpress/ab/h2load/wrk runing on another computer. | |
-----h2o config (relevant part) | |
listen: | |
port: 8081 | |
ssl: | |
certificate-file: examples/h2o/server.crt | |
key-file: examples/h2o/server.key | |
listen: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
#!/bin/sh | |
CLANGSRC=$LLVM_HOME/llvm-3.8.0.src | |
clang++ -fno-rtti -std=c++1y main.cpp \ | |
-I$CLANGSRC/tools/clang/lib \ | |
-lclangCodeGen \ | |
-lclangFrontendTool \ | |
-lclangFrontend \ | |
-lclangParse \ | |
-lclangSema \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pick up an identifier. | |
Token | |
Lex::gather_identifier() | |
{ | |
... | |
if (has_non_ascii_char) | |
return Token::make_identifier_token(buf, is_exported, location); | |
else | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/delete.c | |
================================================================== | |
--- src/delete.c | |
+++ src/delete.c | |
@@ -206,10 +206,11 @@ | |
** pTabList pWhere | |
*/ | |
void sqlite3DeleteFrom( | |
Parse *pParse, /* The parser context */ | |
SrcList *pTabList, /* The table from which we should delete things */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/rai/rai_node/entry.cpp b/rai/rai_node/entry.cpp | |
index f480a68..62d8900 100644 | |
--- a/rai/rai_node/entry.cpp | |
+++ b/rai/rai_node/entry.cpp | |
@@ -121,6 +121,14 @@ int main (int argc, char * const * argv) | |
("debug_bootstrap_generate", "Generate bootstrap sequence of blocks") | |
("debug_dump_representatives", "List representatives and weights") | |
("debug_frontier_count", "Display the number of accounts") | |
+ ("debug_accounts_list", "Display the accounts list") | |
+ ("debug_block_info_list", "Display the block_info list") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//{!first_name} | |
function fillTemplate(tpl, data) | |
{ | |
local missing_keys = []; | |
local result = tpl.gsub( | |
"{!%s*(%S[^%s}]+)%s*}", | |
function(key) | |
{ | |
if(key in data) |
OlderNewer