Skip to content

Instantly share code, notes, and snippets.

View philwo's full-sized avatar
🌻
Available

Philipp Wollermann philwo

🌻
Available
View GitHub Profile

Keybase proof

I hereby claim:

  • I am philwo on github.
  • I am philwo (https://keybase.io/philwo) on keybase.
  • I have a public key ASBotoJ4BPlMtPgYkD8yoeV78iw0f2PjPTtQBnP0KiSuzgo

To claim this, I am signing this object:

java_binary(
name = "repro",
main_class = "Repro",
srcs = ["Repro.java"],
)
#!/bin/bash
set -euo pipefail
unset IFS
args=()
found="no"
function add_env_flags() {
@philwo
philwo / README.md
Created November 11, 2019 14:18
How to build TensorFlow 2.0 on Ubuntu 18.04 (x86_64) with Bazelisk

This is how I managed to build TensorFlow 2.0 on Ubuntu 18.04 (x86_64) with Bazelisk:

$ sudo apt update
$ sudo apt full-upgrade
$ sudo apt install curl

# Install Bazelisk.
$ sudo curl -Lo /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64
$ sudo chmod +x /usr/local/bin/bazel
@philwo
philwo / Dockerfile
Created May 19, 2020 04:43
Bootstrapping Bazel inside Docker (works on arm64)
FROM ubuntu:18.04
RUN uname -a
RUN cat /etc/lsb-release
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && \
apt-get install -y \
openjdk-11-jdk-headless \
build-essential \
@philwo
philwo / test.c
Last active August 7, 2020 13:56
symlink benchmark tool
#include <dirent.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
//const char *target = "shortlink";
@philwo
philwo / netdelay.sh
Last active July 10, 2023 06:20
Simulate limited bandwidth / latency on localhost
#!/bin/bash
set -euo pipefail
bandwidth="1000mbit"
latency="200ms"
jitter="50ms"
correlation="25%"
case "$1" in