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
| if($_SERVER['REMOTE_ADDR'] == '37.209.17.41'){ | |
| var_dump($var); | |
| exit; | |
| } |
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
| /* | |
| @param : fn => the function to convert | |
| @param : time => the time delay for debounce | |
| */ | |
| function debounce(fn, delay) { | |
| let timer = null | |
| return (...args) => { | |
| if (timer) clearTimeout(timer) | |
| timer = setTimeout(() => fn(...args), delay) |
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
| # run with | |
| # `scrapy runspider crawl-site.py` | |
| import scrapy | |
| from scrapy.spiders import CrawlSpider, Rule | |
| from scrapy.linkextractors import LinkExtractor | |
| class MySpider(CrawlSpider): | |
| name = 'domain.com' | |
| allowed_domains = ['domain.com'] |
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 tar.gz archive | |
| tar -czvf archive.tar.gz what_to_pack | |
| # Extract zipper archive | |
| tar xzf archive.tar.gz |
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
| # EditorConfig helps developers define and maintain consistent | |
| # coding styles between different editors and IDEs | |
| # editorconfig.org | |
| root = true | |
| [*]a | |
| # change these settings to your own preference |
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
| <p>Die angeforderte Seite konnte vom Webserver nicht gefunden werden, daher lieferte dieser den Fehler 404 zurück.</p> | |
| <p>404-Fehler können auftreten, wenn…</p> | |
| <div>…Sie als Besucher einen fehlerhaften Link eintippen, | |
| <br />…eine Suchmaschine auf eine veraltete Webseite verlinkt, | |
| <br />…die Webseite verzogen oder gelöscht wurde.</div> | |
| <div> | |
| <p>Besuchen Sie doch unsere Startseite, Sie finden dort bestimmt wonach sie suchten: <a href="/" title="Zur Startseite" rel="nofollow">Startseite von ###WEBSEITENNAME###</a></p> | |
| </div> |
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
| // @see https://css-tricks.com/ajaxing-svg-sprite/ | |
| var ajax = new XMLHttpRequest(); | |
| ajax.open("GET", "svg/sprite.svg", true); | |
| ajax.send(); | |
| ajax.onload = function(e) { | |
| var div = document.createElement("div"); | |
| div.innerHTML = ajax.responseText; | |
| document.body.insertBefore(div, document.body.childNodes[0]); | |
| } |
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
| ajax_###myextension### = PAGE | |
| ajax_###myextension### { | |
| typeNum = 6661 | |
| typeNum = {$plugin.tx_###myextension###.settings.###ajaxpagetype###} | |
| config { | |
| disableAllHeaderCode = 1 | |
| xhtml_cleaning = 0 | |
| admPanel = 0 | |
| additionalHeaders = Content-type: text/plain |
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
| mysqldump -u ###user### -p###password### ###dbname### > ###dbname###_@date.sql |