Reset ssh know host for remote ip:
ssh-keygen -R hostname [-f known_hosts_file]
ssh to server, and run as root user using command,
sudo su
<?php | |
// API access key from Google API's Console; change to cloud messaging tab to get the server token | |
define( 'API_ACCESS_KEY', 'YOUR_FIREBASE_API_ACCESS_KEY' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array | |
( | |
'body' => $_GET['body'], | |
'title' => $_GET['title'], | |
'vibrate' => 1, |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.drawable.BitmapDrawable; | |
import android.graphics.drawable.Drawable; | |
import android.graphics.drawable.VectorDrawable; | |
import android.os.Build; | |
import android.support.annotation.DrawableRes; | |
import android.support.graphics.drawable.VectorDrawableCompat; |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
Steps to recreate tests: | |
// Create and configure server: | |
1. Create 2GB DigitalOcean server using Forge | |
2. Enable OpCache on server | |
3. Create http://domain1.com (use whatever domain name you have available) | |
4. Create http://domain2.com (use whatever domain name you have available) | |
5. Enable SSL on both domains using LetsEncrypt | |
6. Install: sudo apt-get install apache2-utils |
# Optimized my.cnf configuration for MySQL/MariaSQL | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated January 2020 ~ | |
# | |
# | |
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores. | |
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
# |
This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form>
following the example by Martin Hawksey
Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.
You should be able to just open index.html
in your browser and test locally.
<?php | |
/** | |
* @param WP_Query|null $wp_query | |
* @param bool $echo | |
* @param array $params | |
* | |
* @return string|null | |
* | |
* Using Bootstrap 4? see https://gist.github.com/mtx-z/f95af6cc6fb562eb1a1540ca715ed928 | |
* |