Skip to content

Instantly share code, notes, and snippets.

View emaildano's full-sized avatar
🏄‍♀️
Surfing the information superhighway

Dano emaildano

🏄‍♀️
Surfing the information superhighway
  • Philadelphia, PA
View GitHub Profile
@emaildano
emaildano / cloudflare-amimoto-cloudfront.md
Created October 2, 2019 18:12
Cloudflare to Amimoto CloudFront

Whitelist Headers

Default (*)

Authorization
CloudFront-Forwarded-Proto
CloudFront-Is-Desktop-Viewer
CloudFront-Is-Mobile-Viewer
CloudFront-Is-Tablet-Viewer
<div>
<style>
.contact-form__btn {
background-color: #207786;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
"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}`
})
{
"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>"
},
<?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 September 6, 2017 04:59
Percentage off Month Plans
<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 September 6, 2017 01:58
(Stripe) WP Simple Pay JS Implementation for multiple subscription links
<!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>

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 June 4, 2017 17:06
AMIMOTO AMI – Install additional WordPress sites

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 -