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
| add_action('woocommerce_product_tabs','tab_name'); | |
| add_action('woocommerce_product_tab_panels','tab_panel'); | |
| function tab_name() { | |
| echo '<li><a href="#tab-name">Tab Name</a></li>'; | |
| } | |
| function tab_panel() { | |
| echo '<div class="panel" id="tab-name">'; | |
| echo '<h2>This is a cool tab</h2>'; |
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
| add_action('woocommerce_before_single_product_summary','stuff_before_summary'); | |
| add_action('woocommerce_after_single_product_summary','stuff_after_summary'); | |
| function stuff_before_summary() { | |
| echo '<div class="class">'; | |
| } | |
| function stuff_after_summary() { | |
| echo '</div>'; | |
| } |
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
| [client] | |
| user = username | |
| password = password |
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
| // Both requests will ask your password, you know what to do. | |
| // First list all your github authorizations, you will see everything you've authorized what you need is the ID of the app named "WooNinja Panel" - then run the second command after entering the authorization ID | |
| curl https://api.github.com/authorizations -u YOURGITHUBUSERNAME | |
| curl --request PATCH -d '{"remove_scopes":["repo"]}' https://api.github.com/authorizations/THEIDOFTHEAUTHORIZATION -u YOURGITHUBUSERNAME |
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
| wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb | |
| dpkg -i puppetlabs-release-precise.deb | |
| apt-get update | |
| apt-get install puppet | |
| puppet resource service puppet ensure=running enable=true |
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
| class do-stuff { | |
| include apt | |
| include nginx | |
| exec { 'first update': | |
| command => '/usr/bin/apt-get update' | |
| } | |
| apt::ppa { 'ppa:chris-lea/node.js': | |
| require => Exec['first update'], |
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
| DELETE o FROM `wp_posts` o | |
| LEFT OUTER JOIN `wp_posts` r | |
| ON o.post_parent = r.ID | |
| WHERE r.id IS null AND o.post_type = 'product_variation' |
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
| [imagerow images="http://pmgarman.me/wp-content/uploads/2013/08/DSCN1989-1024x768.jpg"] | |
| [imagerow images="http://pmgarman.me/wp-content/uploads/2013/08/DSCN2052-1024x768.jpg,http://pmgarman.me/wp-content/uploads/2013/08/DSCN2018-1024x768.jpg,http://pmgarman.me/wp-content/uploads/2013/08/DSCN2041-1024x768.jpg"] | |
| [imagerow images="http://pmgarman.me/wp-content/uploads/2013/08/DSCN2022-1024x768.jpg,http://pmgarman.me/wp-content/uploads/2013/08/DSCN1874-1024x768.jpg"] |
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
| server { | |
| listen 80; | |
| listen 443 ssl; | |
| server_name dev.pmgarman.me; | |
| root /home/pmgarman/dev.pmgarman.me; | |
| ssl_certificate /home/pmgarman/ssl/dev.pmgarman.me/dev_pmgarman_me.selfsigned.crt; | |
| ssl_certificate_key /home/pmgarman/ssl/dev.pmgarman.me/dev_pmgarman_me.key; | |
| location / { | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header Host $http_host; |
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
| # Apache .htaccess | |
| RedirectMatch 301 ^/wp-content/uploads/(.*) http://livewebsite.com/wp-content/uploads/$1 | |
| # Nginx | |
| location ~ ^/wp-content/uploads/(.*) { | |
| rewrite ^/wp-content/uploads/(.*)$ http://livewebsite.com/wp-content/uploads/$1 redirect; | |
| } |
OlderNewer