Skip to content

Instantly share code, notes, and snippets.

Fernando Aleman fernandoaleman

  • Dallas, TX
Block or report user

Report or block fernandoaleman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fernandoaleman
fernandoaleman / rbenv-1.8.7-openssl.patch
Created Jun 5, 2014
Patch to solve error when installing ruby 1.8.7 with rbenv or ruby_build and openssl 1.0.1x
View rbenv-1.8.7-openssl.patch
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSl_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+#endif
View how-to-resize-amazon-ebs-drive
# Check the name of the volume
fdisk -l
# Should look like this:
# Disk /dev/xvde: 214.7 GB, 214748364800 bytes
# Resize the volume
resize2fs /dev/xvde
@fernandoaleman
fernandoaleman / getversion
Created Oct 16, 2011
Show Mac OS Version
View getversion
#!/usr/bin/ruby
module Tty extend self
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
def reset; escape 0; end
def bold n; escape "1;#{n}" end
def underline n; escape "4;#{n}" end
def escape n; "\033[#{n}m" if STDOUT.tty? end
@fernandoaleman
fernandoaleman / Gemfile
Created May 8, 2012 — forked from simi/Gemfile
Refinery + Twitter Bootstrap WIP
View Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
View how-to-install-vsftpd-on-centos.txt
Installing vsftpd on CentOS
yum install vsftpd
How to configure vsftpd:
Now that you’ve installed vsftpd, follow this procedure to configure it. These steps applies for both the linux variants.
Before you get started, stop the vsftpd by typing:
@fernandoaleman
fernandoaleman / gist:4551494
Created Jan 16, 2013
How to recursively delete Amazon S3 zero byte files from buckets
View gist:4551494
s3cmd ls --recursive s3://BUCKET_NAME | ruby -rdate -ne 'date, time, size, uri = $_.split; puts uri if size == "0"' | xargs s3cmd del
View dnsmasq.md

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.

Requirements

Install

View sed-commands.sh
# Command to replace php memory limit in php.ini with env var
sed -i "s|;*memory_limit =.*|memory_limit = ${PHP_MEMORY_LIMIT}|i" /etc/php5/php.ini
@fernandoaleman
fernandoaleman / rbenv-openssl.patch
Created Jun 17, 2014
Patch to solve error when installing ruby 1.8.7 or 1.9.2 with rbenv or ruby_build and openssl 1.0.1x
View rbenv-openssl.patch
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSl_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+#endif
@fernandoaleman
fernandoaleman / homebrew-elasticsearch-1.0.2.rb
Created Jul 21, 2017
Homebrew Elasticsearch 1.0.2 Formula
View homebrew-elasticsearch-1.0.2.rb
require 'formula'
class Elasticsearch < Formula
homepage 'http://www.elasticsearch.org'
url 'https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.2.tar.gz'
sha256 '2fc2cd05e5f301ba972c9bf90232b70592568990f526f2634b3a768c4615ad70'
head do
url 'https://github.com/elasticsearch/elasticsearch.git'
depends_on 'maven'
You can’t perform that action at this time.