⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
+ $config['base_dir'] = substr(FCPATH, 0, -12); | |
- $config['base_dir'] = 'C:/xampp/htdocs/site'; |
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 | |
//ENTER THE RELEVANT INFO BELOW | |
$mysqlDatabaseName ='corporat_ni'; | |
$mysqlUserName ='corporat_user'; | |
$mysqlPassword ='FCx313MY'; | |
$mysqlHostName ='localhost'; | |
$mysqlImportFilename ='mysqldump.sql'; | |
//DISPLAY MYSQL PASSWORD? (TRUE/FALSE) | |
$displayPassword = TRUE; |
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 | |
/** | |
* Generate an encryption key for CodeIgniter. | |
* http://codeigniter.com/user_guide/libraries/encryption.html | |
*/ | |
// http://www.itnewb.com/v/Generating-Session-IDs-and-Random-Passwords-with-PHP | |
function generate_token ($len = 32) | |
{ |
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 | |
/* | |
* Data encryption in PHP. | |
* | |
* This script is released into the public domain by Defuse Security. | |
* You may use it for any purpose whatsoever and redistribute it with or without | |
* modification. | |
* | |
* https://defuse.ca/secure-php-encryption.htm |
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 | |
## clear the output | |
#clear | |
echo "\n" | |
## auth the sudo command | |
sudo -p "Please enter you admin password: " whoami 1>/dev/null | |
if [ "$(sudo whoami)" != 'root' ]; then | |
echo "You entered an invalid password or you are not an admin/sudoer user!\n\nScript aborted" |
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 | |
$urls = array(); | |
$videos = array(); | |
// vimeo test | |
$urls[] = 'http://vimeo.com/6271487'; | |
$urls[] = 'http://vimeo.com/68546202'; | |
// youtube test |
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
<span> | |
Any and all links below should be now "linkified" | |
</span> | |
<p> | |
<a href="https://google.com">Google</a> <br> | |
<a href="https://bing.com">Bing</a> <br> | |
</p> |
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
GRANT ALL ON `USERNAME\_%`.* TO 'USERNAME'@'localhost' IDENTIFIED BY 'PASSWORD'; |
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
######################################## | |
### SOME SENSIBLE DEFAULTS BELOW ### | |
# https://github.com/github/gitignore # | |
######################################## |