Skip to content

Instantly share code, notes, and snippets.

View fabianoalmeida's full-sized avatar
🎯
Focusing

Fabiano Almeida fabianoalmeida

🎯
Focusing
  • São Paulo, Brazil
View GitHub Profile
@gazoakley
gazoakley / Jenkinsfile
Last active November 13, 2024 06:44
Jenkinsfile for running Terraform
pipeline {
agent any
parameters {
string(name: 'environment', defaultValue: 'default', description: 'Workspace/environment file to use for deployment')
string(name: 'version', defaultValue: '', description: 'Version variable to pass to Terraform')
booleanParam(name: 'autoApprove', defaultValue: false, description: 'Automatically run apply after generating plan?')
}
environment {
@vinioliveira
vinioliveira / formsService
Created July 8, 2013 13:42
Forms Service
class SignupSuccessForm
include ActiveModel::Model
attr_accessor :validation_token
attr_accessor :transaction_id
attr_reader :order
validates_presence_of :validation_token, :transaction_id
validate :order_must_exist
require "action_mailer"
require "qe"
class Mailer < ActionMailer::Base
def welcome(options)
@options = options
mail :to => options[:email]
end
end
@sergiolopes
sergiolopes / DownloadResults.java
Created September 12, 2011 00:45
Bastidores das análises dos Sites dos participantes do QCon SP
// "scriptizao" pra baixar os resultados depois de executados
public class DownloadResults {
public static void main(String[] args) throws FileNotFoundException {
Scanner results = new Scanner(new File("test-ids.txt"));
while (results.hasNextLine()) {
String[] result = results.nextLine().split("\\s+");
String testId = result[0];
String domain = result[1];
@vinioliveira
vinioliveira / install ubuntu 10.10
Last active September 26, 2015 05:48
Configuring the instalation of nginx+rvm+passenger on Ubuntu 10.10
#Add new user to deploy your application on Ubuntu 10.10
useradd -s /bin/bash -m app-user # add user
passwd app-user # change password
#in /usr/sbin/visudo Add line below just below 'root ALL=(ALL) ALL':
app-user ALL=(ALL) ALL
#change to user early created
su app-user
@vinioliveira
vinioliveira / proxy_configuration_apt-get.sh
Created March 25, 2011 18:35
Configuring proxy to debian distro linux environment.
sudo echo "
https_proxy='http://10.0.0.1:3128'
http_proxy='http://10.0.0.1:3128'
ftp_proxy='10.0.0.1:3128'
Acquire {
HTTP::Proxy 10.0.0.1:3128;
FTP::Proxy 10.0.0.1:3128;
};
@juliamae
juliamae / gist:753311
Created December 23, 2010 18:01 — forked from luke0x/gist:115795
Deploying a Rails 3 App with EC2 + S3 + Ubuntu + Capistrano + Passenger
Deploying a Rails 3 App with EC2 + S3 + Ubuntu + Capistrano + Passenger
=======================================================================
EC2 Setup
---------
1 Launch New ec2 instance - ami-1634de7f
2 Create elastic IP [ELASTIC_IP] and associate it with instance
3 go to domain registrar DNS settings, @ and www to ELASTIC_IP
4 set the `:host` in `config/deploy.rb` to ELASTIC_IP