This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use your_databasse; | |
set @attribute_code = 'name'; | |
set @entity_type_id = '4'; | |
set @entity_id = '502'; | |
set @backend_type = | |
(select backend_type | |
from eav_attribute | |
where attribute_code = @attribute_code and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
branch=$(git branch 2>/dev/null | grep ^\*) | |
[ x$1 != x ] && tracking=$1 || tracking=${branch/* /} | |
git config branch.$tracking.remote origin | |
git config branch.$tracking.merge refs/heads/$tracking | |
echo "tracking origin/$tracking" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/app/code/core/Mage/Core/Model/App.php | |
+++ b/app/code/core/Mage/Core/Model/App.php | |
@@ -511,11 +511,7 @@ class Mage_Core_Model_App | |
if ($this->_currentStore == $store) { | |
$store = $this->getStore($store); | |
- if ($store->getWebsite()->getDefaultStore()->getId() == $store->getId()) { | |
- $this->getCookie()->delete(Mage_Core_Model_Store::COOKIE_NAME); | |
- } else { | |
- $this->getCookie()->set(Mage_Core_Model_Store::COOKIE_NAME, $this->_currentStore, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*************************************************** | |
* Magento Log File Contents Monitor. GNU/GPL | |
* [email protected] | |
* provided without warranty or support | |
***************************************************/ | |
/*********************** | |
* Scan Magento local.xml file for connection information |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[10pt,a4paper]{article} | |
\usepackage{multicol} | |
\usepackage{amsmath, amssymb, amsthm} | |
\usepackage[margin=.3in]{geometry} | |
\usepackage[normalem]{ulem} | |
\begin{document} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function processURL($originalURL, $array) { | |
$base = "http://example.com"; | |
$avail = ""; | |
$link = new mysqli($host, $user, $pass, $daba); | |
if(mysqli_connect_errno()) { | |
die("Connection failed" . mysqli_connect_error()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPLOADCORE | |
http://www.uploadcore.com/yzjsyg8ercgt | |
http://www.uploadcore.com/wvs19j2cvi1p | |
http://www.uploadcore.com/oakdpstv2zze | |
http://www.uploadcore.com/ifbeetlqjh4w | |
http://www.uploadcore.com/h3qux54lurrv | |
http://www.uploadcore.com/awii8qjr5gkm | |
http://www.uploadcore.com/3rx7ypi8fbna | |
http://www.uploadcore.com/2udunk9dk3if |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/ruby/bin/ruby -w | |
Dbpath = "/data/db" # database path | |
Backpath = "/data/dbbackup" # backup directory | |
Host = "" # mongo host to connect,empty is for local | |
Database = "" # database to use. empty is for all | |
Collection = "" # collection to use | |
User = "" | |
Passwd = "" | |
Now = Time.now | |
DATE = Now.strftime("%Y-%m-%d") |