Skip to content

Instantly share code, notes, and snippets.

View google.sh
if [ ! -f $1 ]
then
echo "please provide a file in arg"
exit -1
fi
#assign folder to upload
if [ -z "$2" ]
then
folderid="root"
View dup-backup.sh
#!/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
@rakeshr
rakeshr / list main terms and sub terms under it
Created Sep 20, 2011
wordpress - list main terms and sub terms under it
View 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);
You can’t perform that action at this time.