Skip to content

Instantly share code, notes, and snippets.

@carsonmcdonald
carsonmcdonald / revspdynpn.sh
Created April 27, 2011 14:52
How to set up ruby, eventmachine and spdy to use NPN
#
# Get development tools installed
#
sudo yum install -y git cvs zlib-devel
sudo yum groupinstall -y "Development Tools"
#
# Install RVM
#
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
@enakai00
enakai00 / math_animation.ipynb
Created June 18, 2016 12:33
Math animation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwyang
cwyang / aes_gcm.c
Created May 24, 2024 16:01
bug reporting on VPP native aes_gcm
// src/plugins/crypto_native/aes_gcm.c
static void test_aes_gcm()
{
  u8 src[32] = {0}, dst[32] = {0}, check[32] = {0};
  u8 aad[32] = {0}, iv[12] = {0}, tag[16] = {0}, key[32];
  aes_key_size_t ks = AES_KEY_256;
  aes_gcm_key_data_t kd;
  // prepare key