This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
# | |
# Install: | |
# | |
# tic xterm-256color-italic.terminfo | |
# | |
# Usage: | |
# | |
# export TERM=xterm-256color-italic | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
port=enp0s8 | |
lladdr=$(ip link show $port | awk '/ether /{print $2}') | |
sysctl -w net.ipv4.ip_forward=1 | |
ip link add h1-eth0 type veth peer name s1-eth0 | |
ip netns add h1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> WARNING: the 'dc' flag has been deprecated. Use 'datacenter' instead | |
==> WARNING: Expect Mode enabled, expecting 3 servers | |
==> Starting Consul agent... | |
==> Starting Consul agent RPC... | |
==> Consul agent running! | |
Version: 'v0.7.0' | |
Node name: '10.2.1.0/24,172.28.5.71,3fc622a3e09b' | |
Datacenter: 'dc1-3-santa_clara' | |
Server: true (bootstrap: false) | |
Client Addr: 0.0.0.0 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"runtime" | |
"strconv" | |
"strings" | |
) | |
const ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:1.11.8 | |
# Create a 5GiB file to fill the disk space. | |
RUN fallocate -l 5G /var/lib/large.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pycuda.autoinit | |
import pycuda.driver as drv | |
import numpy as np | |
import math | |
import time | |
from __future__ import division | |
from pycuda.compiler import SourceModule | |
""" Dodgson condensation """ |