Skip to content

Instantly share code, notes, and snippets.

@bradwestfall
bradwestfall / S3-Static-Sites.md
Last active January 6, 2026 23:02
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation
var FB = require('fb');
var readline = require('readline');
FB.options({
appId: '',
appSecret: '',
redirectUri: ''
});
@dwchiang
dwchiang / AM.md
Last active May 12, 2016 15:59
FFP: Asiamiles

#目的地

##歐洲

巴黎 (CDG), 米蘭 (MXP), 法蘭克福 (FRA), 阿姆斯特丹 (AMS), 約翰內斯堡 (JNB), 倫敦 (LHR), 曼徹斯特 (MAN), 羅馬 (FCO), 蘇黎世 (ZRH)

  • Asia Miles: F, RT = 180,000
  • Asia Miles: C, RT = 120,000
    • e.g. TPE-HKG-AMS, CX, RT, C = 120,000 + HKD 2,009
  • Asia Miles: PE, RT = 72,000
  • Asia Miles: Y, RT = 60,000
@hanksudo
hanksudo / Front-end-Developer-Interview-Questions-TC.md
Last active November 13, 2025 16:23
Front-end-Developer-Interview-Questions - 前端工程師面試問題集(繁體中文版)

前端工程師面試問題集

@版本 2.0.0

譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.

此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。

Rebecca MurpheyBaseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。

@pke
pke / tracking.coffee
Created May 23, 2013 12:03
sample usage of google.analytics framework for Windows Modern UI apps
ApplicationView = Windows.UI.ViewManagement.ApplicationView
ApplicationViewState = Windows.UI.ViewManagement.ApplicationViewState
google.analytics.configure("UA-YOURID", someUniqueDeviceToken, "Your APP NAME", "YOUR APP VERSION")
###
EVENT LISTENERS FOR ANALYTICS REPORTING
###
#---------------------
@pke
pke / analytics.coffee
Created May 23, 2013 11:59
Windows Modern UI Google Analytics helpers
ApplicationView = Windows.UI.ViewManagement.ApplicationView
ApplicationViewState = Windows.UI.ViewManagement.ApplicationViewState
ApplicationLanguages = Windows.Globalization.ApplicationLanguages
CURRENT_RATE_LIMIT = MAX_RATE_LIMIT = 60
RATE_LIMIT_TICK = 2000
RATE_LIMITED_MESSAGE_QUEUE = new Queue()
logger = window.console
anonymous
anonymous / index.html
Created March 29, 2013 08:23
A CodePen by Anonymous. Tear-able Cloth - Javascript cloth simulation.
<canvas id = "c" > </canvas>
<p>
Tear the cloth with your mouse.<br><br>
Right click and drag to cut the cloth.<br><br>
Reduce physics_accuracy if it's laggy, increase it for a better effect.
</p>
<a target="_blank" href="http://lonely-pixel.com/">my website (in progress, soon to be a javascript experiment showcase)</a>
@dannvix
dannvix / nginx-non-transparent-ssl-proxy.md
Last active October 16, 2023 19:07
Guide to set up nginx as non-transparent SSL proxy, which subsitutes strings in the server responses

Use nginx as Non-Transparent SSL Proxy

Introduction

Many mobile apps have back-end API servers. They usually rely on the API replies to determine whether certain information is supposed to be shown. If the API responses could be manipulated on the fly, we may easily fool an unmodified app to expose some private data.

This manual guides you to set up nginx as non-transparent SSL proxy, which just subsitutes strings in the server responses (i.e. man-in-the-middle attack ourself). For both server-side (their API servers) and client-side (your device), the whole process is almost transparent.

@thx0701
thx0701 / gist:3816226
Created October 2, 2012 04:51 — forked from chihchun/gist:753181
NextVOD
本頁更新以
http://www.osslab.com.tw/Hardware/Open_Embedded_System/NextVOD_unit_Hacking_-_%E7%B6%B2%E6%A8%82%E9%80%9A%E6%94%B9%E6%A9%9F 為主
壹多媒體娛樂服務股份有限公司 壹網樂/網樂通, https://www.nextvod.com.tw/ #nextvod #nextv
H/W
STMicroelectronics STx7105 (Renesas SuperH Core)
VIA VT6113 (Ethernet)
NANYA NT5TU64M16GG-AC (DRAM DDR2 64Mx16 PC800 BGA) * 2= 256MBytes
Samsung NCDOM08GMS-MLC (USB DOM 8GB)