Skip to content

Instantly share code, notes, and snippets.

View alexandreroman's full-sized avatar

Alexandre Roman alexandreroman

View GitHub Profile
@michael-simons
michael-simons / ThingEntity.java
Last active October 19, 2020 16:15
An example on how to use Hibernate-Spatial with Spring Data JPA Repositories
@Entity
@Table(name = "things")
public class ThingEntity {
@Id
private Long id;
// Needed for use with Hibernate Spatial 4.x
// @Type(type = "org.hibernate.spatial.GeometryType")
private Geometry geometry;
@jpouellet
jpouellet / manuf.sh
Created July 5, 2016 03:41
Offline lookup of MAC address / vendor pairs using Wireshark OUI database.
#!/bin/sh
db_source='https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf'
z=$(basename -- "$0")
if [ -z "$MANUFDB" ]; then
MANUFDB=~/.cache/manuf.db
fi
db=$MANUFDB