Skip to content

Instantly share code, notes, and snippets.

View jehzlau's full-sized avatar

Jehzeel Laurente jehzlau

View GitHub Profile
--
-- This query delelets all customers and orders from your
-- Magento 1.* install. Handy, if you have a bloated
-- Magento database and you need to do a bit
-- of cleaning up for use on a local machine.
--
-- Replace PREFIX_ with your current Magento table prefix.
--
-- USE AT OWN RISK. ALWAY BACKUP YOUR DATABASE FIRST.
--
@jehzlau
jehzlau / file.php
Created July 15, 2017 13:21 — forked from bainternet/file.php
a Simple class to convert number to words in php based on http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/
<?php
//simple class to convert number to words in php based on http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/
if ( !class_exists('NumbersToWords') ){
/**
* NumbersToWords
*/
class NumbersToWords{
public static $hyphen = '-';
public static $conjunction = ' and ';
Go to Bitbucket and create a new repository (its better to have an empty repo)
git clone git@bitbucket.org:abc/myforkedrepo.git
cd myforkedrepo
Now add Github repo as a new remote in Bitbucket called "sync"
git remote add sync git@github.com:def/originalrepo.git
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync"
git remote -v
@jehzlau
jehzlau / keybase.md
Created April 21, 2017 11:10
Keybase Verification

Keybase proof

I hereby claim:

  • I am jehzlau on github.
  • I am jehzlau (https://keybase.io/jehzlau) on keybase.
  • I have a public key ASC1wcCue_40PNHfzxRJzGQj1fWMAEA9hG6IXKgKaIVNtAo

To claim this, I am signing this object:

@jehzlau
jehzlau / keybase.md
Created April 21, 2017 11:10
Keybase Verification

Keybase proof

I hereby claim:

  • I am jehzlau on github.
  • I am jehzlau (https://keybase.io/jehzlau) on keybase.
  • I have a public key ASC1wcCue_40PNHfzxRJzGQj1fWMAEA9hG6IXKgKaIVNtAo

To claim this, I am signing this object:

kjkjlk