Skip to content

Instantly share code, notes, and snippets.

View sigismund's full-sized avatar

Žiga Drnovšček sigismund

View GitHub Profile
@sigismund
sigismund / clean-up-boot-partition-ubuntu.md
Created August 16, 2018 08:34 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@sigismund
sigismund / copy_category.php
Created December 6, 2017 12:45
Copy Magento 1.x category under other category
<?php
/*
php copy_category.php from,from to
*/
if((php_sapi_name() !== 'cli') && empty($argv))
die('Access Disabled, possible notified the admin of your attempt.' );
$start_time = microtime(true);
$initial_memory = memory_get_usage();
$initial_real_memory = memory_get_usage(true);