Skip to content

Instantly share code, notes, and snippets.

View eht16's full-sized avatar

Enrico Tröger eht16

View GitHub Profile
#!/bin/sh
#
# Fetch and extract Geany dependencies for Windows/MSYS2
# This script will download (or use Pacman's cache) to extract
# dependencies as defined below needed to run Geany.
# To be run within a MSYS2 shell. The extracted files will be
# placed into the current directory.
ABI=i686
use_cache="no"
diff --git a/geniuspaste/src/geniuspaste.c b/geniuspaste/src/geniuspaste.c
index 2988502..0990f80 100644
--- a/geniuspaste/src/geniuspaste.c
+++ b/geniuspaste/src/geniuspaste.c
@@ -236,21 +236,40 @@ static void load_pastebins_in_dir(const gchar *path)
}
}
+static gchar *get_plugin_data_directory(void)
+{
@eht16
eht16 / geany_pr1087_readme.patch
Created June 27, 2016 13:53
geany_pr1087_readme
diff --git a/README b/README
index eb5394d..7d140e4 100644
--- a/README
+++ b/README
@@ -28,8 +28,27 @@ The basic features of Geany are:
- extensibility through plugins
+Installation from distribution packages
+---------------------------------------
@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
@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:
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 / 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.
@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 / 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):

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