Skip to content

Instantly share code, notes, and snippets.

Rakesh Raja rakeshr

Block or report user

Report or block rakeshr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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);
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
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"
You can’t perform that action at this time.