Skip to content

Instantly share code, notes, and snippets.

Avatar

Antoine Moutiers amoutiers

  • Nantes - France
View GitHub Profile
View .zshrc
ZSH="$HOME/.oh-my-zsh"
TERM=xterm-256color
POWERLEVEL9K_MODE="nerdfont-complete"
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_SHORTEN_DIR_LENGTH=4
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_beginning"
POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_COLOR="red"
@amoutiers
amoutiers / drupal7_to_hugo.php
Created Jan 10, 2018
A basic php script to migrate from Drupal to Hugo, needs "html2markdown" installed on the server
View drupal7_to_hugo.php
<?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);
You can’t perform that action at this time.