Skip to content

Instantly share code, notes, and snippets.

View michelve's full-sized avatar
🌏
Rise and Reign

Michel michelve

🌏
Rise and Reign
View GitHub Profile
@michelve
michelve / install_xcode.sh
Created June 9, 2017 16:54 — forked from rtrouton/gist:f92f263414aaeb946e54
Install Xcode command line tools on 10.7.x - 10.10.x. Tested on 10.7.5, 10.8.5, 10.9.5 and 10.10.2.
#!/bin/bash
# Installing the Xcode command line tools on 10.7.x or higher
osx_vers=$(sw_vers -productVersion | awk -F "." '{print $2}')
cmd_line_tools_temp_file="/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress"
# Installing the latest Xcode command line tools on 10.9.x or higher
if [[ "$osx_vers" -ge 9 ]]; then
@michelve
michelve / find-products-without-images.sql
Last active December 22, 2018 15:31 — forked from tegansnyder/find-products-without-images.sql
Magento 2 - finding products without images - SQL
SELECT * FROM `catalog_product_entity` AS a
LEFT JOIN `catalog_product_entity_media_gallery` AS b ON a.entity_id = b.entity_id
WHERE b.value IS NULL