Skip to content

Instantly share code, notes, and snippets.

View monde's full-sized avatar
🐲

Mike Mondragon monde

🐲
  • Okta
View GitHub Profile
@monde
monde / main.tf
Created December 13, 2023 15:58
example of Okta Terraform bulk user import from CSV
terraform {
required_providers {
okta = {
source = "okta/okta"
}
}
}
locals {
users = csvdecode(file("./users.csv"))
@monde
monde / Gemfile
Last active December 14, 2015 06:49
A watcher script that pull URLs found in a Twitter feed and post them to the Capgun.io web thumb service for capture. Also, a Sintra App that will receive Capgun webhooks upon job completion and post the results to Tumblr.
source 'http://rubygems.org'
gem 'tumblr_client'
gem 'oauth'
gem 'sinatra'
gem 'json'
gem 'twitter'
gem 'capgun'
gem 'activesupport'
@monde
monde / .gitignore
Last active February 19, 2020 19:02
Micro Gem to get an OAuth token and secret for the Tumblr.com API allowing an external application to post Tumblr.com blog.
Gemfile.lock
@monde
monde / delayed_textfield_helper.js
Created January 16, 2013 06:43
An Ember.js TextField and that has been extended to react to a change event after a certain amount of time has passed without any other events having occurred within the TextField.
App.DelayedTextField = Ember.TextField.extend({
// FIXME
// double check that init in Ember.TextSupport / Ember.TextSupport
// isn't handling this.on("paste"...) and the internal variable is still
// this._elementValueDidChange
init: function() {
this.on("propertychange", this, this._elementValueDidChange);
this.on("keyup", this, this._elementValueDidChange);
this.on("input", this, this._elementValueDidChange);
@monde
monde / IRB.conf-default.txt
Last active December 10, 2015 12:58 — forked from anonymous/README.md
notes for IRB lightening talk at Seattle.rb
% irb
irb(main):001:0> IRB.conf
=> CONF[:AP_NAME]="irb"
CONF[:AT_EXIT]=[]
CONF[:AUTO_INDENT]=false
CONF[:BACK_TRACE_LIMIT]=16
CONF[:CONTEXT_MODE]=3
CONF[:DEBUG_LEVEL]=1
CONF[:ECHO]=nil
CONF[:EVAL_HISTORY]=nil
[
"hello",
"world",
"teapot",
"hello",
"world",
"teapot",
"hello",
"world",
"teapot",
@monde
monde / capgun.coffee
Last active October 10, 2015 08:38
code examples accessing the capgun.io web thumbs and web captures service
# Description
# Grab web screens/thumbs of URLs using the capgun.io service
#
# Requires a CapGun API token to be set in the env var HUBOT_CAPGUN_TOKEN
#
# Dependencies:
# none
#
# Configuration:
# HUBOT_CAPGUN_TOKEN
@monde
monde / honeybadger_resque.rb
Created August 4, 2012 05:09
Honeybadger based error reporting backend for Resque
# for Rails place in config/initializers/honeybadger_resque.rb
%w( resque honeybadger ).each do |gem|
begin
require gem
rescue LoadError
raise "Can't find '#{gem}' gem. Please add it to your Gemfile or install it."
end
end
@monde
monde / gist:2468933
Created April 23, 2012 05:05
test errors in mms2r sprint_json branch https://github.com/monde/mms2r/tree/sprint_json
Loaded suite -e
Started
..............................................................................................................................................................EEEEE.EEEEE.E...........................
Finished in 18.287103042 seconds.
1) Error:
test_body_should_return_empty_when_there_is_no_user_text(TestPmSprintCom):
NoMethodError: undefined method `attr' for nil:NilClass
/home/mike/projects/libs/mms2r/lib/mms2r/media/sprint.rb:114:in `sprint_process_text'
/home/mike/projects/libs/mms2r/lib/mms2r/media/sprint.rb:60:in `process'
{
"result": {
"method": "GET",
"occured_at": "2012-03-13T16:01:54-07:00",
"params": {
"query": "god father",
"path": "/logophile/search.json"
},
"response_time": 0.0032401084899902344,
"query_time": 0.0,