These instructions have moved to https://github.com/emporia-vue-local/esphome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To install chruby and ruby-install: | |
brew install chruby ruby-install | |
To install Ruby using ruby-install: | |
ruby-install ruby 2.7.1 | |
NOTE: You can find latest stable version of Ruby here: https://www.ruby-lang.org/en/downloads/ | |
If you have issues installing Ruby then try the following: | |
brew install openssl@3 | |
ruby-install 3.2.2 -- --with-openssl-dir=$(brew --prefix openssl@3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SuperDirt.start | |
( | |
//forward OSC message (localhost, port 3333) | |
var addr = NetAddr.new("127.0.0.1", 3333); | |
OSCdef(\tidalplay2, { | |
arg msg; | |
addr.sendMsg("/play2", *msg); | |
}, '/play2', n); | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z $1 ] | |
then | |
echo 'Sitemap must be provided as first argument.';exit 2 | |
fi | |
# Helper function to read xml | |
read_dom () { | |
local IFS=\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Finder\Finder; | |
use Symfony\Component\Finder\SplFileInfo; | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$groups = ['Collection', 'String', 'Objects']; | |
foreach ($groups as $groupName) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window){ | |
var EVENT_EXISTS = 'GlobalEvents: Event already exists.'; | |
var eventIsRunning, | |
_eventStack, | |
_findByName, | |
stackEvent, | |
removeEvent, | |
eventListener, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
set_time_limit(0); | |
include "threads.php"; | |
$commands = array('ffmpeg -i '.$inputFile[0].' '.$outputFile[0].' 2>&1','ffmpeg -i '.$inputFile[0].' '.$outputFile[0].' 2>&1'); | |
$threads = new Multithread($commands); | |
$threads->run(); | |
foreach ($threads->commands as $key=>$command){ | |
echo "Command ".$command.":<br>"; | |
echo "Output ".$threads->output[$key]."<br>"; | |
echo "Error ".$threads->error[$key]."<br><br>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php b/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php | |
index d567b6e..9a98440 100644 | |
--- a/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php | |
+++ b/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php | |
@@ -119,8 +119,8 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex | |
{ | |
$client = new SoapClient($wsdl, array('trace' => $trace)); | |
$client->__setLocation($this->getConfigFlag('sandbox_mode') | |
- ? 'https://wsbeta.fedex.com:443/web-services/rate' | |
- : 'https://ws.fedex.com:443/web-services/rate' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
ini_set('log_errors', 1); | |
error_reporting(E_ALL); | |
require 'app/Mage.php'; | |
Mage::app('admin', 'store'); | |
/* @var $customers Mage_Customer_Model_Resource_Customer_Collection */ | |
$customers = Mage::getResourceModel('customer/customer_collection'); | |
$customers->addAttributeToSelect('*'); | |
$customers->setPageSize((isset($argv[1]) && is_numeric($argv[1]))?$argv[1]:2000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function _getProducts($productIds, $storeId, $entityId, &$lastEntityId) | |
{ | |
$products = array(); | |
$websiteId = Mage::app()->getStore($storeId)->getWebsiteId(); | |
$adapter = $this->_getReadAdapter(); | |
if ($productIds !== null) { | |
if (!is_array($productIds)) { | |
$productIds = array($productIds); |
NewerOlder