Skip to content

Instantly share code, notes, and snippets.

View ioluwayo's full-sized avatar

Ibukun ioluwayo

  • Benevolent AI
  • London United Kingdom
View GitHub Profile
@ioluwayo
ioluwayo / send_metric_to_statsd.sh
Created April 18, 2019 17:03 — forked from nstielau/send_metric_to_statsd.sh
Send a metric to StatsD from bash
# Send a metric to statsd from bash
#
# Useful for:
# deploy scripts (http://codeascraft.etsy.com/2010/12/08/track-every-release/)
# init scripts
# sending metrics via crontab one-liners
# sprinkling in existing bash scripts.
#
# netcat options:
# -w timeout If a connection and stdin are idle for more than timeout seconds, then the connection is silently closed.
@ioluwayo
ioluwayo / nginx.conf
Created November 3, 2018 23:28 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@ioluwayo
ioluwayo / jekyll-and-liquid.md
Created June 25, 2017 23:13 — forked from magicznyleszek/jekyll-and-liquid.md
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@ioluwayo
ioluwayo / TikaFileInputFormat.java
Created December 16, 2016 09:25 — forked from srinivasanHadoop/TikaFileInputFormat.java
i integrated the apache tika with Hadoop mapreduce code
package com.srini.tikacustom;
import java.io.IOException;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.InputSplit;
import org.apache.hadoop.mapreduce.RecordReader;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
@ioluwayo
ioluwayo / README.md
Created July 18, 2016 15:50 — forked from hofmannsven/README.md
My simply Git Cheatsheet