Skip to content

Instantly share code, notes, and snippets.

scp -v -r 20141102_v2_file.tar.gz usuario@176.66.251.188:/home/usuario
@oterox
oterox / mirrorWP.sh
Created February 1, 2015 16:46
Mirrors a WordPress Installation to another host
#!/bin/bash
#
# Description:
# Mirrors a WordPress Installation to another host, accessible through a mirror subdomain
#
#
# Assumptions:
# mysql and ssh usernames are the same
# databases are on the same server and accessible
@oterox
oterox / Gruntfile.js
Created October 9, 2014 09:52
Gruntfile.js for wordpress
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
dist: {
src: 'readme.txt',
dest: 'README.md'
}
},
@oterox
oterox / package.json
Created October 9, 2014 09:50
package.json for wordpress
{
"name": "package-name",
"version": "1.0.0",
"description": "...",
"main": "filename.php",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",