- “stitcha” name is complementary name to builda
- Goals
- Reduce the number of asset requests on a page
- Question the benefits of reducing the number of asset requests versus reducing the bytes for CSS (removing unused CSS)
- Traffic might have opinions about what the path is (/ac/)
- Why Google App Engine?
- Similar pathway as Photos stack read pathway (GAE, GCP)
- Has a lot of nice features for deploying
- However, Security at point had concerns with GAE
- Caching is at the level of CDN
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
| !!:gs/search/replace/ |
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
| ssh -L <local-port>:<remote-host>:<remote-port> <user>@<bastion-host> |
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/bash | |
| DIR=example | |
| mkdir $DIR | |
| cd $DIR | |
| cat >> Example.scala << EOF | |
| object Main extends App { | |
| println("Hello!") |
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
| Warning: json_encode(): recursion detected in /home/auto/workspace/Smarties/lib/lib/Utility/NestedArray.php on line 180 |
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
| diff --git a/app.js b/app.js | |
| index 1a60c1d..5dea4f8 100644 | |
| --- a/app.js | |
| +++ b/app.js | |
| @@ -16,8 +16,26 @@ module.exports = ({ resolver }) => { | |
| app.use(compress()); | |
| app.use(etag()); | |
| + app.use(async (ctx, next) => { | |
| + try { |
About five years ago Etsy added support for Mustache as a template language. Mustache_Engine was chosen as the renderer, but required a bit of customization for our environment:
- Translation support – Prior to message catalogs, continued support for
<msg />tags was necessary. Rather than re-implement translation support, the implementation uses a two-part render cycle; the first pass leverages theSmartyrenderer for only translations, and the second pass renders the language-specific Mustache. An implementation ofMustache_Loaderwas written for this purpose. - Deterministic runtime compilation – Out of the box templates are compiled on demand. To avoid the performance hit in production, templates are built during deploys for all languages and never compiled at runtime. Where and how compilation cache artifacts are persisted are implemented in subclasses of
Mustache_Engine.
The primary interface for rendering Mustache templates.
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
| { | |
| "event_name": "shrinkray_css", | |
| "timestamp": 1528148895106, | |
| "primary_event": false, | |
| "guid": "de5ffb85404.4d2b72dc5d6eeeb4d903.00", | |
| "ip": "73.52.95.215", | |
| "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1", | |
| "loc": "https://www.etsy.com/confirm.php?email=beth2124%40aol.com\u0026code=84bbc1b8d533ba0ff9c4560f\u0026action=reset_password\u0026utm_source=transactional\u0026utm_medium=email\u0026utm_campaign=forgot_password_123169_11937570461_0_1\u0026campaign_label=forgot_password\u0026utm_content=\u0026email_sent=1528148852\u0026euid=E8J50vAsPx6USUkvPjgw5THSKZWN\u0026eaid=13585320097\u0026x_eaid=5a17cc9420", | |
| "ref": "https://www.etsy.com/confirm.php?email=beth2124%40aol.com\u0026code=84bbc1b8d533ba0ff9c4560f\u0026action=reset_password\u0026utm_source=transactional\u0026utm_medium=email\u0026utm_campaign=forgot_password_123169_11937570461_0_1\u0026campaign_label=forgot_password\u0026utm |
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
| find . -name "*.wav" -exec ffmpeg -i {} -af aformat=s16:44100 {}.flac \; |
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
| find . -name "*.flac" -exec ffmpeg -i {} -ab 320k {}.mp3 \; |