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
| # Source: https://stackoverflow.com/a/43317244 | |
| $path = ".\aws-ec2-key.pem" | |
| # Reset to remove explict permissions | |
| icacls.exe $path /reset | |
| # Give current user explicit read-permission | |
| icacls.exe $path /GRANT:R "$($env:USERNAME):(R)" | |
| # Disable inheritance and remove inherited permissions | |
| icacls.exe $path /inheritance:r |
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
| { | |
| "ns1:collectResponse": { | |
| "collectResult": { | |
| "requestId": { | |
| "@xsi:nil": "true" | |
| }, | |
| "status": { | |
| "status": "FAILED", | |
| "reason": "0", | |
| "message": "No se ha proporcionado nombre de navegador", |
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
| <env:Envelope | |
| xmlns:env="http://www.w3.org/2003/05/soap-envelope" | |
| xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" | |
| xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:p2p="http://placetopay.com/soap/redirect/"> | |
| <env:Header> | |
| <wsse:Security env:mustUnderstand="true"> | |
| <wsse:UsernameToken> | |
| <wsse:Username>6dd490faf9cb87a9862245da41170ff2</wsse:Username> |
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 | |
| ini_set('soap.wsdl_cache_enabled', 0); | |
| ini_set('soap.wsdl_cache_ttl', 900); | |
| ini_set('default_socket_timeout', 15); | |
| $params = array( | |
| 'passport' => '', | |
| '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
| //Dar permisos a la carpeta npm para ejecutar como admin | |
| npm install | |
| node .\bin\modernizr -c .\lib\config-all.json |
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 | |
| //https://codex.wordpress.org/Plugin_API/Action_Reference/wp_ajax_(action) | |
| /*The wp_ajax_ hook only fires for logged-in users. | |
| If you need to also listen for Ajax requests that don't come from logged-in users, | |
| you need to use wp_ajax_nopriv_, like this: add_action( 'wp_ajax_nopriv_add_foobar', 'prefix_ajax_add_foobar' );. | |
| */ | |
| add_action( 'wp_ajax_add_foobar', 'prefix_ajax_add_foobar' ); | |
| add_action( 'wp_ajax_nopriv_add_foobar', 'prefix_ajax_add_foobar' ); |
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
| string name = "System.Windows.Forms" + "." + "Label"; | |
| var textBoxType = typeof(Control).Assembly.GetType(name, true); | |
| var textBox = Activator.CreateInstance(textBoxType); |
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 | |
| $posts = get_posts(array( | |
| 'numberposts' => 12, | |
| 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1), | |
| 'post_type' => 'product', | |
| 'meta_key' => 'brand', | |
| 'orderby' => 'meta_value', | |
| 'order' => 'ASC', | |
| )); |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |