Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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 Nov 9, 2020
Create CSR and plain-text private key
View create_csr.sh
#!/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 Jul 26, 2018
Relink all brew installed packages
View relink-brew.sh
@jasonkit
jasonkit / filter-visualize.py
Last active Oct 12, 2021
Python script for visualizing inception feature at different stages
View filter-visualize.py
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 Jun 28, 2015
simple go chatroom
View tcp.go
package main
import (
"flag"
"fmt"
"io"
"net"
"sync"
"time"
)
@jasonkit
jasonkit / lena.js
Last active May 31, 2021
Using WebGL to do Gaussian Blur
View lena.js
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 Jun 30, 2012
Hello World for testing
View hello.c
#include "stdio.h"
int main()
{
printf("Hello World\n");
return 0;
}