Skip to content

Instantly share code, notes, and snippets.

Javier Aranda javierav

Block or report user

Report or block javierav

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

Vim Tips

search and replace


reset search results


remove endline blank spaces



Create a root CA certificate

To begin with, you need to generate the root CA key (this is what signs all issued certs):

openssl genrsa -out rootCA.key 2048

Generate the self-signed (with the key previously generated) root CA certificate:

javierav / Gemfile
Created Sep 13, 2014
compare two directories using a sha-256 hash digest
View Gemfile
source ''
gem 'sequel'
gem 'sqlite3'
#!/usr/bin/env bash
bundle exec rspec
set +e
# integration
if [ -e rerun.txt ]; then
rm -f rerun.txt
javierav /
Last active Aug 29, 2015
collection of useful NPM packages

Useful NPM packages


  • utils-merge: Merges the properties from a source object into a destination object.
  • wildcard: Apply a wildcard search in string, arrays or objects.
javierav / Assetfile.rb
Created Jan 6, 2013
Development with Rake Pipeline and Guard
View Assetfile.rb
# vim: filetype=ruby
require 'rake-pipeline-web-filters'
require 'rake-pipeline-i18n-filters'
class Minispade < Rake::Pipeline::Web::Filters::MinispadeFilter
def initialize(options = {})
@sourceURL = options[:source_url]
javierav / removedir.php
Created Apr 7, 2012
Script PHP para borrar de forma recursiva un directorio
View removedir.php
* this function removes a directory and its contents.
* use with careful, no undo!
function rmdir_recursive($dir) {
$files = scandir($dir);
array_shift($files); // remove '.' from array
array_shift($files); // remove '..' from array
javierav / mysql.php
Created Oct 31, 2010
Elimina tablas MySQL en base a un prefijo dado
View mysql.php
* Script que elimina de una base de datos todas las tablas que empiezan
* por el prefijo dado en $prefix
* Javier Aranda <internet at javierav dot com> - Aula de Software Libre
* Universidad de Córdoba
You can’t perform that action at this time.