Skip to content

Instantly share code, notes, and snippets.

@hotgazpacho
hotgazpacho / cf-resources.md
Created May 9, 2018 18:39
CloudFormation Resources that should allow setting the tags on
  • AWS::ApiGateway::Deployment
  • AWS::ApiGateway::Method
  • AWS::ApiGateway::Resource
  • AWS::ApiGateway::RestApi
  • AWS::Lambda::Function
  • AWS::Lambda::Permission
  • AWS::Lambda::Version
  • AWS::Logs::LogGroup
  • AWS::IAM::Role
  • AWS::CloudFront::Distribution
@hotgazpacho
hotgazpacho / gist:1301411
Created October 20, 2011 15:20
Error when trying to restore a database from a backup using RoundhousE
Running RoundhousE v0.8.230.353 against (local) - IddealSuite.
Looking in C:\Dev\Iddeal\Database for scripts to run.
==================================================
Setup, Backup, Create/Restore/Drop
==================================================
Creating IddealSuite database on (local) server if it doesn't exist.
Restoring IddealSuite database on (local) server from path C:\Dev\Iddeal\Database\IddealSuite.bak.
RoundhousE encountered an error. You were running in a transaction though, so the database should be in the state it was in prior to this piece running. This does not include a drop/create or any creation of a database, as those items can not run in a transaction.
System.Data.SqlClient.SqlException: A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
@hotgazpacho
hotgazpacho / gist:62326dffb3ab9a5e02fbabbec7998014
Created March 30, 2016 14:31
Well, playing with otto is off to a GREAT start...
$ otto dev
Would you like Otto to install Vagrant?
An older version of vagrant was found installed (1.6.3). Otto requires
version 1.8.1 or higher. Otto can install the latest version of vagrant
for you (1.8.1). Would you like Otto to update vagrant for you?
Please enter 'yes' to continue. Any other value will exit.
Enter a value: yes
will@wdg-mbp ~
% rvm list !7119
rvm rubies
jruby-1.7.4 [ x86_64 ]
maglev-head [ x86_64 ]
rbx-2.0.0 [ broken ]
ruby-1.9.3-p194 [ x86_64 ]
ruby-1.9.3-p392 [ x86_64 ]
@hotgazpacho
hotgazpacho / gist:6855303
Last active December 24, 2015 20:08
Error installing Rubinius with rvm
will@wdg-mbp ~
% rvm install rbx !7104
zsh: correct 'rbx' to '.rbx' [nyae]? n
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/rbx-2.0.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Checking requirements for osx.
(eval):1: failed to compile regex: empty (sub)expression
(eval):1: failed to compile regex: empty (sub)expression
Move-Item : A positional parameter cannot be found that accepts argument 'c:\Dev\MyProject\Core\UserInterface\MyProject.Core.UserInterface.Tests\Views\When_binding_a_list_of_report_templates_to_the_view.should_bind_report_templates_to_the_view.approved.png'.
At line:1 char:1
using System;
using System.Collections.Generic;
using System.Data.Common;
using ApprovalTests.Persistence;
using ApprovalUtilities.Persistence.Database;
using QueryObjects;
using NHibernate;
using NHibernate.AdoNet.Util;
namespace Approvals
@hotgazpacho
hotgazpacho / gist:5467420
Created April 26, 2013 13:36
WTF, PowerShell?
C:\Users\will> Get-PoshCode 2493
Set-DownloadFlag : Cannot process argument transformation on parameter 'Zone'. Cannot convert the
"<System.Security.Policy.Zone version="1">
<Zone>Internet</Zone>
</System.Security.Policy.Zone>
" value of type "System.Security.Policy.Zone" to type "System.Security.SecurityZone".
At C:\Users\will\Documents\WindowsPowerShell\Modules\PoshCode\PoshCode.psm1:311 char:66
+ Get-WebFile "$($url)?dl=$id" | ConvertTo-Module | Set-DownloadFla ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Set-DownloadFlag], ParameterBindingArgumentTransformationException
@hotgazpacho
hotgazpacho / gist:5382905
Created April 14, 2013 14:21
rvm install maglev --trace
➜ ~ rvm install maglev --trace
maglev --trace
rvm 1.19.4 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
+__rvm_parse_args:681> [[ -n 5.0.2 ]]
+__rvm_parse_args:716> [[ -z install ]]
+__rvm_parse_args:719> [[ error == install || 0 -eq 1 || -n '' ]]
+__rvm_parse_args:16> [[ -n '' ]]
+__rvm_parse_args:724> : rvm_ruby_args:0::
@hotgazpacho
hotgazpacho / gist:5380116
Created April 13, 2013 21:17
rvm install maglev --debug
➜ ~ rvm install maglev --debug
grep: Desktop: Is a directory
grep: Development: Is a directory
grep: Documents: Is a directory
grep: Downloads: Is a directory
grep: Dropbox: Is a directory
grep: Library: Is a directory
grep: Movies: Is a directory
grep: Music: Is a directory
grep: Pictures: Is a directory