Skip to content

Instantly share code, notes, and snippets.

-- event_extras.lua
-- Add extra event fields.
-- By Gerald Combs <gerald@wireshark.org>
-- Modified from https://wiki.wireshark.org/Lua/Examples/PostDissector
-- To use this script, place it in your personal Lua plugin directory.
-- You can find that by going to "About → Folders".
-- Links:
@geraldcombs
geraldcombs / libmaxminddb-CMakeLists.txt
Created January 16, 2019 19:52
CMakeLists.txt for libmaxminddb
# Adapted from https://github.com/Microsoft/vcpkg/blob/master/ports/libmaxminddb/CMakeLists.txt
cmake_minimum_required (VERSION 3.9)
project(maxminddb C)
set(CMAKE_DEBUG_POSTFIX d)
set(CMAKE_SHARED_LIBRARY_PREFIX lib)
set(CMAKE_STATIC_LIBRARY_PREFIX lib)
if(MSVC)
@geraldcombs
geraldcombs / delta_distance.lua
Last active August 1, 2021 21:14
Wireshark Lua postdissector that converts frame.time_delta_displayed to distance values.
-- delta_distance.lua
-- Add delta_distance.{copper,fiber}.{km,mi} fields
-- By Gerald Combs <gerald@wireshark.org>
-- Modified from https://wiki.wireshark.org/Lua/Examples/PostDissector
-- My Wireshark Lua skills were getting rusty so I wrote this. There are
-- probably mistakes.
-- To use this script, place it in your personal Lua plugin directory.
-- You can find that by going to "About → Folders".

Keybase proof

I hereby claim:

  • I am geraldcombs on github.
  • I am geraldcombs (https://keybase.io/geraldcombs) on keybase.
  • I have a public key whose fingerprint is 5A5A DBA7 DBEA 6C3F 8722 4F19 8224 4A78 E6FE AEEA

To claim this, I am signing this object:

@geraldcombs
geraldcombs / Cheat sheets
Last active May 24, 2018 13:36
Cheat sheets I run across from time to time
Crypto:
http://www.madboa.com/geek/openssl/
CSS:
http://www.justinaguilar.com/animations/
Favicon:
https://github.com/audreyr/favicon-cheat-sheet
Fonts:
@geraldcombs
geraldcombs / greenbar-css.less
Created April 19, 2013 18:36
Emulate green bar line printer output using CSS
// http://www.pdp8online.com/images/greenbar.shtml
@ws-greenbar-bg: #e4ffc7;
@ws-greenbar-border: #4e9a06;
table.table-greenbar {
tr:nth-of-type(6n+1), tr:nth-of-type(6n+2), tr:nth-of-type(6n+3) {
background: @ws-greenbar-bg;
}
tr {
@geraldcombs
geraldcombs / ga+jquery.html
Created March 27, 2012 22:30
GA + jQuery async loader
<!--
Google Analytic's async loader modified to be even more async
using jQuery
http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxx-x']);
_gaq.push(['_trackPageview']);