Skip to content

Instantly share code, notes, and snippets.

View vingov's full-sized avatar

Vinoth Govindarajan vingov

  • Apple Inc
  • Bay Area
View GitHub Profile
@vingov
vingov / testing-console
Created May 15, 2020 21:30
hudi-sparkbase-docker-testing
diff --git a/docker/compose/docker-compose_hadoop284_hive233_spark244.yml b/docker/compose/docker-compose_hadoop284_hive233_spark244.yml
index 3e42d532..8e1bd948 100644
--- a/docker/compose/docker-compose_hadoop284_hive233_spark244.yml
+++ b/docker/compose/docker-compose_hadoop284_hive233_spark244.yml
@@ -128,7 +128,7 @@ services:
- ${HUDI_WS}:/var/hoodie/ws
sparkmaster:
- image: apachehudi/hudi-hadoop_2.8.4-hive_2.3.3-sparkmaster_2.4.4:latest
+ image: localhost:5000/hudi-hadoop_2.8.4-hive_2.3.3-sparkmaster_2.4.4:latest
@vingov
vingov / gist:d2e251b218f58d84f7566348f28a6840
Created April 21, 2018 23:53
Rate Limiter implemented in REDIS
FUNCTION LIMIT_API_CALL(ip)
ts = CURRENT_UNIX_TIME()
keyname = ip+":"+ts
current = GET(keyname)
IF current != NULL AND current > 10 THEN
ERROR "too many requests per second"
ELSE
MULTI
INCR(keyname,1)
EXPIRE(keyname,10)
@vingov
vingov / cbconference.install
Last active July 8, 2016 19:24
Taxonomy Term Save
<?php
/**
* @file
* Install, update, and uninstall functions for cbconference module.
*/
/**
* Creating the object type taxonomy terms
*/
@vingov
vingov / gist:4ab63124074dd744cc06
Created June 3, 2014 15:54
Drupal Coding Standard
Drupal Coding Standards
=======================
Git pre commit hook for checking modified files with Drupal Code Sniffer.
To learn more about drupal coding standards, read this article: <https://drupal.org/coding-standards>
## Requirements
- Coder: <http://drupal.org/project/coder>, we already have this in repo.
- Install PHP Code Sniffer and Drupal Code Sniffer: <http://drupal.org/node/1419988>
- For MAMP users, check the below MAMP requirements.
@vingov
vingov / gist:7140041
Last active December 26, 2015 10:58
Git pre-commit script to check drupal coding standard
#!/usr/bin/env sh
# Git precommit hook for validating drupal coding standards.
#
# This script will validate all staged files against the drupal coding
# standards. In order to use this script you need to have the following
# software installed:
# - coder <http://drupal.org/project/coder>
# - PHP CodeSniffer with Drupal standard