Skip to content

Instantly share code, notes, and snippets.

View tzvsi's full-sized avatar
🎯
Focusing

tzvsi tzvsi

🎯
Focusing
  • San Francisco, CA
View GitHub Profile
@tzvsi
tzvsi / curl-websocket.sh
Created September 30, 2017 03:10 — forked from htp/curl-websocket.sh
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/
@tzvsi
tzvsi / jq-cheetsheet.md
Created November 17, 2017 05:18 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@tzvsi
tzvsi / .eslintignore
Last active November 9, 2018 15:33
ESLint Config
test/unit/coverage/**
test/unit/*.js
test/e2e/*.js
src/db/migrations/*.js
Global Corporate Wellness Market 2018 by Manufacturers, Countries, Type and Application, Forecast to 2023
In the U.S., there are more than 550 organizations offering employee wellness programs
Optum (UnitedHealth) Eden Prairie, MN 270,000 employees $91.2B Annual
EXOS Phoenix, AZ 3,000 employees $140M Annaul
Provant Health Solutions Olathe, KS 200 employees $35M Annual
Wellness Corporate Solutions Bethesda, MD 88 employees $23M Annual
ComPsych Corporation Chicago, IL 900 employees $400M Annual
@tzvsi
tzvsi / ml-model-conversions.md
Last active August 9, 2019 10:48
Example model conversion commands

ML Model Conversions

MMdnn

$ sudo -H pip3 install -U git+https://github.com/Microsoft/MMdnn.git@master
$ sudo -H pip3 install onnx-tf
$ mmconvert -h
usage: mmconvert [-h]
                 [--srcFramework {caffe,caffe2,cntk,mxnet,keras,tensorflow,tf,pytorch}]
@tzvsi
tzvsi / nyt-all-your-data-is-health-data.md
Created August 14, 2019 19:55
All Your Data Is Health Data

All Your Data Is Health Data

By Charlie WarzelAug. 13, 2019

This article is part of a limited-run newsletter. You can sign up here.

Here’s a terrifying sentence: Hackers are “becoming increasingly interested in the susceptibility of health data.”

At least that’s the takeaway from researchers at the University of Southern California’s Center for Body Computing. They were at the Blackhat hacker conference in Las Vegas recently, where programmers set up a fake hospital environment and invited medical tech companies to bring their devices for a live stress test. “There was a lot of talk about the ease of insurance fraud and blackmail with some of this legacy software that is very hard and frustrating to update,” Dr. Mona Sobhani, who is the head of research for the Center for Body Computing, told me.

@tzvsi
tzvsi / install-onnx-tensorrt.sh
Created January 3, 2020 03:00
Install TensorRT and ONNX-TensorRT for Ubuntu 18, CUDA 10.2
git clone --recursive https://github.com/onnx/onnx-tensorrt.git
cd onnx-tensorrt
mkdir build
cd build
cmake .. -DTENSORRT_ROOT=/usr/src/tensorrt
make -j`nproc`
sudo make install
@tzvsi
tzvsi / install-onnx-tensorrt.sh
Last active October 23, 2020 14:43
Install TensorRT and ONNX-TensorRT for Ubuntu 18, CUDA 10.2
git clone --recursive https://github.com/onnx/onnx-tensorrt.git
cd onnx-tensorrt
mkdir build
cd build
cmake .. -DTENSORRT_ROOT=/usr/src/tensorrt
make -j`nproc`
sudo make install
@tzvsi
tzvsi / gist:222b3b22a847004a729744f89fe31255
Last active September 21, 2023 06:37
Installing CUDA 10.2, CuDNN 7.6.5, TensorRT 7.0, Ubuntu 18.04

Step 1: Installing CUDA (~5.5 minutes)

You can also install CUDA directly from the offline installer, but this is a little easier.

sudo apt update
sudo apt upgrade -y

mkdir install ; cd install
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
@tzvsi
tzvsi / banner-message.sh
Created March 12, 2020 16:39
Add a banner message to login screen on Ubuntu 18.04
sudo -i
xhost +SI:localuser:gdm
su gdm -s /bin/bash
gsettings set org.gnome.login-screen banner-message-enable true
gsettings set org.gnome.login-screen banner-message-text 'TYPE MESSAGE TEXT HERE'
# To restore the changes, you have to RE-DO previous 3 steps in terminal to get gdm user privilege, and finally run command:
gsettings reset org.gnome.login-screen banner-message-enable