Check out the blog entry about Facebook Open Graph and Twitter Card integration with blog/sites:
http://vietlq.github.io/2017/04/30/access-hugo-page-variables/
Code change here is based hugo-geo
theme: https://github.com/alexurquhart/hugo-geo
Check out the blog entry about Facebook Open Graph and Twitter Card integration with blog/sites:
http://vietlq.github.io/2017/04/30/access-hugo-page-variables/
Code change here is based hugo-geo
theme: https://github.com/alexurquhart/hugo-geo
import ( | |
"fmt" | |
"strings" | |
"regexp" | |
) | |
var matchFirstCap = regexp.MustCompile("(.)([A-Z][a-z]+)") | |
var matchAllCap = regexp.MustCompile("([a-z0-9])([A-Z])") |
wp db reset --yes | |
wp core install --url=http://theme-review.loc --title="This is a really long long title to check if this theme design doesn't break with the long site title" --admin_user=admin --admin_password=admin --admin_email=example@example.com | |
wp core update | |
wp plugin install theme-check debug-bar log-deprecated-notices monster-widget wordpress-importer show-current-template customizer-theme-resizer --activate | |
wp plugin install wordpress-beta-tester debogger jetpack | |
wp plugin update --all | |
wp option update blogdescription "I'm in the theme review process and this is a very very long tagline to see if this long tagline text string in WordPress doesn't break the design of the theme header and else." | |
wp option update posts_per_page 5 | |
wp option update thread_comments 1 | |
wp option update thread_comments_depth 3 |
// Part of https://github.com/chris-rock/node-crypto-examples | |
// Nodejs encryption with CTR | |
var crypto = require('crypto'), | |
algorithm = 'aes-256-ctr', | |
password = 'd6F3Efeq'; | |
function encrypt(text){ | |
var cipher = crypto.createCipher(algorithm,password) | |
var crypted = cipher.update(text,'utf8','hex') |