Skip to content

Instantly share code, notes, and snippets.

View ivanilves's full-sized avatar
🏋️‍♂️
Making Today Matter!

Ivan Ilves ivanilves

🏋️‍♂️
Making Today Matter!
View GitHub Profile
@ivanilves
ivanilves / save-sqs-queue.py
Created April 28, 2020 12:42 — forked from jric/save-sqs-queue.py
Saves all messages from an AWS SQS queue into a folder
'''
This version uses boto3 and python3.
'''
import argparse
import boto3
import json
import os
parser = argparse.ArgumentParser(description='Saves all messages from an AWS SQS queue into a folder.')

Hi all! 👋

Add optional deployment and service for DataDog.

Why do we need it?

Apart from DS, also (optionally) deploy DataDog agent pods (by-default one) and related service to:

NB!

@ivanilves
ivanilves / dump_fixtures.rake
Last active September 18, 2016 14:58
Dump fixtures from the current environment's database
#
# Usage:
# * rake db:fixtures:dump to dump all models.
# * rake db:fixtures:dump MODELS="user billing_account" to dump only User and BillingAccount models.
#
namespace :db do
namespace :fixtures do
def all_models
Ivan Ilves
Ivan Ilves1:19 pm Thu
OK Carlos Saura , grab a current teambox-tuppet develop branch, create a branch "git co -b feature/csaurus-wins" from puppet develop
then:
1) checkout frontend branch in the frontend submodule
2) checkout backend branch in the backend submodule
3) git add -p
4) git commit -m "My Puppet branch with super-features for Gaston to test"
5) git push origin feature/csaurus-wins (it will create a new branch in puppet with you backend and frontend *fixed* to it via submodules)
Carlos Saura
@ivanilves
ivanilves / gist:2b073a4057c7a4bd4f02
Created July 13, 2015 14:43
Castrated OnPremise Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
DEFAULTS = {
:ram => 5120,
:box => 'teambox-enterprise-test-box',
:box_url => "https://s3.amazonaws.com/teambox-enterprise/downloads/teambox-enterprise-test-box.box",
:cpus => 2,
:hostbox_fqdn => 'cortes.ivan'
}
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@ivanilves
ivanilves / Travis CI failures
Created March 3, 2015 06:40
Travis CI fails on 91ae8fee91d0f87ab0d0f999605ca4716b2179a5
Failures:
1) Teambox::IntelligenceCollector collecting data intelligence app is installed for organization collecting data passes all calls to intelligence engine
Failure/Error: expect(Intelligence::Collector).to(
(Intelligence::Collector).collect("some action", {:a=>1})
expected: 1 time with arguments: ("some action", {:a=>1})
received: 0 times
# ./spec/lib/teambox/intelligence_collector_spec.rb:25:in `block (5 levels) in <top (required)>'
2) Teambox::IntelligenceCollector collecting data intelligence app is installed for organization backfilling data iterates through all the projects calling backfilling
Failure/Error: expect(Intelligence::Backfiller).to(
(Intelligence::Backfiller).backfill(#<RSpec::Mocks::Double:0xc1b20e0 @name=nil>)