Skip to content

Instantly share code, notes, and snippets.

View jschwinger233's full-sized avatar
😭
On vacation

graymon jschwinger233

😭
On vacation
  • China
View GitHub Profile
### dhcp example
ovs-appctl ofproto/trace br-int in_port=7,udp,dl_src=fa:16:3e:f4:bd:de,dl_dst=ff:ff:ff:ff:ff:ff,nw_dst=255.255.255.255,udp_dst=67,udp_src=68
Megaflow: recirc_id=0,udp,tun_id=0,in_port=7,dl_src=fa:16:3e:f4:bd:de,dl_dst=ff:ff:ff:ff:ff:ff,nw_ecn=0,nw_frag=no,tp_src=68,tp_dst=67
Datapath actions: tnl_push(tnl_port(2),header(size=50,type=4,eth(dst=52:54:00:9b:2f:62,src=1e:36:0f:9e:1d:41,dl_type=0x0800),ipv4(src=11.0.0.21,dst=11.0.0.26,proto=17,tos=0,ttl=64,frag=0x4000),udp(src=0,dst=4789,csum=0x0),vxlan(flags=0x8000000,vni=0x138a)),out_port(4)),tnl_push(tnl_port(2),header(size=50,type=4,eth(dst=2a:da:01:b8:5f:46,src=1e:36:0f:9e:1d:41,dl_type=0x0800),ipv4(src=11.0.0.21,dst=11.0.0.28,proto=17,tos=0,ttl=64,frag=0x4000),udp(src=0,dst=4789,csum=0x0),vxlan(flags=0x8000000,vni=0x138a)),out_port(4))
###vxlan packet
ovs-appctl ofproto/trace br-int in_port=4,
@chenchun
chenchun / bond_vlan_bridge.md
Last active June 6, 2022 08:41
Linux vlan over bridge demo, VLAN bond bridge
@rain1024
rain1024 / tut.md
Last active July 15, 2025 13:19
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
@DanGe42
DanGe42 / context_demo.c
Created October 25, 2013 03:14
A non-trivial example of how to use user contexts for trivial scheduling.
#include <ucontext.h>
#include <sys/types.h>
#include <sys/time.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <poll.h>
/* ucontext sample program
@lotem
lotem / alternative.yaml
Created April 8, 2012 03:44
Rime 別樣設定,使用西文標點、[ ] 鍵換頁
# Rime alternative settings
# encoding: utf-8
#
# difference from default settings:
# 1. ascii-style punctuation in half-shape mode
# 2. [ ] as paging keys
#
# save this file as:
# (Linux) ~/.config/ibus/rime/alternative.yaml
# (Mac OS) ~/Library/Rime/alternative.yaml