Skip to content

Instantly share code, notes, and snippets.

View marioy47's full-sized avatar

Mario Yepes marioy47

View GitHub Profile

Keybase proof

I hereby claim:

  • I am marioy47 on github.
  • I am marioyepes (https://keybase.io/marioyepes) on keybase.
  • I have a public key ASBiddd_dTsR6Hq5SnMu7ijUDF80tK2AWwf8cazqyEhAswo

To claim this, I am signing this object:

@marioy47
marioy47 / mysqldump-all-dbs.sh
Created May 12, 2019 02:50
Script to backup all databases from a MySQL server, except from mysql and *_shcemas, in one single file.
#!/bin/bash
# Script to dump all databases from a MySQL server
if [ "$2" -eq "" ]; then
echo "Usage: $0 <mysql_root_user> <mysql_root_pass>"
exit
fi
@marioy47
marioy47 / install-nextcloud.sh
Created October 22, 2017 03:48
Instalar NextCloud desde la línea de comandos
#!/bin/bash
# Script para la instalacin de NextCloud (https://nextcloud.com) usand el script de mantenimiento
# Con el aliciente que el directorio de datos estará por fuera de los archivos de ejecucin de
# NextCloud. De esta manera es mucho mas facil hacer backups en servicios como AWS Glacier
INSTDIR=/var/www/dazzet_cloud
DATADIR=/var/www/dazzet_clouddata
CLOUDUSER=admin
{# Enlace de confirmación original #}
{{ confirmation_link }}
{# Enlace de confirmación con nuevo texto #}
{{ confirmation_link | replace_inner_html: “Llévame al sitio.” }}
@marioy47
marioy47 / Vagrantfile
Last active August 29, 2015 13:57 — forked from JeffreyWay/install.sh
Aprovisionamiento de una imagen de Ubuntu 12.04 de Vagrant con MySQL, PHP5.5, Node.js 0.10 y Xdebug.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.33"
@marioy47
marioy47 / makeapp.sh
Last active August 29, 2015 13:56 — forked from demonbane/makeapp.sh
Crea una aplicación de Mac desde una aplicación Web al estilo de http://fluidapp.com pero usando Chrome como motor
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
@marioy47
marioy47 / .gitconfig
Last active August 29, 2015 13:55
Configuración inicial de .gitconfig pero con mejoras a la visualización de **git status**, **git log**, etc
[user]
name = Mario Andrés Yepes C
email = marioy47@gmail.com
[color]
branch = auto
diff = auto
interactive = auto
pager = true
status = auto
ui = true
@marioy47
marioy47 / html5.xml
Created April 25, 2013 02:51 — forked from lucasmezencio/gist:2788630
SublimeSnippet:Creación de un archivo de HTML muy básico
<snippet>
<content><![CDATA[
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">