Skip to content

Instantly share code, notes, and snippets.

View renatocron's full-sized avatar

Renato Santos renatocron

  • eokoe
  • Sao Paulo, Brazil
View GitHub Profile
apiVersion: "druid.apache.org/v1alpha1"
kind: "Druid"
metadata:
name: tiny-cluster
spec:
image: apache/druid:0.21.1
# Optionally specify image for all nodes. Can be specify on nodes also
# imagePullSecrets:
# - name: tutu
startScript: /druid.sh
@jberger
jberger / html_to_pdf.pl
Last active June 26, 2020 04:27
Extracted from old code, not necessarily recommended
sub _html_to_pdf {
my $cb = ref $_[-1] eq 'CODE' ? pop : undef;
my ($c, $html, $opts) = @_;
$opts||={};
require PDF::WebKit;
PDF::WebKit->configure(sub {
# default `which wkhtmltopdf`
my $exe= $c->executable( 'wkhtmltopdf' );
$_->wkhtmltopdf($exe);
});
@swayvil
swayvil / data-example.json
Last active March 26, 2024 04:45
D3.js collapsing tree with boxes
{
"tree" : {
"nodeName" : "NODE NAME 1",
"name" : "NODE NAME 1",
"type" : "type3",
"code" : "N1",
"label" : "Node name 1",
"version" : "v1.0",
"link" : {
"name" : "Link NODE NAME 1",