Skip to content

Instantly share code, notes, and snippets.

View gist:ad098af6d8d1ca7462af3cbdf78b384f
"id": :person_id,
"last_name": ":lastname",
"first_name": ":firstname",
"preferred_name": null,
"gender": null,
"birth_country": "value 1",
"aborig_torres_cd": null,
"pasifika_pacific_islander": null,
"residency": null,
beanmoss / nginx.conf
Created August 30, 2018 11:41 — forked from thoop/nginx.conf
Official nginx.conf for nginx
View nginx.conf
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
root /path/to/your/root;
index index.html;
beanmoss /
Created August 7, 2017 10:47 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


beanmoss / fb-sytax-highlight.js
Created July 29, 2016 09:02
hightlight fb script posts
View fb-sytax-highlight.js
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
var observer = new MutationObserver(function (mutations, observer) {
observer.observe(document, {
subtree: true,
attributes: true
function syntaxHighlight() {
beanmoss / AhmedMehar.php
Created June 3, 2016 13:43
Ahmed Mehar
View AhmedMehar.php
<table border="1">
$aVeryLongWord = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad';
$chunks18 = str_split($aVeryLongWord,18);
foreach($chunks18 as $chunk)
echo "<tr>";
$oneChar = str_split($chunk,1);
foreach($oneChar as $char)
beanmoss / email.template.html
Created June 1, 2016 10:14
email template replace vars meteor
View email.template.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
%val1% %val2%
beanmoss /
Created April 18, 2016 17:48 — forked from soheilhy/
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for,, and on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

beanmoss / dBoxReadFile.js
Created April 14, 2016 16:12
Dropbox read file and serve it to the browser.
View dBoxReadFile.js
var Dropbox = require("dropbox");
var fs = require("fs");
var config = require('../config');
var client = new Dropbox.Client(config.dropbox);
getFile: function (file, res) {
client.readFile(file,{ buffer: true }, function (error, result) {
if (error) {
beanmoss / IDONTFUCKINGCARE bookmarklet
Last active July 17, 2017 13:53
pangchurva ng aldub, pastillas, otwol sa facebook!

#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!

I hope it helps you too!

fyi @mheiniger and me started with an installer here: