Skip to content

Instantly share code, notes, and snippets.

View eht16's full-sized avatar

Enrico Tröger eht16

View GitHub Profile
@eht16
eht16 / build.log
Created November 25, 2020 22:39
geany/geany#2666 mingw64-i686 build log
Making distclean in ctags
make[1]: Entering directory '/home/enrico/geany/ctags'
rm -rf .libs _libs
rm -rf fnmatch/.libs fnmatch/_libs
rm -rf gnu_regex/.libs gnu_regex/_libs
rm -rf main/.libs main/_libs
rm -rf parsers/.libs parsers/_libs
test -z "libctags.la libgnu_regex.la libfnmatch.la" || rm -f libctags.la libgnu_regex.la libfnmatch.la
rm -f ./so_locations
rm -f *.o
@eht16
eht16 / gpdeps.md
Last active November 1, 2020 23:13

Geany-Plugin Dependency Matrix

Common Dependencies

The Geany-Plugins package and so all of the included plugins have some common dependencies:

  • Geany
  • GTK (same major version required as for Geany)
  • check (for "make check" to run unit tests)
  • cppcheck (for "make check" to run static code analysis)
@eht16
eht16 / Properties.txt
Created May 26, 2020 11:08
RFC: Documenting Scintilla lexer properties
# lexer:property_name:property_type:description
asm:fold:boolean:Enable or disable folding
asm:fold.asm.comment.explicit:boolean:This option enables folding explicit fold points when using the Asm lexer. Explicit fold points allows adding extra folding by placing a ;{ comment at the start and a ;} at the end of a section that should fold.
asm:fold.asm.comment.multiline:boolean:Set this property to 1 to enable folding multi-line comments.
asm:fold.asm.explicit.anywhere:boolean:Set this property to 1 to enable explicit fold points anywhere, not just in line comments.
asm:fold.asm.explicit.end:string:The string to use for explicit fold end points, replacing the standard ;}.
asm:fold.asm.explicit.start:string:The string to use for explicit fold start points, replacing the standard ;{.
asm:fold.asm.syntax.based:boolean:Set this property to 0 to disable syntax based folding.
asm:fold.compact:boolean:This option on leads to blank lines following the end of an element folding with that element. Defaults to on.
asm:le

Spell Check Plugin

About

This plugin checks the content of the current document in Geany with the spell check library Enchant. You can also select a certain text passage, then the

@eht16
eht16 / issue36.py
Created April 7, 2019 09:15
Logstash TCP vs UDP newline vs no newline
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import socket
PORT = 3333
def send(proto, use_trailing_newline):
@eht16
eht16 / auth.yaml
Created September 24, 2018 22:58
Tavern !anything with include
---
name: Authentication stage
description: Reusable test stage for authentication
stages:
- id: api-login
name: successful login
request:
url: "http://127.0.0.1:5000/login"
json:
@eht16
eht16 / geany_camel_case.py
Created August 25, 2018 15:10
CamelCase <-> lower_case_underscore conversion fpr Geany
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def camel_case_to_lower_case_underscore(string):
"""
Split string by upper case letters.
diff --git a/elastalert/create_index.py b/elastalert/create_index.py
index ae85940..5d8ea02 100644
--- a/elastalert/create_index.py
+++ b/elastalert/create_index.py
@@ -63,6 +63,7 @@ def main():
data = yaml.load(config_file)
host = args.host if args.host else data.get('es_host')
port = args.port if args.port else data.get('es_port')
+ index_settings = data.get('index_settings')
username = args.username if args.username else data.get('es_username')
@eht16
eht16 / config.yaml
Created August 16, 2017 22:34
Example logging configuration for ElastAlert & Python-Logstash-Async
logging:
version: 1
incremental: false
disable_existing_loggers: true
formatters:
logline:
format: '%(asctime)s %(levelname)+8s %(name)+20s %(message)s'
logstash_formatter:
@eht16
eht16 / gist:1305bf7cdb2d3504e62694e4e1141c40
Created July 3, 2016 21:34
Iconv supported codepages in MSYS2
$ iconv.exe -l | /bin/grep CP
ANSI_X3.4-1968 ANSI_X3.4-1986 ASCII CP367 IBM367 ISO-IR-6 ISO646-US ISO_646.IRV:1991 US US-ASCII CSASCII
CP819 IBM819 ISO-8859-1 ISO-IR-100 ISO8859-1 ISO_8859-1 ISO_8859-1:1987 L1 LATIN1 CSISOLATIN1
CP1250 MS-EE WINDOWS-1250
CP1251 MS-CYRL WINDOWS-1251
CP1252 MS-ANSI WINDOWS-1252
CP1253 MS-GREEK WINDOWS-1253
CP1254 MS-TURK WINDOWS-1254
CP1255 MS-HEBR WINDOWS-1255
CP1256 MS-ARAB WINDOWS-1256