https://es.wikipedia.org/wiki/Lista_de_entidades_de_ayuda_al_desarrollo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* D7 autologin. | |
* Exploits SA-CORE-2014-005 to change your anonymous session into an uid 1 session. | |
* In order to work, first you need to have an anonymous session in the sessions table. | |
* One way to achieve this is to go to the update.php page. | |
* | |
* Usage: php d7-autologin.php http://example.com 127.0.0.1 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The moon is a harsh mistress - Robert A. Heinlein - 5* | |
A canticle for Leibowitz - Walter M. Miller 4* | |
Flowers for Algernon - Daniel Keyes 5* | |
The Forever War - Joe Haldeman - 4* | |
The Stars my destination (also known as Tiger! Tiger!) - Alfred Bester - 5* | |
The Road - Cormac Mc Carthy - 4* | |
God is Dead - Ron Currie Jr. - 4* | |
The world without us - Alan Weisman (not really sci fi, but interesting, anyways) - 4* | |
Animal Farm - George Orwell - 5* | |
1984 - George Orwell - 5* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Class ServiceContainer { | |
public $services; | |
private $container; | |
public static function get($service) { | |
$container = ServiceContainer::getContainer(); | |
return $container->services[$service]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = system_retrieve_file($remote_file_url); | |
$node->field_image[$node->language][] = (array) $file; | |
node_save($node); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* | |
* This super small module adds a page that creates an order with a product | |
* and redirects to the payment platform. | |
* | |
* It can be used as sample or base for simple commerce workflows. It | |
* doesn't need to be a menu item, can be done in a form submit callback. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains Singleton. | |
*/ | |
/** | |
* Singleton that gets saved into a global variable. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/** | |
* This script receives two colors and the number of steps | |
* of the progress and returns the different color for each | |
* step. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PROJECT = $1 | |
tmux new-session -d -s $PROJECT | |
tmux new-window -t $PROJECT:1 -n 'Logs' ; | |
tmux split-window -h ; | |
tmux select-pane -L | |
tmux send-keys -t $PROJECT:1 'sudo tail -f /var/log/apache2/error.log' C-m |
NewerOlder