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
| { | |
| "basics": { | |
| "name": "Carmelo Santana", | |
| "label": "Senior Staff Engineer", | |
| "image": "", | |
| "email": "resume@carmelosantana.com", | |
| "phone": "+1 (201) 338-0755", | |
| "url": "https://carmelosantana.com", | |
| "summary": "Experienced WordPress leader with a passion for wellness and personal growth. I excel at designing and implementing custom WordPress solutions that streamline digital workflows, optimize site performance, and ensure seamless user experiences.", | |
| "location": { |
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 | |
| // Rather than making many calls to grab data, especially related data, you can grab it in one hop. | |
| // https://scotty-t.com/2012/06/05/memcached-redux/ | |
| wp_cache_get_multi( array( | |
| array( 'key', 'group' ), | |
| array( 'key', '' ), | |
| array( 'key', 'group' ), | |
| 'key' | |
| ) ); |
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 | |
| define('DB_HOST', '127.0.0.1'); | |
| define('DB_USER', 'root'); | |
| define('DB_PASS', 'password'); | |
| define('DB_NAME', 'school'); | |
| class CustomDatabase | |
| { | |
| private $db; |
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 | |
| # install-webmin v0.1.3 | |
| echo "Install webmin?" | |
| echo -n "Press y|Y for Yes, any other key for No: " | |
| if echo "$answer" | grep -iq "^y" ;then | |
| exit 1 | |
| fi | |
| wget -O - http://www.webmin.com/jcameron-key.asc | sudo apt-key add - | |
| echo "deb http://download.webmin.com/download/repository sarge contrib" | sudo tee -a /etc/apt/sources.list | |
| echo "deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" | sudo tee -a /etc/apt/sources.list |
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
| zip -r PLUGIN.zip PLUGIN -x *.DS_Store -x *.svn* -x *.git* |
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
| wc -l `find . -iname "*.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
| git pull | |
| bundle install | |
| // if error | |
| git checkout ./ | |
| // will rake DB thats set (default = developer) | |
| bundle exec rake db:migrate | |
| // if you run jammit |