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
    
  
  
    
  | DEPLOY_FOLDER_DATE=$(date '+%Y%m%d%H%M%S') | |
| WEBSITE_FOLDER="app.metricswave.com" | |
| GIT_REPO="[email protected]:MetricsWave/app.git" | |
| METRICS_WAVE_EVENT="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX" | |
| echo 'Create new deploy folder…' | |
| echo "Folder: /home/forge/${WEBSITE_FOLDER}_deployments/${DEPLOY_FOLDER_DATE}" | |
| mkdir -p /home/forge/app.metricswave.com_deployments/$DEPLOY_FOLDER_DATE | |
| echo 'Bulding app in deployment folder…' | 
  
    
      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
    
  
  
    
  | pm.test("Equals response", function () { | |
| const expectedJson = {}; | |
| const response = JSON.stringify(expectedJson); | |
| try { | |
| const data = pm.response.json(); | |
| pm.expect(JSON.stringify(data)).to.eql(response); | |
| } catch(e) { | |
| const data = pm.response.text(); | |
| pm.expect(data).to.eql(response); | 
  
    
      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
    
  
  
    
  | SET @newdomain:='http://nuevadominio.com'; | |
| SET @olddomain:='http://localhost:8888/old'; | |
| UPDATE wp_options | |
| SET option_value = @newdomain | |
| WHERE option_name IN ('siteurl','home'); | |
| UPDATE wp_posts | |
| SET post_content = replace(post_content,@olddomain,@newdomain); | |
| UPDATE wp_posts | |
| SET guid = replace(guid,@olddomain,@newdomain); | 
  
    
      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 | |
| /** | |
| * Users with role | |
| * | |
| * @param $role mixed The name or rid of the role we're wanting users to have | |
| * @param $active_user boolean Only return active accounts? | |
| * | |
| * @return array An array of user objects with the role | |
| */ | |
| function users_with_role($role, $active_user = 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
    
  
  
    
  | <?php | |
| // Hook into WordPress | |
| add_action( 'admin_init', 'add_custom_metabox' ); | |
| add_action( 'save_post', 'save_custom_url' ); | |
| /** | |
| * Add meta box | |
| */ | |
| function add_custom_metabox() { | 
  
    
      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 | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
| * Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
| */ | |
| $args = array( | 
  
    
      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 | |
| echo substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ0123456789') , 0 , 10 ); | |
| ?> | 
  
    
      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 | |
| query_posts('showposts=1'); | |
| // set $more to 0 in order to only get the first part of the post | |
| global $more; | |
| $more = 0; | |
| // the Loop | |
| while (have_posts()) : the_post(); ?> | |
| <h4><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'toolbox' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4> | 
  
    
      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
    
  
  
    
  | jQuery(document).ready(function($){ | |
| $('[placeholder]').focus(function() { | |
| var input = $(this); | |
| if (input.val() == input.attr('placeholder')) { | |
| input.val(''); | |
| input.removeClass('placeholder'); | |
| } | |
| }).blur(function() { | |
| var input = $(this); | |
| if (input.val() == '' || input.val() == input.attr('placeholder')) { | 
  
    
      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
    
  
  
    
  | [ | |
| { "keys": ["super+º"], "command": "sort_lines", "args": {"case_sensitive": false} }, | |
| { "keys": ["alt+super+º"], "command": "sort_lines", "args": {"case_sensitive": true} }, | |
| // Set Layout | |
| { | |
| "keys": ["super+alt+1"], | |
| "command": "set_layout", | |
| "args": | |
| { | 
NewerOlder