Skip to content

Instantly share code, notes, and snippets.

package ecn
import (
"net"
"reflect"
"syscall"
)
// EnableExplicitCongestionNotification enables ECN on the given connection.
func EnableExplicitCongestionNotification(conn *net.UDPConn) {
/*
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#include <dt-bindings/media/camera.h>
#include <dt-bindings/platform/t210/t210.h>
#include <dt-bindings/gpio/gpio.h>
/ {
host1x {
vi {
num-channels = <1>;
ports {
#address-cells = <1>;
@kevmo314
kevmo314 / interceptor.go
Last active November 18, 2021 04:08
Interceptor API proposal
package main
import (
"fmt"
"log"
"net"
"time"
"github.com/pion/interceptor"
"github.com/pion/interceptor/pkg/nack"
@kevmo314
kevmo314 / Dockerfile
Last active April 28, 2021 03:40
nginx + nginx-rtmp + ffmpeg + libsrt
FROM ubuntu:20.04
RUN apt-get -qq update && apt-get -qq upgrade
ENV NGINX_VERSION nginx-1.19.3
ENV FFMPEG_VERSION snapshot
ENV NGINX_RTMP_MODULE_VERSION 1.2.1
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=America/New_York
@kevmo314
kevmo314 / twitter.user.js
Created November 12, 2020 01:31
Twitter Canned Replies
// ==UserScript==
// @name Twitter Canned Replies
// @namespace https://www.twitter.com/
// @version 1.0
// @description Adds ability to create/send canned replies to DMs
// @author Kevin Wang <kevmo314@gmail.com>
// @match https://www.tampermonkey.net/index.php?version=4.9.6095&ext=fire&updated=true
// @include https://twitter.com/messages/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @grant GM.setValue

Keybase proof

I hereby claim:

  • I am kevmo314 on github.
  • I am kevmo314 (https://keybase.io/kevmo314) on keybase.
  • I have a public key whose fingerprint is 17CD E3E5 75C0 1128 BC66 0A2D F7A7 E284 28CE B651

To claim this, I am signing this object: