Skip to content

Instantly share code, notes, and snippets.

Avatar
🏄‍♀️
Surfing the information superhighway

Dano emaildano

🏄‍♀️
Surfing the information superhighway
View GitHub Profile
@emaildano
emaildano / cloudflare-amimoto-cloudfront.md
Created Oct 2, 2019
Cloudflare to Amimoto CloudFront
View cloudflare-amimoto-cloudfront.md

Whitelist Headers

Default (*)

Authorization
CloudFront-Forwarded-Proto
CloudFront-Is-Desktop-Viewer
CloudFront-Is-Mobile-Viewer
CloudFront-Is-Tablet-Viewer
View formspree-demo.html
<div>
<style>
.contact-form__btn {
background-color: #207786;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
View shifter-post-api.js
"use strict";
module.exports.run = () => {
const axios = require("axios");
axios
.post("https://api.getshifter.io/v1/login", {
username: process.env.USERNAME,
password: `${process.env.PASSWORD}`
})
View composer-bb-plugin-config.json
{
"type": "package",
"package": {
"name": "beaver-builder/bb-plugin",
"type": "wordpress-plugin",
"version": "<VERSION_NUMBER>",
"dist": {
"type": "zip",
"url": "https://updates.wpbeaverbuilder.com/?fl-api-method=composer_download&download=bb-plugin-<VERSION>.zip&license=<LICENSE_KEY>"
},
View concatenation-v-no-concatenation.md
View column-shortcodes.php
<?php
/*
Plugin Name: Column Shortcodes
Version: 1.0
Description: Adds shortcodes to easily create columns in your posts or pages
Author: Codepress
Author URI: https://www.admincolumns.com/
Plugin URI: https://wordpress.org/plugins/column-shortcodes
Text Domain: column-shortcodes
@emaildano
emaildano / annual-monthly-pricing.md
Last active Sep 6, 2017
Percentage off Month Plans
View annual-monthly-pricing.md
<div class="plan-box">
  <div class="dc-table__plans" data-annual-discount="10">
    <div class="amimoto-pricing-data" data-monthly="30">$<span class="price">30</span></div>
    <div class="amimoto-pricing-data" data-monthly="60">$<span class="price">60</span></div>
  </div>
</div>
@emaildano
emaildano / wp-simple-pay.html
Created Sep 6, 2017
(Stripe) WP Simple Pay JS Implementation for multiple subscription links
View wp-simple-pay.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WP Simple Pay JS</title>
</head>
<body>
<a href="#" class="amimoto-plan" data-plan-id="123">Sign Up</a>
View mkv-to-mp4.md

Covert MK4 to MP4 for iTunes and AirPlay

ffmpeg -i foo.mkv -codec copy bar.mp4
ffmpeg -i input.mkv -c:v copy -c:a aac -b:a 384k output.mp4
@emaildano
emaildano / README.md
Last active Jun 4, 2017
AMIMOTO AMI – Install additional WordPress sites
View README.md

AMIMOTO AMI – Install additional WordPress sites

1. Force switch to root to reset password

sudo su

2. Create password for root

sudo passwd <-- Optional, only required on first use

3. Now switch to root using password

su -