<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sat, 13 Jun 2026 16:16:02 +0000</lastBuildDate>
    <item>
      <title>(Windows PowerShell) Setup one timeout value for downloadstring method of WebClient Class  in PowerShell - jatubio</title>
      <link>https://snipplr.com/view/91280/setup-one-timeout-value-for-downloadstring-method-of-webclient-class--in-powershell</link>
      <description>&lt;p&gt;Setup one timeout value for downloadstring method of WebClient Class in PowerShell   &#13;
&#13;
Property Timeout of WebClient isn't public, but we can inhertis from him and change this property in the new class  &#13;
&#13;
Inspired by: One article on What Was I Thinking? (http://goo.gl/IQQazD)  &#13;
Thanks also to Stefan GoÃŸner (http://goo.gl/T6RZJC)  &#13;
&#13;
run sample: powershell.exe -executionpolicy bypass .\DownloadString.ps1 100 "http://www.google.es"  &#13;
run sample: powershell.exe -executionpolicy bypass .\DownloadString.ps1 -url "www.google.es" -timeout -1&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2015 03:16:30 UTC</pubDate>
      <guid>https://snipplr.com/view/91280/setup-one-timeout-value-for-downloadstring-method-of-webclient-class--in-powershell</guid>
    </item>
    <item>
      <title>(Windows PowerShell) Sample of declare a simple powershell class with a constructor and a simple method - jatubio</title>
      <link>https://snipplr.com/view/91279/sample-of-declare-a-simple-powershell-class-with-a-constructor-and-a-simple-method</link>
      <description>&lt;p&gt;Sample of declare a simple powershell class with a constructor and a simple method&#13;
Show also how to echo strings on console&#13;
Thanks to http://www.peterhenell.se/&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2015 02:55:58 UTC</pubDate>
      <guid>https://snipplr.com/view/91279/sample-of-declare-a-simple-powershell-class-with-a-constructor-and-a-simple-method</guid>
    </item>
    <item>
      <title>(Windows PowerShell) Sample of declare a simple powershell class with a constructor (Another sample) - jatubio</title>
      <link>https://snipplr.com/view/91278/sample-of-declare-a-simple-powershell-class-with-a-constructor-another-sample</link>
      <description>&lt;p&gt;Sample of declare a simple powershell class with a constructor&#13;
Thanks to http://www.peterhenell.se/&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2015 02:53:47 UTC</pubDate>
      <guid>https://snipplr.com/view/91278/sample-of-declare-a-simple-powershell-class-with-a-constructor-another-sample</guid>
    </item>
    <item>
      <title>(Windows PowerShell) Sample of declare a simple powershell class with a constructor - jatubio</title>
      <link>https://snipplr.com/view/91277/sample-of-declare-a-simple-powershell-class-with-a-constructor</link>
      <description>&lt;p&gt;Sample of declare a simple powershell class with a constructor&#13;
thanks to Tome Tanasovski (http://powertoe.wordpress.com)&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2015 02:33:25 UTC</pubDate>
      <guid>https://snipplr.com/view/91277/sample-of-declare-a-simple-powershell-class-with-a-constructor</guid>
    </item>
    <item>
      <title>(Windows PowerShell) Sample of declare a simple powershell class sample - jatubio</title>
      <link>https://snipplr.com/view/91275/sample-of-declare-a-simple-powershell-class-sample</link>
      <description>&lt;p&gt;Sample of declare a simple powershell class sample&#13;
thanks to Tome Tanasovski (http://powertoe.wordpress.com)&lt;/p&gt;</description>
      <pubDate>Mon, 23 Feb 2015 02:31:58 UTC</pubDate>
      <guid>https://snipplr.com/view/91275/sample-of-declare-a-simple-powershell-class-sample</guid>
    </item>
    <item>
      <title>(Windows PowerShell) Run a powershell script regardless of the local political system - jatubio</title>
      <link>https://snipplr.com/view/91273/run-a-powershell-script-regardless-of-the-local-political-system</link>
      <description>&lt;p&gt;If you get "File script.ps1 cannot be loaded because the execution of scripts is disabled on this system" error on running a powershell script, you can run with the line below..&#13;
&#13;
Or, you can also run powershell with admin rights and run this command:&#13;
set-executionpolicy remotesigned&lt;/p&gt;</description>
      <pubDate>Sun, 22 Feb 2015 23:07:43 UTC</pubDate>
      <guid>https://snipplr.com/view/91273/run-a-powershell-script-regardless-of-the-local-political-system</guid>
    </item>
    <item>
      <title>(PHP) Search and returns the first results on a regex search - jatubio</title>
      <link>https://snipplr.com/view/91093/search-and-returns-the-first-results-on-a-regex-search</link>
      <description>&lt;p&gt;Search and returns the first results on a regex search&#13;
If we use parenthesized or subpattern, can return with $result_number&lt;/p&gt;</description>
      <pubDate>Sat, 21 Feb 2015 11:34:51 UTC</pubDate>
      <guid>https://snipplr.com/view/91093/search-and-returns-the-first-results-on-a-regex-search</guid>
    </item>
    <item>
      <title>(PHP) Create a regex expression with operator 'AND' - jatubio</title>
      <link>https://snipplr.com/view/91092/create-a-regex-expression-with-operator-and</link>
      <description>&lt;p&gt;Build a regex expression to all array elements are present in any order.&#13;
Gets an array of strings (Sample: array("Access Denied","error","could not be retrieved")&#13;
Return sample: '(?=.*Access Denied)(?=.*error)(?=.*could not be retrieved)&lt;/p&gt;</description>
      <pubDate>Sat, 21 Feb 2015 09:49:24 UTC</pubDate>
      <guid>https://snipplr.com/view/91092/create-a-regex-expression-with-operator-and</guid>
    </item>
    <item>
      <title>(PHP) // Search multiple spaces with regex expressions - jatubio</title>
      <link>https://snipplr.com/view/91051/-search-multiple-spaces-with-regex-expressions</link>
      <description>&lt;p&gt;Replaces spaces by '\s+' which means one or more spaces&#13;
$string can be one string or one array of strings&lt;/p&gt;</description>
      <pubDate>Sat, 21 Feb 2015 07:35:20 UTC</pubDate>
      <guid>https://snipplr.com/view/91051/-search-multiple-spaces-with-regex-expressions</guid>
    </item>
    <item>
      <title>(PHP) Remove File Extension from Path - jatubio</title>
      <link>https://snipplr.com/view/48023/remove-file-extension-from-path</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 28 Jan 2011 01:19:51 UTC</pubDate>
      <guid>https://snipplr.com/view/48023/remove-file-extension-from-path</guid>
    </item>
    <item>
      <title>(PHP) Get File Extension From Path - jatubio</title>
      <link>https://snipplr.com/view/48022/get-file-extension-from-path</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 28 Jan 2011 01:18:48 UTC</pubDate>
      <guid>https://snipplr.com/view/48022/get-file-extension-from-path</guid>
    </item>
    <item>
      <title>(PHP) Check if a string it's json encoded using regular expressions - jatubio</title>
      <link>https://snipplr.com/view/47562/check-if-a-string-its-json-encoded-using-regular-expressions</link>
      <description>&lt;p&gt;Check if a string it's json encoded using regular expressions&#13;
&#13;
Thanks to Jens Anders Bakke for his mootools code published in webfreak.no&#13;
&#13;
http://webfreak.no/wp/2007/09/07/jsontest-for-mootools/&lt;/p&gt;</description>
      <pubDate>Thu, 20 Jan 2011 05:20:02 UTC</pubDate>
      <guid>https://snipplr.com/view/47562/check-if-a-string-its-json-encoded-using-regular-expressions</guid>
    </item>
    <item>
      <title>(MySQL) Add Column Table if not exists - jatubio</title>
      <link>https://snipplr.com/view/47518/add-column-table-if-not-exists</link>
      <description>&lt;p&gt;Can add columns to a table checking before if there&lt;/p&gt;</description>
      <pubDate>Wed, 19 Jan 2011 22:13:07 UTC</pubDate>
      <guid>https://snipplr.com/view/47518/add-column-table-if-not-exists</guid>
    </item>
  </channel>
</rss>
