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 / fix-libv8-mac.txt
Created May 5, 2016
Fixing libv8 and therubyracer on Mac
View fix-libv8-mac.txt
brew tap homebrew/versions
brew install v8-315
gem install libv8 -v '' -- --with-system-v8
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315
bundle install
fernandoaleman / clone-git-repo.txt
Last active Jan 23, 2020
How to clone git repo with all branches and tags
View clone-git-repo.txt
# Clone repo
git clone --mirror app/.git
# Change into app directory
cd app
# Update git config
git config --unset core.bare
# Checkout master branch
fernandoaleman / gist:5083680
Last active Jan 20, 2020
How to update VirtualBox Guest Additions with vagrant
View gist:5083680
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
fernandoaleman /
Created Oct 2, 2018
Install mysql2 on MacOS Mojave


Installing mysql2 gem errors on MacOS Mojave.


Make sure openssl is installed on Mac via Homebrew.

brew install openssl
fernandoaleman / Linux Static IP
Created Mar 23, 2012
How To Configure Static IP On CentOS 6
View Linux Static IP
## Configure eth0
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
fernandoaleman /
Created Nov 18, 2011
How to sign your custom RPM package with GPG key
# How to sign your custom RPM package with GPG key
# Step: 1
# Generate gpg key pair (public key and private key)
# You will be prompted with a series of questions about encryption.
# Simply select the default values presented. You will also be asked
# to create a Real Name, Email Address and Comment (comment optional).
# If you get the following response:
View default.html
<!DOCTYPE html>
<meta charset="utf-8" />
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/stylesheets/bootstrap.css" rel="stylesheet" />
<style type="text/css">
body {
padding-top: 60px;
fernandoaleman /
Created Oct 3, 2011
How to install SSH Keys for authentication without password
# Create ssh private and public keys on your local machine
ssh-keygen -t rsa
# Set permissions on your private key
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
# Copy the public key to the server
scp ~/.ssh/
# How to create an RPM repository
# This is for Redhat 64 bit versions of Linux. You can create your own RPM repository # to host your custom RPM packages.
# See "How to create an RPM from source with spec file" for more information.
# Step: 1
# Install createrepo
fernandoaleman /
Created Nov 18, 2011
How to create an RPM from source with spec file
# How to create an RPM from source with spec file
# This is for Redhat versions of linux. Sometimes when you search for an rpm package,
# it is either outdated or not available. The only thing available is the source code.
# You can create a custom RPM package from source.
# For this example, I'll be using the latest version of Git, currently v.
# Step: 1
# Install rpmbuild
You can’t perform that action at this time.