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
| <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$"> | |
| Header set Access-Control-Allow-Origin "https://Domain.Com" | |
| </FilesMatch> |
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
| # 6G FIREWALL/BLACKLIST | |
| # @ https://perishablepress.com/6g/ | |
| # 6G:[REQUEST METHOD] | |
| <IfModule mod_rewrite.c> | |
| RewriteCond %{REQUEST_METHOD} ^(connect|debug|move|put|trace|track) [NC] | |
| RewriteRule .* - [F] | |
| </IfModule> | |
| # 6G:[REFERRERS] |
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
| ' Highlight cells by Date: | |
| ' CellDate > TodayDate + 5d -> White | |
| ' CelDate + 5d => TodayDate >= CellDate -> Yellow | |
| ' TodayDate >= CellDate + 5d -> Red | |
| Sub ShowForm() | |
| Dim i As Integer | |
| N = Range("N" & 1).Column | |
| O = Range("O" & 1).Column |
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
| # Create a new repository on the command line | |
| touch README.md | |
| git init | |
| git add README.md | |
| git commit -m "first commit" | |
| git remote add origin https://github.com/c0ldlimit/vimcolors.git | |
| git push -u origin master | |
| # Push an existing repository from the command line |
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
| #1 | |
| git rm --cached `git ls-files -i --exclude-from=.gitignore` | |
| for windows: | |
| git ls-files -i --exclude-from=.gitignore | xargs git rm --cached | |
| #2 | |
| git rm -r --cached . |
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
| git remote add origin git+ssh://git@github.com/ivanhub/ |
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
| #reword first commit | |
| git rebase -i --root |
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
| git config --global credential.helper 'cache --timeout=3600' |
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
| file_put_contents("cities.tar.gz", fopen("http://ipgeobase.ru/files/db/Main/geo_files.tar.gz", 'r')); | |
| $p = new PharData('cities.tar.gz'); | |
| $p->decompress(); | |
| $phar = new PharData('cities.tar'); | |
| unlink('/home/r/rosakaderf/samarapb.ru/public_html/wp-content/themes/atahualpa/cities.txt'); | |
| unlink('/home/r/rosakaderf/samarapb.ru/public_html/wp-content/themes/atahualpa/cidr_optim.txt'); | |
| $phar->extractTo('/home/r/rosakaderf/samarapb.ru/public_html/wp-content/themes/atahualpa/'); | |
| $text = file_get_contents('/home/r/rosakaderf/samarapb.ru/public_html/wp-content/themes/atahualpa/cities.txt'); | |
| $text2 = iconv('WINDOWS-1251', 'UTF-8', $text); | |
| //$text3 = file_get_contents('/home/spb8hot/public_html/wp-content/themes/atahualpa/cidr_optim.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
| # | |
| # Save jsfiddle.net to one file. | |
| # | |
| view-source:http://fiddle.jshell.net/<fiddle_id>/show/light/ |