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"?> | |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:atom="http://www.w3.org/2005/Atom" elementFormDefault="qualified"> | |
| <xs:import namespace="http://www.w3.org/2005/Atom" schemaLocation="atom.xsd"/> | |
| <xs:element name="rss"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <xs:element ref="channel"/> | |
| </xs:sequence> | |
| <xs:attribute name="version" use="required" type="xs:decimal"/> | |
| </xs:complexType> |
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
| #!/bin/sh | |
| # Output file for HTML5 video | |
| # requirements: ffmpeg .6+ | |
| # usage: ./html5video.sh infile.mp4 640x360 | |
| target_directory='converted' | |
| file=`basename $1` | |
| filename=${file%.*} | |
| filepath=`dirname $1` |
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
| msgid "" | |
| msgstr "" | |
| "Project-Id-Version: Lingohub 1.0.1\n" | |
| "Report-Msgid-Bugs-To: support@lingohub.com \n" | |
| "Last-Translator: Marko Bošković <marko@lingohub.com>\n" | |
| "Language: de\n" | |
| "MIME-Version: 1.0\n" | |
| "Content-Type: text/plain; charset=UTF-8\n" | |
| "Content-Transfer-Encoding: 8bit\n" | |
| "Plural-Forms: nplurals=2; plural=(n != 1);\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
| // Select all links with hashes | |
| $('a[href*="#"]') // Remove links that don't actually link to anything | |
| .not('[href="#"]') | |
| .not('[href="#0"]') | |
| .click(function(event) { | |
| // On-page links | |
| if ( | |
| location.pathname.replace(/^\//, "") == | |
| this.pathname.replace(/^\//, "") && | |
| location.hostname == this.hostname |
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
| DELETE FROM `wp_redirection_logs` WHERE `created` < NOW() - INTERVAL 30 DAY | |
| DELETE FROM `wp_redirection_404` WHERE `created` < NOW() - INTERVAL 30 DAY |
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 | |
| function callback($buffer) { | |
| // modify buffer here, and then return the updated code | |
| return $buffer; | |
| } | |
| function buffer_start() { ob_start("callback"); } | |
| function buffer_end() { ob_end_flush(); } |
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
| # This rewrite redirects sitemap.xml to sitemap_index.xml, which is what Yoast's WordPress SEO plugin generates. | |
| rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent; | |
| # This rewrite ensures that the styles are available for styling the generated sitemap. | |
| rewrite ^/([a-z]+)?-?sitemap\.xsl$ /index.php?xsl=$1 last; | |
| # These rewrites rule are generated by Yoast's plugin for Nginx webserver | |
| rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; | |
| rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; |
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
| DB="your_database_name" | |
| USER="your_db_user" | |
| PASS="your_db_pass" | |
| HOST="database_hostname" | |
| ( | |
| echo 'ALTER DATABASE `'"$DB"'` CHARACTER SET utf8 COLLATE utf8_general_ci;' | |
| mysql -p $PASS -u $USER -h $HOST "$DB" -e "SHOW TABLES" --batch --skip-column-names \ | |
| | xargs -I{} echo 'ALTER TABLE `'{}'` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;' | |
| ) \ | |
| | mysql -p $PASS -u $USER -h $HOST "$DB" |
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
| For | |
| * ES5 | |
| * ES6 | |
| * CoffeeScript |
NewerOlder