Skip to content

Instantly share code, notes, and snippets.

View leemason's full-sized avatar
🎯
Focusing

Lee Mason leemason

🎯
Focusing
View GitHub Profile
@inxilpro
inxilpro / BabelBladeExtension.php
Created September 21, 2019 19:21
Blade Extension to transpile inline <script> tags using Babel (during the Blade compile step)
<?php
namespace App\Support\View;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Log;
use Illuminate\View\Compilers\BladeCompiler;
use Illuminate\View\Compilers\Concerns\CompilesEchos;
use RuntimeException;
use Symfony\Component\Process\Process;
@thefuxia
thefuxia / plugin-class-demo.php
Last active September 5, 2024 01:34
Plugin Class Demo
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: Plugin Class Demo
* Description: How I am using the base class in plugins.
* Plugin URI:
* Version: 2012.09.29
* Author: Fuxia Scholz
* License: GPL
* Text Domain: plugin_unique_name
* Domain Path: /languages
@oodavid
oodavid / README.md
Created March 26, 2012 17:05
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc