Skip to content

Instantly share code, notes, and snippets.

@Willian-Zhang
Willian-Zhang / README.md
Last active December 26, 2021 12:08
Delete OCSP and CRL cache from GlobalSign on after Catalina

This script clears caches from GlobalSign, which hopefully solves a lot of issues on a lot of sites.

Use at your own risk

How to use

Run with sudo

I do not advise you to use this if you don't understand "How to use" instrcution

Ref

@Willian-Zhang
Willian-Zhang / tensorflow_1_8_high_sierra_gpu.md
Last active May 12, 2022 04:40
Install TensorFlow 1.8 on macOS High Sierra 10.13.4 with CUDA
@Willian-Zhang
Willian-Zhang / tensorflow_1_7_high_sierra_gpu.md
Last active February 2, 2020 01:11 — forked from pavelmalik/tensorflow_1_7_high_sierra_gpu.md
Install Tensorflow 1.7 on macOS High Sierra 10.13.4 with CUDA and stock python

Tensorflow 1.7 with CUDA on macOS High Sierra 10.13.4 for eGPU

Largely based on the Tensorflow 1.6 gist, and Tensorflow 1.7 gist for xcode, this should hopefully simplify things a bit.

Requirements

  • NVIDIA Web-Drivers 387.10.10.10.30.103 for 10.13.4
  • CUDA-Drivers 387.178
  • CUDA 9.1 Toolkit
@Willian-Zhang
Willian-Zhang / extract_react_form_data.js
Last active March 18, 2018 10:59
Extract React Form Data
$('.reactable-data').find('tr').toArray()
.map(tr=>
$(tr).find('td').toArray()
.map(td=>
[$(td).attr('label').replace(',[object Object]',''),
$(td).attr('value') && $(td).attr('value').match('[object Object]') ? $(td).text() : $(td).attr('value')
]
)
.reduce((map, tuple) => {
if(tuple[0] != ' '){
@Willian-Zhang
Willian-Zhang / TissueBox.pyde
Created February 24, 2018 01:42
Tissue Box implementation for Arduino with Processing.py
add_library("serial")
add_library("arduino")
from coordinate import *
from scheduler import Scheduler
# from entities import *
# TODO: move to seperate file
# === entities ===
class Button:
@Willian-Zhang
Willian-Zhang / mnist-cnn.md
Last active May 11, 2018 08:55
Tensorflow Benchmark

How to run

wget https://gist.github.com/Willian-Zhang/290dceb96679c8f413e42491c92722b0/raw/mnist-cnn.py
python3 mnist-cnn.py