Skip to content

Instantly share code, notes, and snippets.

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

M ABD AZIZ ALFIAN aalfiann

🏠
Working from home
View GitHub Profile
@aalfiann
aalfiann / MySql-5.6-installation guide.md
Created September 14, 2022 08:11 — forked from vinodpandey/MySql-5.6-installation guide.md
Install MySQL 5.6.xx on Ubuntu 18.04 & Ubuntu 20.04

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
@halgatewood
halgatewood / convert_sbv_to_srt.php
Last active February 22, 2020 15:39
PHP Function to Convert SBV to SRT
function convert_sbv_to_srt( $lines )
{
if( !$lines ) return "";
// BREAK LINES ON RETURN
$lines = explode("\n", $lines);
// ADD A BLANK SPACE AT THE BEGINNING,
// I USE BLANK SPACES TO DETERMINE BETWEEN THE DIFFERENT TEXT BLOCKS