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
# Create the screen session | |
screen -dR some_screen_name | |
# Use ctrl+a, d to detatch the session from screen | |
# To view the screen session, use: | |
screen -ls | |
# To came back the screen session, use: | |
screen -r some_screen_name | |
# If you have only one screen session, you can use just: | |
screen -r |
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
/** | |
* Faça este programa imprimir 13 alterando APENAS o corpo da função "function" | |
* NÃO VALE ALTERAR NADA NA FUNÇÃO main | |
*/ | |
void function() { | |
printf("%d\n", 13); | |
exit(0); | |
} |
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 | |
require_once __DIR__.'/functions.php'; | |
$commands = array( | |
'hello' => array( | |
'params' => array('name') | |
), | |
'dump' => array( | |
'params' => array('var') | |
) |
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
/** | |
* Make this program to print 13 making changes ONLY the body of the "function" function | |
* You are NOT ALLOWED to change NOTHING in the "main" function | |
*/ | |
void function() { | |
/* EDIT ONLY HERE */ | |
} | |
int main() { |
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
This problem can be solved by pre-school children in | |
five to ten minutes, by programmers in a hour and by | |
people with higher education... well, check it yourself! | |
8809 = 6 5555 = 0 | |
7111 = 0 8193 = 3 | |
2172 = 0 8096 = 5 | |
6666 = 4 1012 = 1 | |
1111 = 0 7777 = 0 | |
3213 = 0 9999 = 4 |
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
cat /etc/redhat-release #will show you information for red hat based distros. | |
cat /etc/SuSE-release #for SUSE based distros. | |
cat /etc/mandrake-release #for mandrake distros. | |
cat /etc/debian_version #for debian based distros. | |
cat /etc/UnitedLinux-release #might also return some more information. |
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
<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"> |
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 var_dump snippet for NetBeans | |
echo '<pre>'; | |
die(var_dump(${VARIABLE variableFromPreviousAssignment default="$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
<?php | |
$mail = new Zend_Mail(); | |
$attach_view = new Zend_view(); | |
$attach_view->setScriptPath('/path/to/views/directory/'); | |
$attach_view->name = 'Lucas'; | |
$attach_view->lastName = 'Mezencio'; | |
$attachment = $attach_view->render('view.phtml'); |
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 | |
$config = array( | |
'ssl' => 'tls', | |
'port' => 587, | |
'auth' => 'login', | |
'username' => '[email protected]', | |
'password' => 'myPassword' | |
); | |
$transport = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config); |
OlderNewer