Skip to content

Instantly share code, notes, and snippets.

View dadolun95's full-sized avatar
πŸ€“
Developing

dadolun95 dadolun95

πŸ€“
Developing
View GitHub Profile
@peterjaap
peterjaap / mage-os-migration.sh
Last active December 10, 2024 14:57
Mage OS migration shell script - you can use this if you want to move from Magento community edition to MageOS. This updates your composer.json file and your local patches.
#!/bin/bash
# Path to the composer.json file
COMPOSER_FILE="composer.json"
TEMP_FILE="composer_temp.json"
# Checkout the composer.json file to avoid unwanted changes
git checkout "$COMPOSER_FILE"
# Create a new file to hold updated content
@pinceladasdaweb
pinceladasdaweb / gist:6662290
Created September 22, 2013 18:04
Get Youtube Video Thumbnail with JavaScript.
var Youtube = (function () {
'use strict';
var video, results;
var getThumb = function (url, size) {
if (url === null) {
return '';
}
size = (size === null) ? 'big' : size;