git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
var mongoObjectId = function () { | |
var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
return (Math.random() * 16 | 0).toString(16); | |
}).toLowerCase(); | |
}; |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
import json | |
import urllib | |
url = 'http://www.reddit.com/r/Python/.json' | |
resp = urllib.urlopen(url).read() | |
parsed = json.loads(resp) | |
for item in parsed['data']['children']: | |
doc = item['data'] |
package main | |
import ( | |
"os" | |
"log" | |
"net" | |
"strconv" | |
"strings" | |
) |
<config> | |
<frontend> | |
<controller_action_predispatch> | |
<observers> | |
<log> | |
<type>disabled</type> | |
</log> | |
</observers> | |
</controller_action_predispatch> | |
<controller_action_postdispatch> |
<config> | |
<frontend> | |
<catalog_product_compare_remove_product> | |
<observers> | |
<reports> | |
<type>disabled</type> | |
</reports> | |
</observers> | |
</catalog_product_compare_remove_product> | |
<customer_login> |
<?php | |
$path = isset($argv[1]) ? $argv[1] : __DIR__; | |
$realpath = realpath($path); | |
echo "Thit tool is using free online formatter at www.freeformatter.com\n\n"; | |
return HtmlFormatter::processObject($realpath); | |
/** | |
* Class HtmlFormatter |
wget -O - dev.mage2.com:1005/sitemap-1-1.xml | grep -E -o '<loc>.*</loc>' | sed -e 's/<loc>//g' -e 's/<\/loc>//g' > ~/sitemaps/mage2.txt | |
sudo siege -c100 -d5 -r1 -v -i -f ~/sitemaps/mage2.txt |
TL;DR* Here's what the license entails:
1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
<?php | |
require 'vendor/autoload.php'; | |
$counter = new stdClass(); | |
$counter->counter = 100000; | |
$counter->requests = 0; | |
$app = function ($request, $response) use ($counter) { | |
if ($request->getPath() === '/favicon.ico') { |