Skip to content

Instantly share code, notes, and snippets.

View papadave66's full-sized avatar
🍋
When life gives you lemons, make lemonade!

papadave papadave66

🍋
When life gives you lemons, make lemonade!
View GitHub Profile
@techdad
techdad / range2cidr.pl
Created October 19, 2016 07:55
Quick and dirty IP address range to CIDR converting script
#!/usr/bin/env perl
# Quick and dirty perl to take start and end IP addresses
# (either ipv4 or ipv6), and convert the range between them
# into aggregated CIDR notation.
# The magic is the Net::CIDR CPAN module.
# Reference: http://search.cpan.org/~mrsam/Net-CIDR/CIDR.pm
## Daniel Shaw <[email protected]> - October 2016
@rvanbruggen
rvanbruggen / 1 - loadlineagedata.cql
Last active May 24, 2024 06:16
Demonstration of how to use the Neo4j Graph Database for Data Lineage
//load nodes
LOAD CSV WITH HEADERS FROM "https://docs.google.com/spreadsheets/u/0/d/1eL3IrbzgvZzkNnQUwDCZ1mwVfA6sypZYvDHBoeq48IM/export?format=csv&id=1eL3IrbzgvZzkNnQUwDCZ1mwVfA6sypZYvDHBoeq48IM&gid=0" AS csv
CALL apoc.create.nodes([csv.Label], [{id: csv.ID, name: csv.Name}]) YIELD node
RETURN count(node);
MATCH (n)
SET n:Node;
CREATE INDEX ON :Node(id);
#!/bin/sh
# Copyright 2015-2022 Rivoreo
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to