This file contains hidden or 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
#!/usr/bin/python | |
# Copyright (c) Isovalent, 2021. | |
# Licensed under the Apache License, Version 2.0 (the "License") | |
from bcc import BPF | |
import ctypes as ct | |
import time | |
import socket | |
import struct |
This file contains hidden or 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
apiVersion: "cilium.io/v2" | |
kind: CiliumClusterwideNetworkPolicy | |
description: "Lock down nodes on GKE. USE AT YOUR OWN RISK." | |
metadata: | |
name: "lock-down-gke" | |
spec: | |
nodeSelector: | |
matchLabels: | |
type: worker | |
ingress: |
This file contains hidden or 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
local mg = require "moongen" | |
local lm = require "libmoon" | |
local memory = require "memory" | |
local device = require "device" | |
local stats = require "stats" | |
local limiter = require "software-ratecontrol" | |
local pcap = require "pcap" | |
function configure(parser) | |
parser:description("Attemps to achieve the highest throughput supported by DUT while minimizing packet losses.") |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network :forwarded_port, guest: 8080, host: 8888 | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = 2048 |
This file contains hidden or 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 ubuntu:16.04 | |
MAINTAINER Paul Chaignon <[email protected]> | |
RUN apt update | |
RUN apt install -y python-pip glpk-utils coinor-cbc | |
RUN pip install pulp | |
RUN apt build-dep -y python-matplotlib | |
RUN pip install --no-cache-dir pylab | |
ADD . /lp |
This file contains hidden or 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/bash | |
BRIDGE_NAME=dbridge | |
PHYS_IF=eth0 | |
SUBNET=192.168.1.0 | |
NETMASK=255.255.255.0 | |
GATEWAY=192.168.1.1 | |
sudo brctl addbr $BRIDGE_NAME | |
sudo brctl addif $BRIDGE_NAME $PHYS_IF | |
sudo ifconfig $BRIDGE_NAME up |
This file contains hidden or 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 ubuntu | |
RUN apt-get update | |
RUN apt-get install -qy git build-essential | |
WORKDIR /opt | |
RUN git clone https://github.com/kernelslacker/trinity | |
WORKDIR /opt/trinity | |
RUN ./configure |
This file contains hidden or 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
require 'helper' | |
require 'net/smtp' | |
require 'resolv' | |
def resolve_mx(domain) | |
mxs = Resolv::DNS.open do |dns| | |
ress = dns.getresources(domain, Resolv::DNS::Resource::IN::MX) | |
ress.map { |r| r.exchange.to_s } | |
end | |
return mxs |
This file contains hidden or 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
79.94% NCL | |
20.06% Text | |
NCL: | |
CS4311-TBA/visko/visko-modules/module_ncl/webapp/scripts/ncl/gsn_csm_xy2_time_series_inputs.ncl | |
billsacks/cism_misc-make_scrip_grid_file/make_scrip_grid_file.ncl | |
datoncito/NclPrograms/primero.ncl | |
decvalts/wrf/var/graphics/ncl/gen_be/gsi_be_plots.ncl | |
dongli/geodiag/geodiag.ncl | |
fanghuan/ncl/func/ListSetType-help.ncl |
NewerOlder