Skip to content

Instantly share code, notes, and snippets.

View matiasmasca's full-sized avatar
馃彔
Moving to Gitlab.com

Mat铆as Mascazzini matiasmasca

馃彔
Moving to Gitlab.com
View GitHub Profile
#Here's a selection of August's examples for some of the most common operations. Want to see all of the examples and follow any updates made to them? Check out August's net-http-cheat-sheet GitHub repo.
# http://github.com/augustl/net-http-cheat-sheet
# Standard HTTP Request
require "net/http"
require "uri"
uri = URI.parse("http://google.com/")
@matiasmasca
matiasmasca / MostrarImagenEsperaIframe.html
Last active November 3, 2015 23:34
Mostrar una imagen o un mensaje mientras carga un iFrame
<!-- JavaScript -->
<script type="text/javascript">
// <![CDATA[
function preloader(){
document.getElementById("preload").style.display = "none";
document.getElementById("iframe").style.display = "block";
}
//preloader
window.onload = preloader;
// ]]>
@matiasmasca
matiasmasca / gist:628fa724d700e17455e7
Created October 24, 2015 22:46
RVM Project Workflow - Ruby Project
# RVM Project Workflow
- Crear GemSet en RVM
$ rvm gemset create miGemsetApp
$ rvm gemset use miGemsetApp
$ rvm gemset use ruby-2.2.0@miGemsetApp
#Antes.
$ rvm --rvmrc ruby-2.2.0@miGemsetApp # Esto crea el archivo .rvmrc que necesita permisos de confianza para ejecutar lo que tenga adentro.
#Nuevo Workflow.
#############################################
# Generar clave SSH
ssh-keygen -t rsa -b 4096 -C "[email protected]"
M谩s info. en https://help.github.com/articles/generating-ssh-keys/
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
@matiasmasca
matiasmasca / WP de desarrollo a producci贸n
Last active September 28, 2024 14:35
Migrar sitio WordPress de Desarrollo a Producci贸n
-- Consulta para migrar la base de datos de WordPress de desarrollo a producci贸n. Cambiando el dominio actual de desarrollo por la direcci贸n final.
Gracias Sergio A. Moreyra.
OJO esto puede dejar afuera otras tablas creadas por pluggins y themes.
UPDATE wp_options
SET option_value = replace(option_value,'http://www.TuSitio.com/desarrollo', 'http://www.TuSitio.com')
WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts
@matiasmasca
matiasmasca / gist:11330311
Created April 26, 2014 20:33
Embeber Google Group en Pagina de WordPress
En WP 3.9
1. Crea un archivo .HTML, llamado lista_de_correos.html o como tu quieras, donde pones el contenido que te genera Google Groups para embeber un grupo en un sitio [consultar: https://support.google.com/groups/answer/1191206], en el caso de ComunidadTIC es (remplaza "comunidadit" por tu grupo).
El contenido del archivo es:
<iframe id="forum_embed"
src="javascript:void(0)"
scrolling="no"
frameborder="0"
width="900"