Skip to content

Instantly share code, notes, and snippets.

@hanchang
hanchang / gakwt.js
Last active June 27, 2016 06:07 — forked from c93614/gist:3848993
Google Adwords Keyword Tool Scraper via Casper.js
// requires
var utils = require('utils');
var casper = require('casper').create()
var casper = require('casper').create({
verbose: true,
logLevel: "debug"
});
// setup globals
var email = casper.cli.options['email'] || 'REPLACE THIS EMAIL';
@hanchang
hanchang / print-all-crontabs
Created August 24, 2011 04:49
Script to print out all crontabs on a machine. Must be run as root.
#!/bin/bash
# Courtesy of:
# http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users
# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'
# Single tab character. Annoyingly necessary.