git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<?php | |
// en un tema o un plugin, no cargues siempre todos los ficheros | |
// incluye los ficheros sólo donde hacen falta | |
if ( is_admin() ) { | |
require_once('codigo_para_admin.php'); | |
}else{ | |
require_once('codigo_para_frontend.php'); | |
} |
<?php | |
/* | |
Plugin Name: Parches Woo Nelson | |
*/ | |
add_filter( 'woocommerce_thankyou_order_received_text', 'nelson_custom_gracias' ); | |
function nelson_custom_gracias ( $msg_gracias ) { | |
return 'Nuevo mensaje de gracias'; |
ls -p | grep -v 'es_ES' | grep -v / | xargs rm -f |
gzip on; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; | |
gzip_min_length 256; | |
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon font/woff2; |
# ——————————————————————— | |
# Force Cache | |
# ——————————————————————— | |
<IfModule mod_expires.c> | |
<FilesMatch "\.(jpe?g|png|gif|js|css|ico)$"> | |
ExpiresActive On | |
ExpiresDefault "access plus 1 year" | |
</FilesMatch> | |
</IfModule> |
#!/bin/bash | |
mkdir -p out | |
cd in/ | |
while IFS= read -d '' -r file; do | |
file="${file#./}" | |
cp "$file" ../out/"${file//\//-}" | |
done < <(find . -type f -print0) |
Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.
These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.
Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following
version: '2' | |
services: | |
wordpress: | |
image: arm32v7/wordpress | |
restart: always | |
ports: | |
- 80:80 | |
environment: |
$ sudo apt-get remove --purge libreoffice* minecraft-pi wolfram-engine scratch sonic-pi dillo gpicview penguinspuzzle oracle-java8-jdk openjdk-7-jre oracle-java7-jdk openjdk-8-jre -y | |
$ sudo apt-get clean | |
$ sudo apt-get autoremove |