Build VyOS image image on Debian Jessie environment.
Install Debian jessie.
/* | |
* for use with software DIR-24-8-basic. | |
* personal implementation. | |
*/ | |
void flip_state(uint32_t &prefix, uint8_t &position){ | |
prefix = prefix ^ 1<<position; | |
} |
Build VyOS image image on Debian Jessie environment.
Install Debian jessie.
package main | |
import "fmt" | |
import "time" | |
func main() { | |
commonlogDateFormat := "2/Jan/2006:15:04:05 -0700" | |
iso8601DateFormat := "2006-01-02T15:04:05-07:00" | |
parsedDate, err := time.Parse(commonlogDateFormat, "18/Oct/2014:08:53:14 +0200") |
// A small SSH daemon providing bash sessions | |
// | |
// Server: | |
// cd my/new/dir/ | |
// #generate server keypair | |
// ssh-keygen -t rsa | |
// go get -v . | |
// go run sshd.go | |
// | |
// Client: |
#!/usr/bin/env tarantool | |
local pickle = require('pickle') | |
local denumerate = function(num) | |
local bin = '' | |
while num > 0 do | |
local char = num % 256 | |
num = num - char | |
num = num / 256 | |
bin = string.char(char) .. bin |
This is a simple example of a low-level script that uses the Snabb Switch 82599 10G ethernet device driver directly to feed packets into a C function provided as a shared library. Written for a discussion with Pavel Odintsov.
Here is now to run it:
snabb
executable.capturecallback.c
below.sudo ./snabb snsh capture2c <pciaddress> <filename.so>
The output should look something like this:
#!/bin/bash | |
INTERVAL="1" # update interval in seconds | |
if [ -z "$1" ]; then | |
echo | |
echo usage: $0 [network-interface] | |
echo | |
echo e.g. $0 eth0 | |
echo |
[attaching this to a CloudFlare survey why I left them (for DNSimple)]
I was a free user using CloudFlare only for DNS, chiefly because it can simulate CNAME at an apex domain. The apex domains mathdown.net,mathdown.com point to mathdown-cben.rhcloud.com. Cloudflare "CNAME-flattening" nicely returns an A record; unfortunately it's served with a huge TTL of 7 days(!), which causes a long outage when the underlying IP changes.
I asked support how I can lower the TTL (BTW it's great that you provide free support at all) and was told [https://support.cloudflare.com/hc/en-us/requests/522551, emphasis mine]:
This is based on the TTL of your authoritative provider for mathdown-cben.rhcloud.com:
Sharing my hands-on experience on some of the free NetFlow generators. I use Paessler NetFlow Generator
for quick test, Flowalyzer™ NetFlow Generator
for complicated flow creation and flowgen
for automated performance testing.
Screenshot:
Pros:
/*<?php | |
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
//\u000A\u002F\u002A | |
class PhpJava { | |
static function main() { | |
echo(//\u000A\u002A\u002F | |
"Hello World!"); | |
}} | |
//\u000A\u002F\u002A | |
PhpJava::main(); |