Skip to content

Instantly share code, notes, and snippets.

View entropin's full-sized avatar

Robin Westerlundh entropin

  • thisoneisgreen.com
  • Stockholm
View GitHub Profile
@entropin
entropin / gce-snapshot.sh
Created January 19, 2016 22:09 — forked from peihsinsu/gce-snapshot.sh
GCE daily scheduling snapshot backup
#!/bin/bash
# Environments
export PATH=/root/google-cloud-sdk/bin:$PATH
# Daily create snapshot for "backup_path" listed disks
# And remove snapshot 1 week old before
# Create snap date
export DT=`date +%Y%m%d`
@entropin
entropin / wp-custom-field.php
Created July 31, 2012 16:25
wp:custom-field
<?php
add_action('init', 'smille_field_add_news_types');
function smille_field_add_news_types() {
// Register custom post types
register_post_type('news', array(
'label' => __('News'),