Skip to content

Instantly share code, notes, and snippets.

View sfrek's full-sized avatar

Fernando Israel García Martínez sfrek

View GitHub Profile
openapi: 3.0.1
info:
title: Loycus 2.0 Consumer API
contact:
name: Loycus
url: 'https://loycus.com/'
email: it@loycus.com
version: 1.0.0
servers:
- url: 'https://capi.loycus.com/'
openapi: 3.0.1
info:
title: Loycus 2.0 Consumer API
contact:
name: Loycus
url: 'https://loycus.com/'
email: it@loycus.com
version: 1.0.0
servers:
- url: 'https://capi.loycus.com/'
openapi: 3.0.1
info:
title: Swagger for aggregation
version: 1.0.0
description: Presentación del la aggregación a las apps
servers:
- url: 'https://judasapi.develop.loycus.org'
variables: {}
description: Develop environment for judas microservice
- url: 'https://judasapi.release.loycus.org'
@sfrek
sfrek / elasticsearch_status.js
Created November 17, 2012 18:44
totems elasticsearch status
{
"ok": true,
"_shards": {
"total": 10,
"successful": 5,
"failed": 0
},
"indices": {
"graylog2": {
"index": {
@sfrek
sfrek / frk.erlang-fortify.patch
Created August 27, 2012 11:29
erlang-fortify
--- a/erts/emulator/drivers/common/efile_drv.c
+++ b/erts/emulator/drivers/common/efile_drv.c
@@ -174,7 +174,7 @@ static ErlDrvSysInfo sys_info;
#else
# define FILENAME_BYTELEN(Str) strlen(Str)
-# define FILENAME_COPY(To,From) strcpy(To,From)
+# define FILENAME_COPY(To,From) memcpy(To,From,strlen(From)+1)
# define FILENAME_CHARSIZE 1
#endif
@sfrek
sfrek / ruby-1.8.7-nossl2.diff
Created June 7, 2012 09:43 — forked from 13k/ruby-1.8.7-nossl2.diff
Patches Ruby to skip SSLv2 usage if not available (OpenSSL 1.0 ships with SSLv2 disabled)
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 6554eba..55b01be 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -44,7 +44,7 @@ if $mingw
have_library("gdi32")
end
result = have_header("openssl/ssl.h")
-result &&= %w[crypto libeay32].any? {|lib| have_library(lib, "OpenSSL_add_all_digests")}
+result &&= %w[crypto libeay32].any? {|lib| have_library(lib, "OpenSSL_add_all_digests", ["openssl/evp.h"])}