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
#!/usr/bin/python | |
import time | |
import os | |
username="db_username" | |
password="db_pass" | |
hostname="db_host" | |
filestamp=time.strftime('%Y%m%d-%H%M') | |
rootfolder="/var/www/www.pixellarylabs.com/public_html/clients/" |
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 | |
/** | |
* PXHelper by Javier Otero | |
* | |
* GNU General Public License, version 2 | |
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
* | |
*/ | |
// --------------------------------------------------- |
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 | |
echo $* | |
CURRENT_DATE=`date '+%Y%m%d-%Hh%M'` | |
WP_DATABASE=database_name | |
WP_FOLDER=wpfolder | |
WP_THEME=themefoldername | |
WP_CONTENT_PATH=/var/www/"$WP_FOLDER"/ | |
WP_THEME_PATH=/var/www/"$WP_FOLDER"/wp-content/themes/ | |
#Backup database |
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
<snippet> | |
<content><![CDATA[ | |
add_action( 'init', 'register_cpt_${1:test}' ); | |
function register_cpt_${1:test}() { | |
\$labels = array( | |
'name' => _x( '${2:Tests}', '${1:test}' ), | |
'singular_name' => _x( '${3:Test}', '${1:test}' ), |
NewerOlder