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
| global proc r_superXray() | |
| { | |
| string $select[] = `ls -sl`; | |
| int $sizes = `size$select`; | |
| if ($sizes >= 1) | |
| { | |
| string $mySel[] = `ls -sl -dag -s`; | |
| for ($s in $mySel) |
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
| // Ways to prevent SQL Injections in PHP (http://php.net/manual/en/security.database.sql-injection.php) | |
| 1. "Never connect to the database as a superuser or as the database owner. Use always customized users with very limited privileges." | |
| 2. "Check if the given input has the expected data type. PHP has a wide range of input validating functions, from the simplest ones found in Variable Functions and in Character Type Functions" (e.g. is_numeric(), ctype_digit() | |
| 3. "Quote each non numeric user supplied value that is passed to the database with the database-specific string escape function" (e.g. mysql_real_escape_string(), sqlite_escape_string(), etc.). "If a database-specific string escape mechanism is not available, the addslashes() and str_replace() functions may be useful (depending on database type)." | |
| <?php |
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
| # Make it use C-a, similar to screen.. | |
| # unbind C-b | |
| # unbind l | |
| # set -g prefix C-a | |
| # bind-key C-a last-window | |
| # Reload key | |
| bind r source-file ~/.tmux.conf | |
| unbind Right |
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
| color desert | |
| hi Cursorline cterm=bold | |
| set cursorline |
NewerOlder