Skip to content

Instantly share code, notes, and snippets.

View brauner's full-sized avatar
🌴
I may be slow to respond.

Christian Brauner brauner

🌴
I may be slow to respond.
View GitHub Profile
diff --git a/net/core/scm.c b/net/core/scm.c
index 3cd7dd377e53..d1f4cd135c5a 100644
--- a/net/core/scm.c
+++ b/net/core/scm.c
@@ -236,9 +236,9 @@ int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data)
unsafe_put_user(cmlen, &cm->cmsg_len, efault_end);
unsafe_put_user(level, &cm->cmsg_level, efault_end);
- unsafe_put_user(type, &cm->cmsg_type, efault_end);
unsafe_copy_to_user(CMSG_USER_DATA(cm), data,
> cat ~/.config/neomutt/generate-msgid
#!/bin/bash
# This generates lore-friendly message-id headers that are safe, unique, and
# provide better UX for someone using lore to retrieve messages.
#
# Instructions for using with mutt/neomutt:
#
# Save this as ~/bin/my-gen-msgid, then add ~/.mutt-fix-msgid with the following,
# fixing your path to the file:
#

openpgp4fpr:4880B8C9BD0E5106FC070F4F7B3C391EFEA93624

#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <linux/loop.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <linux/bpf.h>

Keybase proof

I hereby claim:

  • I am brauner on github.
  • I am brauner (https://keybase.io/brauner) on keybase.
  • I have a public key whose fingerprint is 4880 B8C9 BD0E 5106 FC07 0F4F 7B3C 391E FEA9 3624

To claim this, I am signing this object:

@brauner
brauner / ns-inet.sh
Last active March 17, 2019 22:56 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access
#!/usr/bin/env bash
set -x
NS="ns1"
VETH="veth1"
VPEER="vpeer1"
VETH_ADDR="10.200.1.1"
VPEER_ADDR="10.200.1.2"
@brauner
brauner / Lex
Created June 20, 2015 03:15
Shrinkage in mixed-models
structure(list(Val = c(5.82661573956293, -13.0115353646259, -4.09690423969681,
-4.62693606058858, 0.0375951025791696, -8.6265768212586, -1.92827858099976,
-4.80669545796815, 6.4040201399008, -6.14665128980588, 0.904800619647215,
-6.35931626157963, -9.52110181501995, -9.09522653253765, -1.25831703381689,
-6.77240127864943, -1.7251866219969, -10.7976071143191, 0.823059517028506,
-7.42016690159755, -4.82328257026784, -7.46894508948365, -2.10332961993573,
-10.5038700923069, 2.11939021252083, -10.2203361583149, 3.44187559210027,
-5.48569721610986, -11.5944084627211, 5.66948066511724, -15.1332652912803,
-0.284747846024191, -2.20611681064503, -5.77291009915441, -11.2469899558514,
-1.77663034444835, 1.79445799341393, -5.68812555054699, -9.39310707005829,