Skip to content

Instantly share code, notes, and snippets.

@anismiles
anismiles / normalizer.js
Created May 6, 2024 20:11 — forked from yurifrl/normalizer.js
ramda, convert properties of objet into snakeCase or camelCase
import { concat, zipObj, keys, values, map, isEmpty, curry } from 'ramda'
const log = curry(console.log)
const snakeCaseObj = [{
a_b: "asdasdasd",
c_a: "2018-02-20T18:43:17.104Z",
t_c: {
s_d: "2018-02-20",
e_d: "2018-02-20",
b_t: {
c_a: "2018-02-20T18:43:17.104Z"
@anismiles
anismiles / hive_csv2avro.py
Created November 12, 2020 20:45 — forked from vepetkov/hive_csv2avro.py
Convert a CSV to Hive DDL + AVRO Schema (with type inference)
#!/usr/bin/python
import pandas
import sys
import argparse
import string
import subprocess
import json
import textwrap
import re
@anismiles
anismiles / golang_job_queue.md
Created February 5, 2018 17:15 — forked from harlow/golang_job_queue.md
Job queues in Golang
@anismiles
anismiles / pom.xml
Created February 3, 2014 10:01 — forked from elvanja/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.acme.test</groupId>
<artifactId>nodejs-dependency</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>nodejs-dependency</name>
<description>NodeJS Dependency Project - to be references in nodejs-test</description>
<packaging>jar</packaging>
@anismiles
anismiles / pom.xml
Created February 3, 2014 10:01 — forked from elvanja/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.acme.test</groupId>
<artifactId>nodejs-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>nodejs-test</name>
<description>NodeJS Test Project</description>
<packaging>jar</packaging>
package com.vast.example
import java.net.InetSocketAddress
import java.util.UUID
import java.util.concurrent.{Executors, TimeUnit}
import com.google.common.base.Splitter
import com.twitter.finagle.http.Http
import com.twitter.finagle.builder.{Server, ServerBuilder}
import com.twitter.finagle.service.TimeoutFilter
import com.twitter.finagle.{Service, SimpleFilter, GlobalRequestTimeoutException}
#!/bin/bash
#
# MongoDB Backup Script
# VER. 0.1
# Note, this is a lobotomized port of AutoMySQLBackup
# (http://sourceforge.net/projects/automysqlbackup/) for use with
# MongoDB.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
redis-cli KEYS "prefix:*" | xargs redis-cli DEL