Skip to content

Instantly share code, notes, and snippets.

View santerref's full-sized avatar

Francis Santerre santerref

View GitHub Profile
@santerref
santerref / ResetDefaultValues.php
Created May 30, 2018 02:01 — forked from kayintveen/ResetDefaultValues.php
Magento scripts that resets all products "use default values" setting of the admin store view. This script was created for a site that had thousands of products with deselected "Use Default Values" checkboxes in differente store-views
<?php
// Author: @kayintveen
// Credits: Microdesign B.V
// Created November 2015
//=====================================
// Enable Error Reporting
error_reporting(E_ALL);
ini_set('display_errors', '1');
@santerref
santerref / slugify.sh
Created June 1, 2017 19:43 — forked from ronanguilloux/slugify.sh
batch in bash to replace accents in filenames
#! /bin/bash
#
# slugify.sh by Ronan
#
# Distributed under terms of the MIT license.
#
for file in *.mp4; do
filename=${file%.*}
@santerref
santerref / disable-vagrant-time-sync.sh
Created February 6, 2017 15:22 — forked from X0nic/disable-vagrant-time-sync.sh
Disable vagrant time sync
#List vms
VBoxManage list vms
#get status of time sync
VBoxManage getextradata <vm-name> VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled
#NOTE: Make sure to restart the VM after changing these settings.
#disable time sync
VBoxManage setextradata <vm-name> VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled 1