Skip to content

Instantly share code, notes, and snippets.

View SaveTheRbtz's full-sized avatar

Alexey Ivanov SaveTheRbtz

View GitHub Profile
@SaveTheRbtz
SaveTheRbtz / init.c
Created October 4, 2016 01:02 — forked from rofl0r/init.c
minimal init daemon by rich felker, author of musl libc
#define _XOPEN_SOURCE 700
#include <signal.h>
#include <unistd.h>
int main()
{
sigset_t set;
int status;
if (getpid() != 1) return 1;
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 615b20b..12f4c26 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -924,6 +924,7 @@ struct netns_ipvs {
int sysctl_nat_icmp_send;
int sysctl_pmtu_disc;
int sysctl_backup_only;
+ int sysctl_tun_src_client_copy;
@SaveTheRbtz
SaveTheRbtz / gist:2117117
Created March 19, 2012 15:55 — forked from verm666/gist:2049204
djb2.py
#!/usr/bin/env
# -*- coding: utf-8 -*-
from collections import Counter
from contextlib import contextmanager
def djb2(uuid):
""" See for details: http://www.cse.yorku.ca/~oz/hash.html """
_hash = 5381