Skip to content

Instantly share code, notes, and snippets.

View hackmods's full-sized avatar
🏠
Working from home

Ryan Morris hackmods

🏠
Working from home
View GitHub Profile
@hackmods
hackmods / VideoJSControl.html
Created April 10, 2018 00:27
Control HTML5 Video playback speed and volume by VIDEO element
<!DOCTYPE html>
<html>
<body>
<video width="444" controls>
<source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
<source src="https://www.w3schools.com/html/mov_bbb.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</video>
-- use wp_sample;
-- select * from wp_posts group by post_date order by post_name;
DELIMITER $$
DROP PROCEDURE IF EXISTS wp_sample.vx_multiple_select $$
CREATE PROCEDURE wp_sample.vx_multiple_select()
BEGIN
DECLARE l INT DEFAULT 0;
declare tmp INT default 0;
var mysql = require('mysql')
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
password : 'Passphrase',
database : 'mydatabase'
});
connection.connect()
@hackmods
hackmods / exportMysqlUsers.php
Last active December 14, 2020 15:29 — forked from janich/exportMysqlUsers.php
Export MySQL users and permissions
<?php
/**
* Export MySQL users and permissions
*
* This script exports raw CREATE USER and GRANT queries of a given database
* to help migrate MySQL users and permissions to a new server.
* Users will keep their passwords across the migration.
*
* Warning: The import queries expects exactly the same database structure!
*