Skip to content

Instantly share code, notes, and snippets.

View graphicmist's full-sized avatar

Manish Kutaula graphicmist

View GitHub Profile
@graphicmist
graphicmist / arch-linux.sh
Last active February 6, 2023 08:48
Dpeloy Arch Linux
Deploy Arch Linux
#### Download Image
#### Create Bootable USB
* unmount drive - `umount /dev/sdb1` or some other way
* `lsblk` to find drive without number **after unmounting**
* `sudo dd bs=4M if=archlinux-2020.10.01-x86_64.iso of=/dev/sdb status=progress oflag=sync`
@graphicmist
graphicmist / mageImageExporter.php
Created June 30, 2017 12:20
Script to export Images from Magento1x
<?php
require '/var/www/html/app/Mage.php';
Mage::app();
$outputDir = "/home/sslol/images";
$products = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect('sku');
foreach ($products as $product) {
@graphicmist
graphicmist / AdapterCustomDBSelect
Last active December 18, 2015 05:38
Custom Adapter for Paginator
<?php
namespace Report\Adapter;
use Zend\Paginator\Adapter\DbSelect;
use Zend\Db\Sql\Select;
class PaginatorAdapter extends DbSelect {
public function count()
{