Skip to content

Instantly share code, notes, and snippets.

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
Configure | 48 +-
Makefile.org | 4 +-
apps/speed.c | 30 +-
crypto/chacha20poly1305/Makefile | 92 +++
crypto/chacha20poly1305/asm/chacha20_avx.pl | 389 ++++++++++++
crypto/chacha20poly1305/asm/chacha20_avx2.pl | 425 +++++++++++++
crypto/chacha20poly1305/asm/poly1305_avx.pl | 718 +++++++++++++++++++++
crypto/chacha20poly1305/asm/poly1305_avx2.pl | 919 +++++++++++++++++++++++++++
crypto/chacha20poly1305/chacha20.c | 158 +++++
crypto/chacha20poly1305/chacha20poly1305.h | 77 +++
@userid
userid / .forked_conkyrc
Created February 24, 2016 03:49 — forked from nofxx/.conkyrc
Conky for intel X79/it87
#
# xConky settings
#
update_interval 2
total_run_times 0
net_avg_samples 1
cpu_avg_samples 2
imlib_cache_size 0
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@userid
userid / ExclamationTopology.java
Created April 18, 2016 19:39 — forked from jatrost/ExclamationTopology.java
ExclamationTopology instrumented with Metrics collection.
package storm.starter;
import backtype.storm.Config;
import backtype.storm.LocalCluster;
import backtype.storm.StormSubmitter;
import backtype.storm.metric.LoggingMetricsConsumer;
import backtype.storm.metric.api.CountMetric;
import backtype.storm.metric.api.MeanReducer;
import backtype.storm.metric.api.MultiCountMetric;
import backtype.storm.metric.api.ReducedMetric;
@userid
userid / danmu.c
Last active April 19, 2016 16:24
douyutv
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/types.h>
## from https://github.com/mwunsch/tumblr/blob/56120b7eb65e77bd730fec05d2d6861b3641d08a/lib/tumblr/post/video.rb
module Tumblr
class Post
class Video < Post
def initialize(post_data = {})
super(post_data)
@type = :video
@embed ||= get_embed_code_from_response
end
#!/usr/bin/env python
# encoding: utf-8
# standard Python library imports
from __future__ import with_statement
import codecs
from collections import defaultdict
from datetime import datetime
import errno
from glob import glob
@userid
userid / asus-keyboard-backlight.sh
Created September 8, 2016 08:53
/etc/acpi/asus-keyboard-backlight.sh
#!/bin/sh
# this directory is a symlink on my machine:
KEYS_DIR=/sys/class/leds/asus\:\:kbd_backlight
test -d $KEYS_DIR || exit 0
MIN=0
MAX=$(cat $KEYS_DIR/max_brightness)
VAL=$(cat $KEYS_DIR/brightness)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 89bcfe8..9298207 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -533,8 +533,10 @@ struct sk_buff {
* layer. Please put your private variables there. If you
* want to keep them across layers you have to do a skb_clone()
* first. This is owned by whoever has the skb queued ATM.
+ *
+ * Increased the CB to hold pointer to an FEC structure.