Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Thomas fanatique

View GitHub Profile
View pebble-dictation.js
var UI = require('ui');
var Voice = require('ui/voice');
var ajax = require('ajax');
var main = new UI.Window({
fullscreen: true
});
main.on('show', function(e) {
Voice.dictate('start', true, function(e) {
View your-grandpas.php
<?php
include "./config.inc";
$result = mysql_query("SELECT * WHERE id=" . $_GET['id']);
if (!$result) {
die('Error: ' . mysql_error());
}
...
@fanatique
fanatique / bucket-policy.json
Created Jul 24, 2015
Amazon S3 Bucket Policy for Webhosting
View bucket-policy.json
{
"Version":"2012-10-17",
"Statement":[{
"Sid":"PublicReadGetObject",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::YOUR-BUCKET-NAME/*"
]
}
You can’t perform that action at this time.