Skip to content

Instantly share code, notes, and snippets.

View vcgomes's full-sized avatar

Vinicius Gomes vcgomes

View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <sys/timex.h>
#define TAI_OFFSET 37
int main(void)
{
struct timex timex = {
.modes = ADJ_TAI,
@vcgomes
vcgomes / test-veth-ns.sh
Created February 20, 2020 22:14
taprio veth + namespaces test
#!/bin/sh
ip netns add namespace1
ip netns add namespace2
ip link add veth1 numtxqueues 4 numrxqueues 4 type veth peer name br-veth1
ip link add veth2 numtxqueues 4 numrxqueues 4 type veth peer name br-veth2
ip link set veth1 netns namespace1
ip link set veth2 netns namespace2
ip netns exec namespace1 ip addr add 192.168.1.11/24 dev veth1
ip netns exec namespace2 ip addr add 192.168.1.12/24 dev veth2
@vcgomes
vcgomes / 0001-igb-Enable-ETF-offloading-to-be-enabled-in-any-contr.patch
Created April 12, 2019 23:43
Disable check for i210 check for ETF offloading
From a28171e401f60b70bc2265a23368a90bc437f600 Mon Sep 17 00:00:00 2001
From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Date: Fri, 12 Apr 2019 13:08:40 -0700
Subject: [PATCH] igb: Enable ETF offloading to be enabled in any controller
HACK HACK HACK
This disables any checks for the type of device, so enabling ETF is
allowed on any device.
@vcgomes
vcgomes / perf-report-ping-jirka-patch.txt
Created October 27, 2018 20:03
perf record/report tests
# To display the perf.data header info, please use --header/--header-only options.
#
#
# Total Lost Samples: 0
#
# Samples: 32 of event 'cycles:ppp'
# Event count (approx.): 29579234
#
# Children Self Command Shared Object Symbol
# ........ ........ ....... ................ .......................................

Keybase proof

I hereby claim:

  • I am vcgomes on github.
  • I am vcgomes (https://keybase.io/vcgomes) on keybase.
  • I have a public key whose fingerprint is 9D6C 46EE C27A F203 D966 7B7F 3E90 F591 DCD3 71C8

To claim this, I am signing this object:

@vcgomes
vcgomes / hq.org
Created September 29, 2012 20:32
hq command line ideas

hq - Command line command center

Commands:

hq status

hq send-file <file> [Bluetooth address]

Without Bluetooth address, discovery will be triggered

hq receive-file [path]

Receive a file via Bluetooth

hq scan

List known networks and scan for new ones

hq connect [network name]