Skip to content

Instantly share code, notes, and snippets.

@rakeshr
rakeshr / list main terms and sub terms under it
Created September 20, 2011 16:49
wordpress - list main terms and sub terms under it
<?php
//list terms in a given taxonomy
$taxonomy = 'apptypes';
$appargs=array(
'hide_empty' => false,
'orderby' => 'name',
'order' => 'ASC',
'parent' => '0'
);
$appterms = get_terms($taxonomy,$appargs);
#!/bin/bash
# Place in /usr/share/backup/
# and make executable
# chmod 0744 dup-backup.sh
# install:
# apt-get install duplicity python-gdata python-gobject-2 python-paramiko
## Remeber to change Google drive user name and Google drive folder
## And change Email
# Must run as root for system wide backups
if [ ! -f $1 ]
then
echo "please provide a file in arg"
exit -1
fi
#assign folder to upload
if [ -z "$2" ]
then
folderid="root"