Skip to content

Instantly share code, notes, and snippets.

@agbaraka
agbaraka / parse_json_post.go
Last active March 3, 2018 13:32 — forked from andreagrandi/parse_json_post.go
Parse a JSON http POST in GoLang
package main
import (
"encoding/json"
"fmt"
"net/http"
)
type test_struct struct {
Test string
@agbaraka
agbaraka / app.yaml
Created August 18, 2017 06:49 — forked from darktable/app.yaml
GAE: App.yaml designed for serving a static site on Google App Engine (Python). Copy your static html and files into a folder called "static" next to app.yaml. Contains a bunch of mimetype declarations from html5boilerplate's .htaccess. May not be neces
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
@agbaraka
agbaraka / cliserver.php
Created July 7, 2017 08:26 — forked from ckressibucher/cliserver.php
Router script for PHP built in server
<?php
// public/cliserver.php (router script)
if (php_sapi_name() !== 'cli-server') {
die('this is only for the php development server');
}
if (is_file($_SERVER['DOCUMENT_ROOT'].'/'.$_SERVER['SCRIPT_NAME'])) {
// probably a static file...
return false;
@agbaraka
agbaraka / creative-cloud-disable.md
Created May 19, 2017 07:00 — forked from andreibosco/creative-cloud-disable.md
disable creative cloud startup on mac