Skip to content

Instantly share code, notes, and snippets.

View kaworu's full-sized avatar

Alexandre Perrin kaworu

View GitHub Profile
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/iodine/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile 19 Jun 2014 22:45:56 -0000 1.14
+++ Makefile 20 Oct 2015 10:17:13 -0000
@@ -4,6 +4,7 @@ COMMENT= tunnel IPv4 data through DNS
DISTNAME= iodine-0.7.0
@kaworu
kaworu / newsyslog.c.patch
Last active October 15, 2015 13:48
newsyslog.conf: Allow SIGUSR1 instead of 30
--- /usr/src/usr.sbin/newsyslog/newsyslog.c.orig 2015-10-15 12:19:00.592923000 +0200
+++ /usr/src/usr.sbin/newsyslog/newsyslog.c 2015-10-15 15:47:30.565310000 +0200
@@ -278,6 +278,7 @@
static int log_trim(const char *logname, const struct conf_entry *log_ent);
static int age_old_log(const char *file);
static void savelog(char *from, char *to);
+static int signame_to_signum(const char *);
static void createdir(const struct conf_entry *ent, char *dirpart);
static void createlog(const struct conf_entry *ent);
@kaworu
kaworu / gist:7aba109b6e77ebf97830
Created October 14, 2015 20:17
rspamd-1.0.5_1 startup logs
2015-10-14 22:13:52 #93971(main) rspamd_regexp_library_init: pcre is compiled with JIT for x86 64bit (little endian + unaligned)
2015-10-14 22:13:52 #93971(main) <ykjbdn>; map; rspamd_map_add: added map /var/db/rspamd/rspamd_dynamic
2015-10-14 22:13:52 #93971(main) rspamd_url_init: initialized ac_trie of 7439 elements
2015-10-14 22:13:53 #93971(main) <3r3osq>; map; rspamd_map_add: added map /usr/local/etc/rspamd/2tld.inc
2015-10-14 22:13:53 #93971(main) <a87nhk>; map; rspamd_map_add: added map /usr/local/etc/rspamd/surbl-whitelist.inc
2015-10-14 22:13:53 #93971(main) <qixjwz>; map; rspamd_map_add: added map /usr/local/etc/rspamd/dmarc_whitelist.inc
2015-10-14 22:13:53 #93971(main) <wtm7ub>; map; rspamd_map_add: added map /usr/local/etc/rspamd/spf_dkim_whitelist.inc
2015-10-14 22:13:53 #93971(main) <z9ijff>; cfg; rspamd_map_add: map '/usr/local/etc/rspamd/dkim_whitelist.inc' is not found, but it can be loaded automatically later
2015-10-14 22:13:53 #93971(main) <zmcy1j>; map; rspamd_map_add: added map /usr/loc
# $FreeBSD: releng/10.2/etc/sysctl.conf 112200 2003-03-13 18:43:50Z mux $
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
<?php
$to = $_GET['to'];
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if (!file_exists('/bin/femail')) {
echo "WHERE IS FEMAIL!!";
@kaworu
kaworu / gist:dc9763ab92d9e198c4d7
Created July 16, 2015 10:12
% gfortran -c hello.f90
hello.f90:3.12:
complex(4), volatile :: z4
1
Error: Syntax error in data declaration at (1)
hello.f90:4.12:
complex(4), volatile :: shazam
1
Error: Syntax error in data declaration at (1)
diff --git a/source/_layouts/page.html b/source/_layouts/page.html
index 294eada..73eabc1 100644
--- a/source/_layouts/page.html
+++ b/source/_layouts/page.html
@@ -3,6 +3,16 @@ layout: default
---
<div class="row">
+ {% unless page.sidebar == false or site.page_asides == empty and site.default_asides == empty %}
+ <aside class="sidebar col-md-3">
cc -c -DPERL_CORE -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -fstack-protector -std=c89 -O2 -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings -DPIC -fPIC pp_pack.c
cc -c -DPERL_CORE -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -fstack-protector -std=c89 -O2 -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings -DPIC -fPIC pp_sort.c
cc -c -DPERL_CORE -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -fstack-protector -std=c89 -O2 -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings -DPIC -fPIC caretx.c
LD_LIBRARY_PATH=/usr/src/gnu/usr.bin/perl/obj ./miniperl -Ilib -f write_buildcustomize.pl
LD_LIBRARY_PATH=/usr/src/gnu/usr.bin/perl/obj ./miniperl -Ilib configpm
written lib/Config.pod
Makefile out-of-date with respect to ..
May 28 14:43:55 smaug postfix/smtpd[27414]: connect from balin.enospoon.net[2a01:4f8:120:5388:0:b:248:1]
May 28 14:43:55 smaug postfix/smtpd[27414]: A4ED0109BE0B: client=balin.enospoon.net[2a01:4f8:120:5388:0:b:248:1]
May 28 14:43:55 smaug postfix/cleanup[27425]: A4ED0109BE0B: message-id=<[email protected]>
May 28 14:43:55 smaug rmilter[1068]: mlfi_eom: A4ED0109BE0B: tempfile=/tmp/msg.FmiHDJmO, size=662
May 28 14:43:56 smaug rmilter[1068]: spamdscan: scan qid: <A4ED0109BE0B>, mid: <[email protected]>, 0.400434, localhost, metric: default: [1.000000 / 15.000000], symbols: HFILTER_HELO_IP_A(1.00)
[...]
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4Fn1GeE7EgsJCDtjy1tMw2en/q/20b/GzZnyEABYadqphj1pByIZ1wfn4b2VARuW4nDVvGReoRNFfKtyxRATk8RTkE+Pq2IeYKfE9vdiHnMjIJMjVXGeqeB5bsRCwLsMWjY4cA4MmyIIjkLOgRcTldvFlWr6jhVsSmA9tc7hGT0TyYCpEJQv+Gnqksgkt1QFc5nVIenusMlhYMk3zM+EnQ3zglg6f0kzJbh7Y/m6rcaGyO3c7rs4ZVQw4E+I2zN7VVL0bJQbthKiAlonDscbt3du+NtYvZTykvcNn4nZff2Gya+6diYK5h+LZQ4X+yL/c6BycyXTuv6kRNlu2jjhL [email protected]