Skip to content

Instantly share code, notes, and snippets.

View dalegaspi's full-sized avatar
🎓
BU S2 2022

Dexter Legaspi dalegaspi

🎓
BU S2 2022
View GitHub Profile
@dalegaspi
dalegaspi / DocumentModule.cs
Created May 31, 2014 18:28
A simple Nancy Module that uses DataStax drivers to read data from Cassandra
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Linq;
using Nancy;
using Nancy.ModelBinding;
using Cassandra.Data.Linq;
using Cassandra.Data;
using Cassandra;
@dalegaspi
dalegaspi / display-create-import-dps.sh
Last active August 29, 2015 14:01
I'm creating an elasticsearch import data file using python (import.txt) and I wanted to display the real-time documents per second
tail -f import.txt | grep --line-buffered _index | while read line; do printf "$(date '+%F %T')\n"; done | uniq -c
@dalegaspi
dalegaspi / Apigee Add Developer User Script.tamper.js
Last active August 29, 2015 13:57
TamperMonkey/GreaseMonkey script to extend apigee dashboard by adding a dropdown list of custom attribute names of your choice.
// ==UserScript==
// @name Apigee Add Developer User Script
// @namespace http://ap.org/
// @version 0.9
// @description This allows easier adding of custom properties
// @match https://enterprise.apigee.com/platform/*
// @copyright 2014+, [email protected]
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==