Skip to content

Instantly share code, notes, and snippets.

View karlosgliberal's full-sized avatar

karlos g liberal karlosgliberal

View GitHub Profile
#wget para hacer cron con user agent definido
wget --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" http://devinvestic.com/cron.php > /dev/null 2>&1
select channel.title, channel.link, channel.item.title, channel.item.link, channel.item.description, channel.item.guid
from xml where url in( 'http://karlosgliberal.investic.net/blog/feed', 'http://miren.investic.net/blog/feed') and channel.item.title like "%post%"
// sacado de este snipsets y cambiado las
//rutas de osc para que pille
//el programa andorid osc.
import processing.opengl.*;
import oscP5.*;
OscP5 oscP5;
float xrot = 0;
float zrot = 0;
<?php
//tiene mas peligro que una escopeta de feria pero yo que se por guardarlo todo como las urracas
global $user;
$type = 'garden';
$node = array('uid' => $user->uid, 'name' => $user->name,
'type' => $type);
module_load_include('inc', 'node', 'node.pages');
$form = drupal_get_form($type .'_node_form', $node);