Skip to content

Instantly share code, notes, and snippets.

Fei Gao feigaoxyz

Block or report user

Report or block feigaoxyz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
feigaoxyz /
Last active Apr 17, 2019
pysyft search remote websocket server worker
import syft as sy
import time
import sys
import torch
from torch import tensor
hook = sy.TorchHook(torch, verbose=True)
feigaoxyz /
Last active Apr 15, 2019
set mac os volume in cli #macos #cli #volume #sound
# Thanks to
# osascript -e "set Volume $1"
# $1 in range [0.0, 7.0]
if [[ "$#" -eq 0 ]]; then
osascript -e "get volume settings"
elif [[ "$#" -eq 1 && "$1" -ge 0 && "$1" -le 100 ]]; then
You can’t perform that action at this time.