Let's install Debian 9.0 "Stretch" on QEMU MIPS64 under Ubuntu.
sudo apt install qemu-system-mips
wget http://ftp.debian.org/debian/dists/stretch/main/installer-mips64el/current/images/malta/netboot/vmlinux-4.9.0-8-5kc-malta
| package main | |
| import ( | |
| "net" | |
| "os" | |
| "syscall" | |
| "time" | |
| ) | |
| func main() { | |
| strEcho := "Halo" |
| DIR=$(dirname $(readlink -f $0)) | |
| if [ ${#DIR} -gt 0 ]; then | |
| cd $DIR | |
| fi |
| #!/usr/bin/env python | |
| # SPDX-License-Identifier: GPL-2.0 | |
| # | |
| # Copyright (C) Google LLC, 2018 | |
| # | |
| # Author: Tom Roeder <[email protected]> | |
| # | |
| """A tool for generating compile_commands.json in the Linux kernel.""" | |
| import argparse |
| wget -O- 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | awk -F\| '/CN\|ipv4/ { printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > your_chn_list.txt |
| go build -ldflags "-linkmode external -extldflags -static" |
| diff --git a/xt_FULLCONENAT.c b/xt_FULLCONENAT.c | |
| index 8555b54..8edaf7b 100644 | |
| --- a/xt_FULLCONENAT.c | |
| +++ b/xt_FULLCONENAT.c | |
| @@ -21,6 +21,7 @@ | |
| #include <linux/netfilter.h> | |
| #include <linux/netfilter_ipv4.h> | |
| #include <linux/netfilter/x_tables.h> | |
| +#include <linux/notifier.h> | |
| #include <net/netfilter/nf_nat.h> |
| import numpy as np | |
| from scipy.signal import lfilter | |
| def discount_readable(r, gamma): | |
| """ Compute the gamma-discounted rewards over an episode | |
| """ | |
| discounted_r, cumul_r = np.zeros_like(r), 0 | |
| for t in reversed(range(0, len(r))): | |
| cumul_r = r[t] + cumul_r * gamma | |
| discounted_r[t] = cumul_r |
| LDFLAGS="-static" LIBS=-ldl ./configure --disable-shared --enable-static | |
| make V=1 curl_LDFLAGS=-all-static -j4 |