Skip to content

Instantly share code, notes, and snippets.

View jonathanselander's full-sized avatar
🦁
:)

Jonathan Selander jonathanselander

🦁
:)
View GitHub Profile
siege -i -c25 -t30s -f urls_kt.txt
Lifting the server siege... done. Transactions: 53 hits
Availability: 100.00 %
Elapsed time: 29.87 secs
Data transferred: 0.50 MB
Response time: 10.51 secs
Transaction rate: 1.77 trans/sec
Throughput: 0.02 MB/sec
Concurrency: 18.64
# siege -i -c25 -t30s -f urls.txt
Lifting the server siege... done. Transactions: 1224 hits
Availability: 100.00 %
Elapsed time: 29.55 secs
Data transferred: 9.44 MB
Response time: 0.11 secs
Transaction rate: 41.42 trans/sec
Throughput: 0.32 MB/sec
Concurrency: 4.71
@jonathanselander
jonathanselander / gist:4135899
Created November 23, 2012 14:40
Remove stylesheet via local.xml in Magento
<reference name="head">
<action method="removeItem">
<type>skin_css</type>
<name>css/styles.css</name>
</action>
</reference>
@jonathanselander
jonathanselander / gist:4134731
Created November 23, 2012 09:29
How to move the top menu to the left column in Magento
<!-- Put this in your layout/local.xml -->
<reference name="header">
<action method="unsetChild"><name>top.menu</name></action>
</reference>
<reference name="left">
<action method="insert"><child>top.menu</child></action>
</reference>
$ grep -r Noreg *
lib/Zend/Locale/Data/fo.xml: <territory type="NO">Noreg</territory>
lib/Zend/Locale/Data/is.xml: <territory type="NO">Noregur</territory>
lib/Zend/Locale/Data/nn.xml: <territory type="NO">Noreg</territory>
$ grep -r Noreg *
lib/Zend/Locale/Data/fo.xml: <territory type="NO">Noreg</territory>
lib/Zend/Locale/Data/is.xml: <territory type="NO">Noregur</territory>
lib/Zend/Locale/Data/nn.xml: <territory type="NO">Noreg</territory>
[mysqld]
max_connections = 500
key_buffer = 384M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1800
thread_cache_size = 384
tmp_table_size = 64M
A java.lang.IllegalStateException exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your /Users/js/Library/Application Support/NetBeans/7.2/var/log folder.
---------------------------------------------------------------------------
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.openide.util.actions.ActionInvoker$2
java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:951)
<block type="core/text" name="js_stuff">
<action method="setText">
<text><![CDATA[<script type="text/javascript" src="http://whatevs"></script>]]></text>
</action>
</block>
<?php
class Module
{
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\ClassMapAutoloader' => array(
__DIR__ . '/autoload_classmap.php',
),