Skip to content

Instantly share code, notes, and snippets.

View milose's full-sized avatar

Miloš Šaković milose

View GitHub Profile
@milose
milose / gistlog.yml
Last active February 19, 2016 18:59
Persisting MySQL data with Homestead destroy
published: false
@milose
milose / ESP8266.md
Last active February 19, 2016 19:00
ESP8266 notes

ESP8266-01 Pinout

ESP8266-01 Pinout

Programming (firmware upload) hookup

ESP8266-01

  • VCC -> Power supply VCC (3V3!)
  • CH_PD -> Power supply VCC (3V3!)
  • GND -> Common GND
  • GPIO_00 -> Common GND
@milose
milose / apache-caching.md
Last active March 24, 2016 14:00
Leverage Browser Caching for Static Files with .htaccess

This is what I use to control headers/caching, I'm not an Apache pro, so let me know if there is room for improvement, but I know that this has been working well on all of my sites for some time now.

mod_expires

http://httpd.apache.org/docs/2.2/mod/mod_expires.html

This module controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. The expiration date can set to be relative to either the time the source file was last modified, or to the time of the client access.

These HTTP headers are an instruction to the client about the document's validity and persistence. If cached, the document may be fetched from the cache rather than from the source until this time has passed. After that, the cache copy is considered "expired" and invalid, and a new copy must be obtained from the source.

# BEGIN Expires

Goals

Hardware

Software

In Action

Javascript30 Start-up Tools

Install Atom editor

Download

Install XCode Command Tools

xcode-select --install