Skip to content

Instantly share code, notes, and snippets.

View jepezi's full-sized avatar

Jeff A. jepezi

  • Bangkok, Thailand
View GitHub Profile
@jepezi
jepezi / ssl-params.conf
Created July 1, 2016 04:12
SSL params for reuse with nginx server block. Put it in snippets folder
#### Security Headers
# [WARNING] Strict-Transport-Security will stop HTTP access for specified time.
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
# [WARNING] X-Frame-Options DENY will break iframed sites.
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
#### SSL Stapling
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 192.168.99.100 (MySQL 5.6.30)
# Database: posydocker
# Generation Time: 2016-06-22 13:47:51 +0000
upstream clientapp {
server 127.0.0.1:3030;
keepalive 64;
}
upstream adminapp {
server 127.0.0.1:3031;
keepalive 64;
}
server {
listen 80;
server_name ~^(www\.)?(?<sname>.+?).multiplej.com$;
root /home/deployer/$sname/public;
index index.html index.htm index.php;
charset utf-8;
location / {
@jepezi
jepezi / socialdiscovery
Created March 20, 2016 14:15
html tags for head section to allow social site sharing and discovering
<!-- namespace declaration -->
<html prefix="og: http://ogp.me/ns#">
<!-- define microdata scope and type -->
<head itemscope itemtype="http://schema.org/Article">
<title>Social Site Example</title>
<!-- define ogp and itemprop of microdata in one line -->
<meta property="og:title" itemprop="name" content="Enjoy Fireworks">
<!-- define ogp image -->
<meta property="og:image" content=
"https://developers.google.com/web/imgs/fireworks.jpg">
https://github.com/facebook/react-native/commit/a3085464f6ea36fc6b53cd0c711c048ffb1516f9
https://github.com/facebook/react-native/issues/3049#issuecomment-143505930
https://certsimple.com/blog/deploy-node-on-linux
https://github.com/facebook/relay/pull/608
export default function rerender(options) {
const [React] = options.imports;
if (!React || !React.Component) {
throw new Error('imports[0] for react-transform-rerender does not look like React.');
}
return function wrap(ReactClass, componentId) {
const displayName = options.components[componentId].displayName || '<Unknown>';