This file contains hidden or 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 | |
function my_node_save(&$node) { | |
// Let modules modify the node before it is saved to the database. | |
node_invoke_nodeapi($node, 'presave'); | |
global $user; | |
// ALEAGI -- Comentei aqui! | |
//$node->is_new = FALSE; |
This file contains hidden or 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
"""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Configurações Gerais | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"Modo de compatibilidade | |
set nocompatible | |
"Historico de comandos do vim | |
set history=400 | |
"Ativar filetype plugin |
This file contains hidden or 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
CREATE TABLE "auth_group" ( | |
"id" integer NOT NULL PRIMARY KEY, | |
"name" varchar(80) NOT NULL UNIQUE | |
); | |
CREATE TABLE "auth_group_permissions" ( | |
"id" integer NOT NULL PRIMARY KEY, | |
"group_id" integer NOT NULL REFERENCES "auth_group" ("id"), | |
"permission_id" integer NOT NULL REFERENCES "auth_permission" ("id"), | |
UNIQUE ("group_id", "permission_id") | |
); |
This file contains hidden or 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 | |
echo "Deploying git PHP repository" | |
CURR=`pwd` | |
cd /web/pedro/eusouopedro.com/icards | |
env -i git pull origin php | |
cd $CURR |
This file contains hidden or 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 | |
//... | |
$db_prefix = array( | |
'default' => '', | |
'authmap' => 'databasedosusuarios.', | |
'sessions' => 'databasedosusuarios.', | |
'users' => 'databasedosusuarios.', | |
); |
This file contains hidden or 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
POST: /game/create | |
===================================================== | |
DATA: {"type":"PIFPAF"} | |
===================================================== | |
{"game_id":"ce01f40b7bfc73607c8d54dbe6069ea7","id":"1","status":true} | |
POST: /game/addplayer/ce01f40b7bfc73607c8d54dbe6069ea7 | |
===================================================== | |
DATA: {"site_id":123,"name":"Pedro Faria"} | |
===================================================== |
This file contains hidden or 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
17:55 <plimaromero> olha a hora heim... | |
17:55 <plimaromero> mgdm mmm | |
17:56 <pedrofaria> mgdm mmm ? | |
17:56 >>> plimaromero is away: Do not Disturb (Cuidando do Dani :)) | |
17:56 <pedrofaria> daniel? | |
17:56 <pedrofaria> eh vc? | |
17:56 <pedrofaria> fala com o papai | |
17:56 <plimaromero> c bvcnbum | |
17:56 <plimaromero> é | |
17:56 <pedrofaria> auihauiahiuahuiahuiahuiaa |
OlderNewer