Skip to content

Instantly share code, notes, and snippets.

View anthonymoralez's full-sized avatar

Anthony Moralez anthonymoralez

  • GuardTime
  • Redlands, CA
View GitHub Profile
@anthonymoralez
anthonymoralez / simple-APL.json
Created May 22, 2019 06:57
Alexa invalid response error
{
"type": "APL",
"version": "1.0",
"theme": "dark",
"import": [],
"resources": [],
"styles": {},
"layouts": {},
"mainTemplate": {
"parameters": [
@anthonymoralez
anthonymoralez / convo1.md
Last active May 20, 2019 17:45
Part of the Alexa Fact Skill Template

User: Open [skill name]

Alexa: [says random fact]

User: Spin

Alexa: [says random fact]

@anthonymoralez
anthonymoralez / Rules-2.rb
Last active April 28, 2017 20:55
Adding Tags
preprocess do
tags = @items.map { |i| i[:tags] }.flatten.uniq
tags.each do |tag|
next unless tag
content = ''
attributes = { tag: tag }
identifier = "/tags/#{tag}"
@items.create(content, attributes, identifier)
end
@anthonymoralez
anthonymoralez / Rules
Last active April 27, 2017 19:18
Adding RSS and RSS Friendly Gists
compile '/feed/*.erb' do
filter :erb
write item.identifier.without_ext
end
@anthonymoralez
anthonymoralez / Gemfile
Last active April 26, 2017 22:38
Heroku Nanoc Buildpack
# frozen_string_literal: true
source "https://rubygems.org"
ruby "2.3.1"
gem "thin"
gem "nanoc"
@anthonymoralez
anthonymoralez / mysqldump.gitlabhq.sql
Last active December 14, 2015 02:39
mysqldump of gitlabhq database after db:migrate
-- MySQL dump 10.11
--
-- Host: localhost Database: gitlabhq_development
-- ------------------------------------------------------
-- Server version 5.0.95
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@anthonymoralez
anthonymoralez / gist:4627717
Created January 24, 2013 21:03
Removing a gem by name from a Gemfile in bash
grep -v "lame" Gemfile > Gemfile.new && mv Gemfile.new Gemfile
@anthonymoralez
anthonymoralez / 02.make
Created September 28, 2012 15:55
io failed to build on 10.7
Scanning dependencies of target copy_basekit_headers
[ 1%] Copying files: /tmp/io-I2ll/stevedekorte-io-23afbcc//tmp/io-I2ll/stevedekorte-io-23afbcc/libs/basekit/source/*.h to /tmp/io-I2ll/stevedekorte-io-23afbcc/buildroot/_build/headers
[ 1%] Built target copy_basekit_headers
Scanning dependencies of target copy_coroutine_headers
[ 1%] Copying files: /tmp/io-I2ll/stevedekorte-io-23afbcc//tmp/io-I2ll/stevedekorte-io-23afbcc/libs/coroutine/source/*.h to /tmp/io-I2ll/stevedekorte-io-23afbcc/buildroot/_build/headers
[ 1%] Built target copy_coroutine_headers
Scanning dependencies of target copy_garbagecollector_headers
[ 1%] Copying files: /tmp/io-I2ll/stevedekorte-io-23afbcc//tmp/io-I2ll/stevedekorte-io-23afbcc/libs/garbagecollector/source/*.h to /tmp/io-I2ll/stevedekorte-io-23afbcc/buildroot/_build/headers
[ 1%] Built target copy_garbagecollector_headers
Scanning dependencies of target copy_iovm_headers