Skip to content

Instantly share code, notes, and snippets.

@stefanondisponibile
stefanondisponibile / build.sh
Created October 29, 2019 20:14
Build TensorFlow Serving with Sentencepiece custom ops.
#!/bin/bash
CWD=$(pwd)
GPROTOBUF_URL=https://github.com/protocolbuffers/protobuf/releases/download/v3.7.0/protobuf-cpp-3.7.0.tar.gz
compile_gprotobuf () {
sudo apt-get install autoconf automake libtool curl make g++ unzip &&
wget $GPROTOBUF_URL &&
fname=protobuf-cpp-3.7.0.tar.gz &&
tar xvzf $fname && rm $fname &&
@extrabacon
extrabacon / set-keep-alives.sh
Last active June 22, 2023 20:04
TCP keep-alives on Mac
sudo sysctl -w net.inet.tcp.keepidle=20000
sudo sysctl -w net.inet.tcp.keepintvl=20000
sudo sysctl -w net.inet.tcp.keepinit=20000
sudo sysctl -w net.inet.tcp.always_keepalive=1
@davispuh
davispuh / steam_console_params.txt
Last active July 20, 2024 16:55
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load