This file contains 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
# The Google Cloud SDK on Travis is pretty old (2014). So if | |
# you want to use an up-to-date version, you have to install | |
# your own. This config is the bare minimum you'll need to | |
# get an updated version of the SDK + kubectl. | |
cache: | |
directories: | |
# We cache the SDK so we don't have to download it again on subsequent builds. | |
- $HOME/google-cloud-sdk | |
services: | |
# Include the docker service so you can roll your own images. |
This file contains 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
<VirtualHost *:80> | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=308,L] | |
</VirtualHost> |
This file contains 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
window.onerror = function(message, file, line, column, error) { | |
error = error || {}; | |
$.ajax({ | |
method: 'POST', | |
url: 'https://yourapp.com/path/to/error/log', | |
data: JSON.stringify({ | |
message: message, | |
file: file, | |
line: line, | |
column: column, |
This file contains 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 | |
/** | |
* @author Benjamin Marquant | |
* @website http://www.bxnxg.com | |
* @example http://website.com/My Fân Page !/ > http://website.com/my-fan-page/ and become a simple url rewriting | |
*/ | |
class UrlEncodeType { | |
private $url; |