Skip to content

Instantly share code, notes, and snippets.

View nullren's full-sized avatar

Renning Bruns nullren

View GitHub Profile
@nullren
nullren / dovecot.conf
Created November 19, 2020 05:49 — forked from cmouse/dovecot.conf
dovecot Dockerfile
## You should mount /etc/dovecot if you want to
## manage this file
mail_home=/srv/mail/%Lu
mail_location=sdbox:~/Mail
mail_uid=1000
mail_gid=1000
protocols = imap pop3 submission sieve lmtp
@nullren
nullren / helpers.c
Last active December 17, 2015 11:29
#include "helpers.h"
#include <math.h>
#include <stdlib.h>
uint64_t* sievePrimes(uint64_t* n)
{
if (*n < 2) return NULL;
char *primes = malloc(sizeof(char)*(*n+1)/2);
const uint64_t loop_limit = (sqrt(*n) + 1) /2;
/* Find the greatest product of five consecutive digits in the 1000-digit number.
*/
#include <stdio.h>
#include <string.h>
#define DIGITS 1000
#define SUBSEQUENCE_SIZE 5
int main()
/* Find the greatest product of five consecutive digits in the 1000-digit number.
*/
#include <stdio.h>
#include <string.h>
#define DIGITS 1000
#define SUBSEQUENCE_SIZE 5
int main()
@nullren
nullren / 1. hmac.pl
Created September 21, 2011 22:32 — forked from varnit/1. hmac.pl
c hmac
#!/usr/bin/perl
use strict;
use warnings;
use Digest::SHA qw(hmac_sha1_hex);
print hmac_sha1_hex("my data", "secret key") . "\n";
⨀_⨀
⨂_⨂
(/◔ ◡ ◔)/
°ﺑ°
(¬_¬)
(´・ω・`)
(ʘ_ʘ)
(ʘ‿ʘ)
(๏̯͡๏ )
(◕_◕)