Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jasonkit on github.
  • I am jasonkit (https://keybase.io/jasonkit) on keybase.
  • I have a public key whose fingerprint is C720 25CF 9AC6 93FF 1663 1193 B756 9941 5711 7D80

To claim this, I am signing this object:

@jasonkit
jasonkit / create_csr.sh
Created November 9, 2020 09:30
Create CSR and plain-text private key
#!/bin/sh
CERT_NAME=$1
openssl req -new \
-keyout ${CERT_NAME}.key -nodes \
-out ${CERT_NAME}.csr \
-subj "/CN=${CERT_NAME}"
@jasonkit
jasonkit / relink-brew.sh
Created July 26, 2018 06:44
Relink all brew installed packages
@jasonkit
jasonkit / filter-visualize.py
Last active December 18, 2022 09:55
Python script for visualizing inception feature at different stages
import os.path
import tensorflow as tf
from tensorflow.python.platform import gfile
import matplotlib.pyplot as plt
log_dir = "/tmp/inception_v3_log"
if not os.path.exists(log_dir):
os.makedirs(log_dir)
@jasonkit
jasonkit / tcp.go
Created June 28, 2015 14:46
simple go chatroom
package main
import (
"flag"
"fmt"
"io"
"net"
"sync"
"time"
)
@jasonkit
jasonkit / lena.js
Last active August 14, 2023 13:17
Using WebGL to do Gaussian Blur
var canvas_in = document.getElementById("canvas_in");
var canvas_out = document.getElementById("canvas_out");
var img = new Image();
img.onload = function() {
var w = this.width;
var h = this.height;
canvas_in.width = canvas_out.width = w;
canvas_in.height = canvas_out.height = h;
@jasonkit
jasonkit / hello.c
Created June 30, 2012 04:50
Hello World for testing
#include "stdio.h"
int main()
{
printf("Hello World\n");
return 0;
}