Skip to content

Instantly share code, notes, and snippets.

View ronoaldo's full-sized avatar
🏠
Working from home

Ronoaldo Pereira ronoaldo

🏠
Working from home
View GitHub Profile
@ronoaldo
ronoaldo / RSS.gs
Last active November 29, 2022 18:01
Google Apps Script RSS Feed Generator
// O título do Feed
var FEED_TITLE = 'Meu Feed RSS';
// Descrição do Feed
var FEED_DESC = 'Esse é o meu Feed RSS';
// URL do Feed - O padrão aqui é usar a URL do próprio script
var FEED_URL = ScriptApp.getService().getUrl();
// O ID da planilha que vai alimentar o FEED
var SHEET_ID = 'ID DA PLANILHA AQUI';
function doGet(e) {
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
#!/usr/bin/env python
"""
A script to query the Amazon Web Services usage reports programmatically.
Ideally this wouldn't exist, and Amazon would provide an API we can use
instead, but hey - that's life.
Basically takes your AWS account username and password, logs into the
website as you, and grabs the data out. Always gets the 'All Usage Types'