Skip to content

Instantly share code, notes, and snippets.

View nexces's full-sized avatar

Adrian Piotrowicz nexces

  • NXStudio Web Development
  • Olsztyn, Poland
View GitHub Profile
{
"apache_error_log": {
"title" : "Common Error Log",
"description" : "The default web error log format for servers like Apache.",
"regex" : {
"apache" : {
"pattern" : "^\\[(?<timestamp>[^\\]]+)\\] \\[(?<level>\\w*:?\\w+)\\] \\[client (?<client>[^\\]]+)] (?<body>.*)"
},
"apache2" : {
"pattern" : "^\\[(?<timestamp>[^\\]]+)\\] \\[(?<level>\\w*:?\\w+)\\] \\[pid (?<pid>[^\\]]+)] \\[client (?<client>[^\\]]+)] (?<body>.*)"
@nexces
nexces / lnav_monolog.json
Last active December 7, 2022 03:17 — forked from skowron-line/monolog.json
lnav Monolog format
{
"monolog": {
"title": "Monolog log file format",
"description": "Monolog log file format",
"url": "https:\/\/github.com\/Seldaek\/monolog",
"regex": {
"default": {
"pattern": "\\A\\[(?<timestamp>[^\\[\\]]+)\\] (?<logger>[A-Za-z0-9-_]+)\\.(?<level>\\w+): (?<message>.+?) *(?<context>(\\[(?>[^\\[\\]]+|(?-1))*\\])|(\\{(?>[^\\{\\}]+|(?-1))*\\})) (?<extra>(?-4))\\z"
}
},
From 0da8b490e8579130add0cf062a29b9be72d187b2 Mon Sep 17 00:00:00 2001
From: Adrian 'Nexces' Piotrowicz <nexces+chakraos@nxstudio.pl>
Date: Fri, 29 Jan 2016 10:08:49 +0100
Subject: [PATCH] Error when launching Skrooge from krunner
---
skrooge/PKGBUILD | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/skrooge/PKGBUILD b/skrooge/PKGBUILD
From b9fe51692f84a67b2efb1873bb959bea3f483b35 Mon Sep 17 00:00:00 2001
From: Adrian 'Nexces' Piotrowicz <adrian.piotrowicz@sprint.pl>
Date: Sun, 20 Dec 2015 11:26:09 +0100
Subject: [PATCH] Fix XembedSNIProxy always crashing on login.
BUG: 355463
---
xembed-sni-proxy/sniproxy.cpp | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
@nexces
nexces / 0001-vlc-Fix-for-vlc-cache-gen-segmentation-faults.patch
Created December 20, 2015 13:12
[PATCH] vlc: Fix for vlc-cache-gen segmentation faults
From 2a4975bdba9e618bc84a6a85df874fe604cdb648 Mon Sep 17 00:00:00 2001
From: Adrian Piotrowicz <nexces+chakraos@nxstudio.pl>
Date: Sun, 20 Dec 2015 14:01:48 +0100
Subject: [PATCH] vlc: Fix for vlc-cache-gen segmentation faults
---
vlc/PKGBUILD | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc/PKGBUILD b/vlc/PKGBUILD
# CFB ENCRYPT
# 1. przygotować IV do ECB
# 2. zaszyfrować IV w trybie ECB
# 3. zabrać z wyjścia (2) z ECB [feedbackSize] bajtów z początku
# 4. StringXor [feedbackSize] bajtów wejścia z [feedbackSize] bajtami wyjścia ECB
# 5. Efekt (4) dodać do szyfrogramu
# 6. Efekt (4) wstawić na koniec IV do ECB z (1)
# 7. Usunąć [feedbackSize] bajtów z -początku- IV do ECB z (1)
@nexces
nexces / gist:4258218
Created December 11, 2012 12:29
Ciphers output
RUBY :: CFB from ECB
IN: 26 :: abcdefghijklmnopqrstuwvxyz
CFB OUT: 26 :: 8f6bd9041eb42269b0cdf515eb9667cd530bc82323337da5440d :: feedbackSize: 1
CFB OUT: 26 :: 8ff9164ff6b7b0ecf5b4058908489dd215e128dffa9c39358b47 :: feedbackSize: 2
CFB OUT: 26 :: 8ff95ef88e4f85b5086ce88b077051ea4e67c25f1af743f2564f :: feedbackSize: 3
CFB OUT: 26 :: 8ff95e8ffe01293da7fc52d7d503560bb9d0de8b4cab22de19ae :: feedbackSize: 4
CFB OUT: 26 :: 8ff95e8f271d8a585c59c2a575c2af6a0769bcddd35c1df40b37 :: feedbackSize: 5
CFB OUT: 26 :: 8ff95e8f27fd5a2fffde0be50bb6be8df280066b80bb0c3103e8 :: feedbackSize: 6
CFB OUT: 26 :: 8ff95e8f27fd38b0c97c77c0c767580258322c0be348b049bd63 :: feedbackSize: 7
CFB OUT: 26 :: 8ff95e8f27fd380f1de6358a1068633f468d99b6b73c6b09a6aa :: feedbackSize: 8
@nexces
nexces / test.rb
Created October 26, 2012 12:21
test.rb
require 'openssl'
c = OpenSSL::Cipher.new('bf')
c.encrypt
p c.key_len
c.key_len = 5
p c.key_len
c.key = '01234'