Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| <form action="." method="post"> | |
| <noscript>You must <a href="http://www.enable-javascript.com" target="_blank">enable JavaScript</a> in your web browser in order to pay via Stripe.</noscript> | |
| <input | |
| type="submit" | |
| value="Pay with Card" | |
| data-key="PUBLISHABLE STRIPE KEY" | |
| data-amount="500" | |
| data-currency="cad" | |
| data-name="Example Company Inc" |
| <?php | |
| /* usage: | |
| $db = new Database("mysql:host=" . Config::$dbHost . ";dbname=" . Config::$dbName . ";", Config::$dbName, Config::$dbUser, Config::$dbPass); | |
| $db->changeVersion("", "1", function ($tx) { | |
| $tx->executeSql("CREATE TABLE IF NOT EXISTS `examples` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `example` mediumtext, | |
| PRIMARY KEY (`id`) |
| <?php | |
| /* JSONP_Example.php | |
| * Author: Kevin Lanni | |
| * Description: Demonstrates how to create a simple public Web API using JSONP responses | |
| * This is useful for opening Web APIs for public use without the need for proxying or other SOP work-arounds. | |
| * This example does not demonstrate API keys or any other method of authentication. | |
| */ | |
| // Supply a header to set the proper expectation for the client browser | |
| header('Content-Type: application/json'); |
| <?php | |
| // Place this in your functions.php file | |
| add_filter('wpcf7_form_action_url', 'wpcf7_custom_form_action_url'); | |
| function wpcf7_custom_form_action_url(){ | |
| return 'send.php';// replace this with the new action url (excluding the 'http://') | |
| } | |
| ?> |
| .text-xs-left { text-align: left; } | |
| .text-xs-right { text-align: right; } | |
| .text-xs-center { text-align: center; } | |
| .text-xs-justify { text-align: justify; } | |
| @media (min-width: @screen-sm-min) { | |
| .text-sm-left { text-align: left; } | |
| .text-sm-right { text-align: right; } | |
| .text-sm-center { text-align: center; } | |
| .text-sm-justify { text-align: justify; } |
| CREATE TABLE IF NOT EXISTS `country` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `iso` char(2) NOT NULL, | |
| `name` varchar(80) NOT NULL, | |
| `nicename` varchar(80) NOT NULL, | |
| `iso3` char(3) DEFAULT NULL, | |
| `numcode` smallint(6) DEFAULT NULL, | |
| `phonecode` int(5) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
| #!/bin/sh | |
| ## backup each mysql db into a different file, rather than one big file | |
| ## as with --all-databases. This will make restores easier. | |
| ## To backup a single database simply add the db name as a parameter (or multiple dbs) | |
| ## Putting the script in /var/backups/mysql seems sensible... on a debian machine that is | |
| ## Create the user and directories | |
| # mkdir -p /var/backups/mysql/databases | |
| # useradd --home-dir /var/backups/mysql --gid backup --no-create-home mysql-backup | |
| ## Remember to make the script executable, and unreadable by others |
| SET @oldsite='http://oldsite.com'; | |
| SET @newsite='http://newsite.com'; | |
| UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite); | |
| UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite); | |
| UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite); | |
| /* only uncomment next line if you want all your current posts to post to RSS again as new */ | |
| #UPDATE wp_posts SET guid = replace(guid, @oldsite, @newsite); |
| .col-xs-inset-12 { | |
| margin-left: -100%; | |
| } | |
| .col-xs-inset-11 { | |
| margin-left: -91.66666667%; | |
| } | |
| .col-xs-inset-10 { | |
| margin-left: -83.33333333%; | |
| } | |
| .col-xs-inset-9 { |