Skip to content

Instantly share code, notes, and snippets.

View binaryoung's full-sized avatar
🌊

young binaryoung

🌊
View GitHub Profile
@binaryoung
binaryoung / letsencrypt_notes.sh
Created February 28, 2018 12:16 — forked from lachesis/letsencrypt_notes.sh
Set up LetsEncrypt using acme.sh without root
# How to use "acme.sh" to set up Lets Encrypt without root permissions
# See https://github.com/Neilpang/acme.sh for more
# This assumes that your website has a webroot at "/var/www/<domain>"
# I'll use the domain "EXAMPLE.com" as an example
# When this is done, there will be an "acme" user that handles issuing,
# updating, and installing certificates. This account will have the following
# (fairly minimal) permissions:
# - Host files at http://EXAMPLE.com/.well-known/acme-challenge
@binaryoung
binaryoung / add-embed-tweet-meta-box.php
Created March 13, 2018 04:53 — forked from paulund/add-embed-tweet-meta-box.php
Add custom post meta data input boxes to the WordPress post pages.
<?php
function add_embed_tweet_meta_box() {
add_meta_box(
'paulund_embed_tweet_meta_box', // $id
'Post Embed Tweets Meta Box', // $title
'show_embed_tweet_meta_box', // $callback
'post', // $page
'normal', // $context
'high'); // $priority
}