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
| #http://stackoverflow.com/a/27029144 | |
| RewriteEngine On | |
| # match any URL with www and rewrite it to https without the www | |
| RewriteCond %{HTTP_HOST} ^(www\.)(.*) [NC] | |
| RewriteRule (.*) https://%2%{REQUEST_URI} [L,R=301] | |
| # match urls that are non https (without the www) | |
| RewriteCond %{HTTPS} off | |
| RewriteCond %{HTTP_HOST} !^(www\.)(.*) [NC] |
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
| $query="SELECT * FROM word WHERE day = current_date() LIMIT 1"; | |
| $result = mysql_query($query); | |
| if ($result) { | |
| // echo "Query executed"; | |
| $row = mysql_fetch_assoc($result); | |
| $word = $row['word']; | |
| $definition = $row['definition']; | |
| $definitionB = $row['definitionB']; | |
| } else { | |
| echo "Query not executed"; |
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
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME}.html -f | |
| RewriteRule ^(.*)$ $1.html [NC,L] | |
| DirectoryIndex index.html index.php |
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
| ffmpeg -i input.mp4 -strict -2 -movflags faststart -vcodec libx264 -crf 24 output.mp4 |
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
| /** | |
| * os-leaflet ; A [Leafletjs](http://leafletjs.com/) TileLayer to display Ordnance Survey | |
| * data in your Leaflet map via the OS OpenSpace web map service. | |
| * | |
| * https://github.com/rob-murray/os-leaflet | |
| */ | |
| (function (root, factory) { | |
| // UMD for Node, AMD or browser globals | |
| if (typeof define === 'function' && define.amd) { | |
| // AMD. Register as an anonymous module. |
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 file in ./*.png; | |
| do | |
| if grep -q ${file:2} ./fileslist.txt; | |
| then | |
| echo "skipping $file" | |
| else | |
| echo "moving $file" | |
| mv "$f" ./newdir | |
| fi | |
| done |
OlderNewer