Skip to content

Instantly share code, notes, and snippets.

View jklein's full-sized avatar

Jonathan Klein jklein

View GitHub Profile
[templates (master)↑⚡]> templatetrace pages/your_etsy/shop/registration/_modules/header_steps.tpl
pages/your_etsy/shop/registration/_modules/header_steps.tpl
pages/your_etsy/shop/registration/_modules/header.tpl
pages/storefronts/seller_payment_account/onboarding.tpl
pages/shop2/index.tpl
pages/listings/view.tpl
pages/storefronts/orders/transaction.tpl
pages/your_etsy/edit_profile.tpl
pages/your_etsy/base.tpl
pages/storefronts/orders/dead_receipt.tpl
diff --git a/index.html b/index.html
index 4e0df7e..a1bc733 100644
--- a/index.html
+++ b/index.html
@@ -84,10 +84,10 @@
 
</div>
- <a href="https://github.com/etsy/ab">
+ <a href="https://github.com/etsy/feature">
@jklein
jklein / xhgui_VagrantFile.rb
Last active July 20, 2016 13:01
XHGui VagrantFile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
I've been doing a bunch of auditing of the homepage (both signed in and signed out), and my latest discovery involves this unexpectedly expensive query:
select Taxonomy.taxonomy_id as Taxonomy__taxonomy_id,
Taxonomy.top_level_id as Taxonomy__top_level_id,
Taxonomy.name as Taxonomy__name,
Taxonomy.metadata as Taxonomy__metadata,
Taxonomy.shard_id as Taxonomy__shard_id,
Taxonomy.old_shard as Taxonomy__old_shard,
Taxonomy.migration_lock as Taxonomy__migration_lock,
Taxonomy.create_date as Taxonomy__create_date,
<?php echo $this->_tpl_vars['test_variable']; ?>
<br/>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'some_assigns_happen_here.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<?php echo $this->_tpl_vars['test_variable']; ?>
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix (/usr/local). This prefix can be dynamically changed by using the
; '-p' argument from the command line.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
#! /bin/sh
### BEGIN INIT INFO
# Provides: php-fpm
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts php-fpm
# Description: starts the PHP FastCGI Process Manager daemon
#14 __construct() /EtsyORM/Query/RawSql.php:907
#13 realExecute() /EtsyORM/Query/Base.php:265
#12 retrieveResultData() /EtsyORM/Query/Base.php:329
#11 execute() /EtsyORM/Finder/Base.php:106
#10 getAndExecute('find', [68183450], , 1) /EtsyORM/Finder/Table.php:226
#9 findRecordInDb([68183450], 1) /EtsyORM/Finder/Table.php:318
#8 findByPK([68183450], 1, 1) /EtsyORM/Finder/Table.php:208
#7 normalizeAndFind([68183450], 1) /EtsyORM/Finder/Table.php:419
#6 find(68183450) /ObjectType.php:130
#5 find(68183450, 9) /Convos/ContextType.php:36
* Adding handle: conn: 0x7ff082004000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7ff082004000) send_pipe: 1, recv_pipe: 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to www.etsy.com port 443 (#0)
* Trying 23.66.223.53...
* Connected to www.etsy.com (23.66.223.53) port 443 (#0)
@jklein
jklein / gist:bd7eb84f3628f4049b31
Last active August 29, 2015 14:08
Fastly NO GZIP CSS
~$curl -k -H "Host: www.etsy.com" -H "Accept-Encoding: gzip, deflate" -v "https://global-ssl.fastly.net/assets/dist/css/base.20141024160711.edge.css" -v > /dev/null
* Adding handle: conn: 0x7ff029004000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7ff029004000) send_pipe: 1, recv_pipe: 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to global-ssl.fastly.net port 443 (#0)
* Trying 199.27.76.184...