Skip to content

Instantly share code, notes, and snippets.

import json
import os
import webbrowser
from configparser import ConfigParser
from datetime import datetime, timedelta, timezone
from pathlib import Path
import boto3
import dateutil
from botocore import UNSIGNED

Keybase proof

I hereby claim:

  • I am jcalvento on github.
  • I am jcalvento (https://keybase.io/jcalvento) on keybase.
  • I have a public key ASBfernOjnH7nE26keWbCkNlN8uYD9i9bxuynFN2gSNkVQo

To claim this, I am signing this object:

Shoulda matchers Provide one liner solutions for testing common functinoalities (like rails validations, AR relations and controller behaviors)

Example

Without matchers

it 'validates presence of name attribute' do
  subject.name = nil
 
@jcalvento
jcalvento / slack_bulk_delete.rb
Last active May 8, 2020 18:25
Slack bulk delete
# Generar legacy token: https://api.slack.com/custom-integrations/legacy-tokens (Team => Create token)
require 'net/http'
require 'json'
require 'uri'
@token = '' # Poner el token generado
def list_files
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago