Skip to content

Instantly share code, notes, and snippets.

View vstakhov's full-sized avatar

Vsevolod Stakhov vstakhov

  • Cambridge, UK
  • 19:20 (UTC +01:00)
View GitHub Profile
@vstakhov
vstakhov / repo.conf
Created April 1, 2014 17:02
A sample repo metadata
# Required
version = 1;
repo {
# Required
type = "binary";
# Required
architecture = "freebsd:11:i386";
# Required
digest = "sha256";
# Required
-- Implementation for postfix TCP table
local base = rspamd_worker:get_ev_base()
local resolver = rspamd_worker:get_resolver()
local hostname = 'id.rambler.ru'
if rspamd_worker:get_option('hostname') then
hostname = rspamd_worker:get_option('hostname')[1]
end
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
#include <sys/uio.h>
#include <sys/param.h>
#include <assert.h>
#include <sys/cdefs.h>
#include <fts.h>
#include <libgen.h>
Index: Makefile
===================================================================
diff --git a/head/mail/exim/Makefile b/head/mail/exim/Makefile
--- a/head/mail/exim/Makefile (revision 360586)
+++ b/head/mail/exim/Makefile (working copy)
@@ -11,16 +11,15 @@
DIST_SUBDIR= exim
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-MAINTAINER= [email protected]
/*-
* Copyright (c) 2014 Baptiste Daroussin <[email protected]>
* Copyright (c) 2014 Vsevolod Stakhov <[email protected]>
* All rights reserved.
*~
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer
diff -r 25be5fde250f mod_mam_archive/mod_mam_archive.lua
--- a/mod_mam_archive/mod_mam_archive.lua Sun Aug 10 13:08:56 2014 +0100
+++ b/mod_mam_archive/mod_mam_archive.lua Mon Aug 18 10:53:48 2014 +0200
@@ -9,6 +9,7 @@
local jid_bare = require "util.jid".bare;
local jid_prep = require "util.jid".prep;
local date_parse = require "util.datetime".parse;
+local date_format = require "util.datetime".datetime;
local st = require "util.stanza";
#!/bin/sh
if [ $# -ne 1 ] ; then
echo "Usage: dist.sh <filename>"
exit 1
fi
FNAME=shift
PREFIX=`basename $FNAME | sed -e 's/\.tar.*$//'`
#!/usr/bin/env python
import sys, os
import numpy as np
import matplotlib
import csv
from scipy import interpolate
import matplotlib.pyplot as plt
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <sys/time.h>
#include <pthread.h>
pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER;
typedef unsigned long utime_t;
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <sys/time.h>
#include <pthread.h>
pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER;
typedef unsigned long utime_t;