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
#!/bin/bash | |
VERSION="1.23.2" | |
echo "Choose docker-compose version" | |
echo "Check https://github.com/docker/compose/releases" | |
read -p "Version ($VERSION): " | |
if ! [ -z $REPLY ] | |
then | |
VERSION=$REPLY | |
fi | |
sudo su <<EOF |
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
# ------------------------------------------------- | |
# CDN CONFIGURATION | |
# ------------------------------------------------- | |
# Show "Not Found" 404 errors in place of other NGINX errors | |
error_page 403 /404; | |
error_page 404 /404; | |
error_page 405 /404; | |
error_page 500 501 502 503 504 /404; | |
location /404 { |
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
server { | |
listen 80; ## listen for ipv4 | |
listen [::]:80; ## listen for ipv6 | |
server_name domain.com; | |
access_log /var/log/nginx/domain.com.access.log; | |
error_log /var/log/nginx/domain.com.error.log; | |
root /folder/with/wordpress/installation/; | |
# Include wordpress config file |
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
<div class="flag flag-fr"></div> |
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 | |
// Add the correct Content-Type for the cache manifest | |
header('Content-Type: text/cache-manifest'); | |
// Write the first line | |
echo "CACHE MANIFEST\n"; | |
// Initialize the $hashes string | |
$hashes = ""; |
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
$responsive_resize: 0.6; | |
$px:1px; | |
@mixin res($rpx) { | |
$px: $rpx; | |
@content; | |
@media screen and (max-width: 320px) { | |
$px: $rpx*$responsive_resize; | |
@content; | |
} |
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
function $$(selector, context){ | |
return jQuery(selector.replace(/(\[|\])/g, '\\$1'), | |
context) | |
} |
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
#imagen { | |
background: url(ruta a la imagen/imagen1.jpg) no-repeat; | |
height: (alto)px; | |
width: (ancho)px; | |
} |
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
(function($) { | |
// Usefull variables | |
var clicks = 0; | |
var longclick = false; | |
// Change the long click duration (in ms): | |
//jQuery.longclick.duration = 500; | |
$(document).ready(function() { |