Skip to content

Instantly share code, notes, and snippets.

fiatjaf fiatjaf

Block or report user

Report or block fiatjaf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cloudwatch-alarm-to-pushbullet.jq
# requires 'Access-Token' header
device_iden: "<pushbullet device id>",
type: "note",
title: "\(.Message | fromjson | .NewStateValue): \(.Message | fromjson | .AlarmName)",
body: "\(.Message | fromjson | .AlarmDescription) -- \(.Message | fromjson | .NewStateReason) -- \(.Message | fromjson | .StateChangeTime)"

Problem: Advertising is hard, reaching the correct people with advertising is hard -- probably easier with Adwords than in the real world, but still hard --, and is getting harder as more money is spent on internet advertising. At the same time, ad blockers are quickly spreading and maybe will soon kill all the sources of advertising, bad for personal websites, bad for small companies using Adwords.

Solution: Think affiliate marketing. Now think manual advertising contracts (when a blogger or a podcaster explicitly recommends some website or local business in his writing/talking). This tool would combine these two to get some level of automation in the process. It would beat ad blockers, give a personal touch to the advertising and release companies and bloggers from the pain of manually contracting.

How would it work?

(Let's imagine this service is hosted at, which is obviously not true). Let's see an example. A blogger writes about the topic of fishing for beginner fishers. He has a lot of fi

fiatjaf / apply-masonry.js
Created Mar 28, 2016
Masonry layout to Classless
View apply-masonry.js
var msnry = new Masonry( 'main > section > ul', {
columnWidth: 'li',
itemSelector: 'li',
percentPosition: true,
gutter: 0
fiatjaf /
Created Mar 10, 2016 — forked from plugnburn/
Psto: a single package.json to scaffold and run your single-post web page in no time


This is a no-brainer to get your single-post web page up and running. Just have to have Node and NPM installed. Styling is powered by 999.css.


  1. Place the below package.json into an empty directory and enter this directory in your command line prompt.
  2. Run npm run scaffold.
  3. Edit domain, title and author in the config section of your package.json. The domain may be either a Surge subdomain or your own (please refer to the Surge docs). If you're going to host your page yourself, you may leave domain empty.
View A afirmação da Filosofia no Livro 1 da República, Eduardo Levy.docx.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="generator" content="LibreOffice (Linux)">
<meta name="created" content="0;0">
<meta name="changed" content="0;0">
<style type="text/css">
fiatjaf /
Last active Oct 7, 2015
opinionated URL normalization function written in PL/pgSQL

A function that takes a URL string and returns it with

  • https replaced by http (all sites support http endpoints, only some support https);
  • www. removed (all sites should support naked domains);
  • ending slash / removed from path;
  • lowercased domain (but not path);
  • querystring parameters removed, except those listed in the allowed_params table, which expects records like the following:
              hostpath               |  param   
fiatjaf / docs.websitesfortrello.css
Last active Aug 29, 2015
Small CSS and JS includes
View docs.websitesfortrello.css
body > header, body > aside { background-color: #2DB284 !important }
fiatjaf /
Last active Aug 29, 2015 utils
fiatjaf / map.geojson
Last active Aug 29, 2015
mapa de referências diretas e indiretas do Uma Nova História da Música, Otto Maria Carpeaux
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.