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
| $find = 'jquery-1\.4\.4' | |
| $replace = 'jquery-1\.5\.1' | |
| $match = '*.cshtml' , '*.vbhtml' | |
| $preview = $true | |
| foreach ($sc in dir -recurse -include $match | where { test-path $_.fullname -pathtype leaf} ) { | |
| select-string -path $sc -pattern $find | |
| if (!$preview) { | |
| (get-content $sc) | foreach-object { $_ -replace $find, $replace } | set-content $sc | |
| } |
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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
| <xsl:output method="text" encoding="utf-8"/> | |
| <xsl:template match="/node()"> | |
| <xsl:text>{</xsl:text> | |
| <xsl:apply-templates select="." mode="detect" /> | |
| <xsl:text>}</xsl:text> | |
| </xsl:template> |
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
| stat -f '%A %a %N' * |
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
| cd /your/local/path/to/tweet-search/ | |
| rm last-results.html | |
| search.py {query} | |
| open last-results.html |
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
| # Filename-based cache busting | |
| # taken from https://github.com/h5bp/html5-boilerplate/ | |
| # This rewrites file names of the form `name.123456.js` to `name.js` | |
| # so that the browser doesn't use the cached version when you have | |
| # updated (but not manually renamed) the file. | |
| <IfModule mod_rewrite.c> | |
| Options +FollowSymlinks | |
| RewriteEngine On |
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
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
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
| sudo nano /private/etc/hosts | |
| dscacheutil -flushcache |
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 | |
| // Add the filter and function to your functions.php file | |
| add_filter('body_class', 'add_slug_to_body_class'); | |
| function add_slug_to_body_class($classes) { | |
| global $post; | |
| if(is_page()) { | |
| $classes[] = sanitize_html_class($post->post_name); | |
| }; |
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 --force-html -r -l2 http://www.bjelic.net 2>&1 | grep '^--' | grep -v '\.\(txt\|ico\|css\|js\|png\|gif\|jpg\)$' > linklist.txt |
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 --no-cache --spider -r -l 2 http://localhost/gvsi/ -o scan.log |
OlderNewer