Skip to content

Instantly share code, notes, and snippets.

View eduardopoleo's full-sized avatar

Eduardo Poleo eduardopoleo

View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#define MAX_DEPTH 100
int top = -1;
int stack[MAX_DEPTH];
char pop();
char pop() {
@eduardopoleo
eduardopoleo / redirect_is_good.rb
Created February 4, 2020 18:06
with proper redirect
Hello I'm testing this crap
@eduardopoleo
eduardopoleo / blog_app_test_local.rb
Created February 4, 2020 18:04
Is verything wired up
this is just content for a gist
@eduardopoleo
eduardopoleo / rails_101_test2.rb
Created February 4, 2020 17:38
My Rails 101 gist try 2
Hello all of you!
@eduardopoleo
eduardopoleo / rails_101_test.rb
Created January 30, 2020 18:35
My Rails 101 gist try 2
Hello all of you!
@eduardopoleo
eduardopoleo / rails_102_test.rb
Created January 30, 2020 18:33
My Rails 101 gist
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")
@eduardopoleo
eduardopoleo / rails_101_test.rb
Created January 30, 2020 17:45
My Rails 101 gist
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")
#!/usr/bin/env ruby
require 'net/http'
url = ARGV[0]
uri = URI(url)
users = ARGV[1].to_i
$requests = 0

This starts a series of posts about devops where we'll be leveraging AWS to solve some common situations that arise when running apps on the cloud. In this post we will go over a very simple set up: A web server hooked into a database for persistence. While very far from a real production situation this setup is a good starting place to learn about AWS fundamental tools. The concepts I'll be going over today include:

  • Amazon Regions
  • EC2 instance
  • AMI
  • Security Groups
  • SSH
  • Manual Dependencies installation

The Plan

def recommended_experiences(experiences_limit)
experiences = current_contact
.available_experiences
.includes(challenges: :attachments)
experience_payloads = []
experiences.find_each do |experience|
payload = experience_payload(experience)
empty = payload[:total_challenge_count].zero?