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
feigaoxyz / local.py
Last active Apr 17, 2019
pysyft search remote websocket server worker
View local.py
# local.py
import syft as sy
import time
import sys
import torch
from torch import tensor
hook = sy.TorchHook(torch, verbose=True)
torch.manual_seed(42)
@feigaoxyz
feigaoxyz / volume.sh
Last active Apr 15, 2019
set mac os volume in cli #macos #cli #volume #sound
View volume.sh
#!/bin/bash
# Thanks to http://apple.stackexchange.com/questions/63253/lowest-volume-is-still-too-loud-how-can-i-make-it-even-lower
#
# 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.