Skip to content

Instantly share code, notes, and snippets.

View kunickiaj's full-sized avatar
:octocat:
¯\_(ツ)_/¯

Adam Kunicki kunickiaj

:octocat:
¯\_(ツ)_/¯
View GitHub Profile
@kunickiaj
kunickiaj / curl.rb
Created December 2, 2020 17:16
Homebrew Formula for http/3 support using quiche
class Curl < Formula
desc "Get a file from an HTTP, HTTPS or FTP server"
homepage "https://curl.haxx.se/"
url "https://curl.haxx.se/download/curl-7.73.0.tar.bz2"
sha256 "cf34fe0b07b800f1c01a499a6e8b2af548f6d0e044dca4a29d88a4bee146d131"
license "curl"
revision 1
livecheck do
url "https://curl.haxx.se/download/"
@kunickiaj
kunickiaj / authoring.yaml
Created May 21, 2018 02:13
Control Hub Deployment YAML for Authoring Data Collector
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: authoring-datacollector
namespace: default
spec:
replicas: 1
template:
metadata:
labels:
@kunickiaj
kunickiaj / hpa-demo.yaml
Created May 21, 2018 02:10
Control Hub Deployment Example w/ HPA
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
name: datacollector-service
namespace: default
spec:
type: ClusterIP
@kunickiaj
kunickiaj / avro
Created October 5, 2017 21:12
spot avro schema for netflow
{
"type": "record",
"name": "RawFlowRecord",
"namespace": "com.cloudera.accelerators.flows.avro",
"fields": [{
"name": "treceived",
"type": ["string", "null"]
}, {
"name": "tryear",
"type": ["float", "null"]
@kunickiaj
kunickiaj / .gitconfig
Created June 23, 2017 21:50
git aliases
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
bl = for-each-ref --sort=refname:short refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
@kunickiaj
kunickiaj / kv.js
Created November 15, 2016 17:31
SDC JavaScript Key Value Splitter
for(var i = 0; i < records.length; i++) {
try {
records[i].value = com.google.common.base.Splitter.on(", ").withKeyValueSeparator("=").split(records[i].value['text'])
// Write record to procesor output
output.write(records[i]);
} catch (e) {
// Send record to error
error.write(records[i], e);
}
@kunickiaj
kunickiaj / Dockerfile
Created September 30, 2016 00:22
centos based image for datacollector
#
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#

Keybase proof

I hereby claim:

  • I am kunickiaj on github.
  • I am kunickiaj (https://keybase.io/kunickiaj) on keybase.
  • I have a public key ASCKol5Y-6Y6DSN7QhQtPudQlpuVhD_1F3P3xANNZgmP0Qo

To claim this, I am signing this object:

@kunickiaj
kunickiaj / ChangePassword.java
Created April 21, 2016 15:32 — forked from zach-klippenstein/ChangePassword.java
The keystore password on Java keystore files is utterly pointless. You can reset it without knowing it, as shown by this code. Note that private keys are still secure, as far as I know. The JKS implementation is copyright Casey Marshall (rsdio@metastatic.org), and the original source is available at http://metastatic.org/source/JKS.java. I've in…
import java.util.*;
import java.io.*;
import java.security.*;
public class ChangePassword
{
private final static JKS j = new JKS();
public static void main(String[] args) throws Exception
{
@kunickiaj
kunickiaj / jmxtrans.yml
Created January 12, 2016 22:16
StreamSets Data Collector Sample YAML for jmxtrans
# Host/Port Grahpite listens on
graphite_host: "JMXTRANS_GRAPHITE_HOST"
graphite_port: "JMXTRANS_GRAPHITE_PORT"
# Global port to query JMX on
# query_port and global_host_alias are mandatory
# Will accept a blank space if alias and host is provided in host sets
query_port: "JMXTRANS_JMX_PORT"
global_host_alias: "JMXTRANS_JMX_HOST"