Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonas Groth jonasgroth

View GitHub Profile
View post.js
console.log('Loading event');
var doc = require('dynamodb-doc');
var dynamodb = new doc.DynamoDB();
var request = require('request');
var akismet = require('akismet-api');
var validator = require('validator');
var client = akismet.client({
key : 'API_KEY', // Required!
blog : 'https://DOMAIN' // Required!
View read.js
console.log('Loading event');
var doc = require('dynamodb-doc');
var dynamodb = new doc.DynamoDB();
exports.handler = function(event, context, callback) {
console.log("Request received:\n", JSON.stringify(event));
var tableName = "jonasgroth.se_comments";
var post = event.queryStringParameters.post;
dynamodb.query({
TableName : tableName,
View gogs_pushbullet.php
<?php
$json = file_get_contents('php://input');
$obj = json_decode($json);
$text = "";
$repository_name = $obj->repository->name;
$repository_url = $obj->repository->html_url;
foreach($obj->commits as $commit){
View keybase.md

Keybase proof

I hereby claim:

  • I am jonasgroth on github.
  • I am jonasgroth (https://keybase.io/jonasgroth) on keybase.
  • I have a public key whose fingerprint is AA2A 9A12 9CEA 55B5 1559 5B2E 3DB0 8DEC F57E BA1E

To claim this, I am signing this object:

View gist:ed87b704e5049a00f002ae41f44690d6
Verifying that "jonasgroth.id" is my Blockstack ID. https://onename.com/jonasgroth
You can’t perform that action at this time.