Skip to content

Instantly share code, notes, and snippets.

View palladius's full-sized avatar
🎯
Focusing on GCP, RoR and SRE

Riccardo Carlesso palladius

🎯
Focusing on GCP, RoR and SRE
View GitHub Profile
@palladius
palladius / migrate-snippets.md
Last active April 19, 2023 14:34
Some cool Migration Org bash scripts
@palladius
palladius / latency-eu-us-script
Last active August 29, 2015 14:04
Test latency to two EU/US-hosted otherwise-identical GAE apps
#!/bin/bash
# This script tries to find the difference in latency between Us/EU HTTP/HTTPS AppEngine apps.
# Also testing a simple '/' path from a '/slow' (which does a sleep(1) and simulates some traffic on page).
# Appids:
# - http://eu-ricc-test.appspot.com/
# - http://us-ricc-test.appspot.com/
VER=1.1c

Google Compute Engine Cost Calculation

This code computes the current hourly and monthly cost of a project on Google Compute Engine. It uses this pricing page as the reference.

Read raw json files

Read all the files produced by gcutil. Then turn each file content into json.

@palladius
palladius / rcarlesso-ggadget-helloworld.xml
Created November 22, 2012 14:48
HelloWorld Riccardo GGadget v1.2
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Developer Forum v1.2"
title_url="http://groups.google.com/group/Google-Gadgets-API"
height="200"
category="from_googlers"
author="Riccardo Carlesso"
author_email="ricc@google.com"
>
<Require feature="setprefs" />
@palladius
palladius / itunes.sh
Created December 11, 2011 12:16 — forked from rkumar/itunes.sh
control iTunes from command line (fichissimo!)
#!/bin/bash
#
####################################
# iTunes Command Line Control v1.0
# originally written by David Schlosnagle
# created 2001.11.08
# edit 2010.06.01 rahul kumar
# edit 2011.12.11 Riccardo Carlesso
####################################