Skip to content

Instantly share code, notes, and snippets.

View Astr0surf3r's full-sized avatar

Salvatore Maria Italiano Astr0surf3r

View GitHub Profile
@Astr0surf3r
Astr0surf3r / error.on.debian
Created September 28, 2011 21:58
Error to install rails on DEBIAN 6.0 machine
#after I type the follow command
root@debian:/# !g rvm install
#appear that
gem install rails -v=3.0.10 rvm install
Successfully installed rails-3.0.10
ERROR: Could not find a valid gem 'rvm' (= 3.0.10) in any repository
ERROR: Possible alternatives: rvm
ERROR: Could not find a valid gem 'install' (= 3.0.10) in any repository
1 gem installed
Installing ri documentation for rails-3.0.10...
@Astr0surf3r
Astr0surf3r / diaspora.yml
Created March 27, 2013 16:36
my email diaspora.yml snippet for my Diaspora* POD - on my server I use 'Postfix'
## Setup E-Mail
mail: ## Section
## First you need to enable it ;)
enable: true
## Sender address used in mail send by Diaspora
sender_address: 'sal@qaligo.com'
## This selects which mailer should be used. Take 'smtp' for a smtp
@Astr0surf3r
Astr0surf3r / diaspora.yml.mail
Created April 8, 2013 20:41
diaspora.yml mail section
## This should match the common name of the certificate
## the SMTP server sends. If he sends one.
host: 'smtpout.secureserver.net'
port: 465
## Authentication required to send mail. Use one of 'plain',
## 'login' or 'cram_md5'. Use 'none' if server does not support
## authentication
authentication: 'plain'
@Astr0surf3r
Astr0surf3r / tb3
Created April 30, 2015 19:00
snippet I want to add a refinerycms page
<div class="container">
<div class="row">
<div class="col-md-4">
<!-- begin panel group -->
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<!-- panel 1 -->
<div class="panel panel-default">
<!--wrap panel heading in span to trigger image change as well as collapse -->
<span class="side-tab" data-target="#tab1" data-toggle="tab" role="tab" aria-expanded="false">
@Astr0surf3r
Astr0surf3r / gist:d0d6b116d065670f779d
Last active August 29, 2015 14:20
this is what refinerycms save after I save this snippet https://gist.github.com/Astr0surf3r/e3bdda79dcd62bc17d0a
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<span class="side-tab" data-target="#tab1" data-toggle="tab">
@Astr0surf3r
Astr0surf3r / digital_ocean_setup.md
Last active November 24, 2015 06:01 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

SSH into Root

$ ssh root@123.123.123.123

Change Root Password

@Astr0surf3r
Astr0surf3r / Gemfile
Created July 3, 2024 02:02
easybroker API - creo una clase y un archivo de prueba en ruby para test de la clase
source 'https://rubygems.org'
gem 'uri'
gem 'json'
gem 'rspec'
gem 'webmock'