Skip to content

Instantly share code, notes, and snippets.

View rickysarraf's full-sized avatar
🙃
I may be slow to respond.

Ritesh Raj Sarraf rickysarraf

🙃
I may be slow to respond.
View GitHub Profile
@rickysarraf
rickysarraf / drupal7_to_hugo.php
Created November 5, 2018 07:20 — forked from amoutiers/drupal7_to_hugo.php
A basic php script to migrate from Drupal to Hugo, needs "html2markdown" installed on the server
<?php
define('DRUPAL_ROOT', __DIR__);
include_once(DRUPAL_ROOT . '/includes/bootstrap.inc');
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$nids = db_query('SELECT DISTINCT(nid) FROM {node}')
->fetchCol();
$nodes = node_load_multiple($nids);
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 4.3.0 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 4.2.3 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
+ base=/var/tmp/lxc/release
++ lsb_release -sc
+ codename=trusty
++ lsb_release -si
+ releasedir=/var/tmp/lxc/release/Ubuntu/WORKDIR
+ mkdir -p /var/tmp/lxc/release/Ubuntu/WORKDIR
++ git describe --match 'v*'
++ sed 's/^v//'
+ vers=0.94.2-109-gbb51f92
+ pvers=devel