Skip to content

Instantly share code, notes, and snippets.

View kririae's full-sized avatar
🐱
R&D

Zike Xu kririae

🐱
R&D
  • Shanghai, China
  • 16:11 (UTC +08:00)
View GitHub Profile
// clang++ ./cujit.cpp -I/opt/cuda/include/ -std=c++20 -lcuda
#include <cuda.h>
#include <format>
#include <iostream>
#include <source_location>
#include <stdexcept>
#include <string>
#include <string_view>
@kririae
kririae / mimp.rs
Last active June 18, 2024 14:33
mimp-rs
use std::io;
use std::net::IpAddr::{V4, V6};
use std::net::{Ipv4Addr, Ipv6Addr};
use std::sync::Arc;
use std::time::Instant;
use anyhow::{anyhow, bail, Context, Result};
use clap::Parser;
use env_logger::Env;
use hickory_resolver::config::*;
@kririae
kririae / mimp.cpp
Last active February 17, 2024 08:37
mimp 0.1.0, the man in the middle proxy
#define FMT_HEADER_ONLY
#include <fmt/chrono.h>
#include <fmt/core.h>
#include <fmt/ostream.h>
#define SPDLOG_FMT_EXTERNAL
#include <spdlog/spdlog.h>
#include <getopt.h>
#!/usr/bin/env python
import taichi as ti
import numpy as np
from matplotlib import cm
# Basic Taichi settings
ti.init(ti.gpu)
nx = 2000
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/