Skip to content

Instantly share code, notes, and snippets.

View kaworu's full-sized avatar

Alexandre Perrin kaworu

View GitHub Profile
@kaworu
kaworu / gist:dc30ead97d3b44b5cabb67b134362820
Created April 26, 2016 08:14
/usr/bin/openssl ocsp -issuer bla.sub+ca -cert bla.crt -url http://ocsp.startssl.com/sub/class2/server/ca -header Host ocsp.startssl.com -respout /tmp/ocsp.rv8rDSvf6f
# gdb /usr/bin/openssl openssl.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd5.9"...(no debugging symbols found)
Core was generated by `openssl'.
Crashlog created at 2016-04-21 13:21:23 +0200
===== MESSAGE:
Nanoc::Int::Errors::DuplicateIdentifier: There are multiple layouts with the /_blog_archives.html.erb identifier.
===== COMPILATION STACK:
(empty)
# from https://community.letsencrypt.org/t/using-the-webroot-domain-verification-method/1445/7
location /.well-known/acme-challenge {
alias /usr/local/etc/letsencrypt/webrootauth/.well-known/acme-challenge;
location ~ /.well-known/acme-challenge/(.*) {
add_header Content-Type application/jose+json;
}
}
@kaworu
kaworu / -
Last active January 14, 2016 14:21
Index: audio/tagutil/Makefile
===================================================================
--- audio/tagutil/Makefile (revision 406101)
+++ audio/tagutil/Makefile (working copy)
@@ -1,9 +1,9 @@
# $FreeBSD$
PORTNAME= tagutil
-PORTVERSION= 3.0.1
+PORTVERSION= 3.0.3
diff --git a/no2/sql_query.class.php b/no2/sql_query.class.php
index b2f2442..213f40e 100644
--- a/no2/sql_query.class.php
+++ b/no2/sql_query.class.php
@@ -68,7 +68,7 @@ class No2_SQLQuery
public static function setup($str, $profile = self::DEFAULT_PROFILE)
{
$matches = [];
- if (preg_match('#^mysql://(\w+):(\w+)@(\w+)/(\w+)$#', $str, $matches)) {
+ if (preg_match('#^mysql://(\w+):([^@]+)@([^/]+)/(\w+)$#', $str, $matches)) {
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8jbDq2lZEAUX4MhwsYSNjl5n9WpMxExziPeCVSt7/U1hz1OY7jpnrKMiXXCPPN9s1OXS7i/biVcxcR59NwUKcu3aitDrjd9Q58Ryil9Z4eKc9530kbfBlxHGvwc3tyhn5NrUVGRhT7c0PHl0hmjDi/mw70FDLA4FCJwelpYUh9Gbl6BnchwrzFH/63oCTDVfbSeZEhgzMAoLZjrcGG4bmZxmVJqSKO/Eel24OWf21QIpAPtYbh+IB238Fs8rTCGRY39IXDqxTjiXF87J+YM1M8NlA/LuCy53qYiBE6FwdM1QnuGxdTL/NuHk5yF2GbS1DtfcSGL7IY8pX6PRB9paF [email protected]
@kaworu
kaworu / -
Created December 16, 2015 09:51
Index: mail/rspamd/Makefile
===================================================================
--- mail/rspamd/Makefile (revision 403846)
+++ mail/rspamd/Makefile (working copy)
@@ -13,12 +13,12 @@
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
libgmime-2.4.so:${PORTSDIR}/mail/gmime24 \
libevent.so:${PORTSDIR}/devel/libevent2 \
- libluajit-5.1.so:${PORTSDIR}/lang/luajit \
- libhiredis.so:${PORTSDIR}/databases/hiredis
@kaworu
kaworu / -
Created November 26, 2015 12:05
diff --git a/src/main.c b/src/main.c
index e42f3eb..7a2e524 100644
--- a/src/main.c
+++ b/src/main.c
@@ -281,8 +281,9 @@ main(int argc, char *argv[])
exit(EX_UNAVAILABLE);
}
- if (pthread_create (&reload_thr, NULL, reload_thread, NULL)) {
- msg_warn ("main: cannot start reload thread, ignoring error");
92128 ktrace RET ktrace 0
92128 ktrace CALL execve(0x7fffffffeb67,0x7fffffffe8e0,0x7fffffffe900)
92128 ktrace NAMI "/usr/local/sbin/rmilter"
92128 ktrace NAMI "/libexec/ld-elf.so.1"
92128 rmilter RET execve 0
92128 rmilter CALL mmap(0,0x8000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
92128 rmilter RET mmap 34366300160/0x800642000
92128 rmilter CALL issetugid
92128 rmilter RET issetugid 0
92128 rmilter CALL __sysctl(0x7fffffffdde0,0x2,0x800843048,0x7fffffffddd8,0,0)
@kaworu
kaworu / -
Created November 26, 2015 08:53
Index: mail/rmilter/Makefile
===================================================================
--- mail/rmilter/Makefile (revision 402351)
+++ mail/rmilter/Makefile (working copy)
@@ -13,6 +13,10 @@
libspf2.so:${PORTSDIR}/mail/libspf2 \
libopendkim.so:${PORTSDIR}/mail/opendkim
+# XXX: milter-manager installs libmilter.pc which confuse pkg-config,
+# see https://github.com/vstakhov/rmilter/issues/55