Skip to content

Instantly share code, notes, and snippets.

View fedeonline's full-sized avatar
🗿
Writing code

Federico Pugnaloni fedeonline

🗿
Writing code
View GitHub Profile
@fedeonline
fedeonline / pi_qemu.sh
Created April 18, 2019 09:57 — forked from JasonGhent/pi_qemu.sh
OSX raspberry pi emulation via QEMU. v2 attempt @ https://gist.github.com/JasonGhent/922f38f57c8cb77b10f3
# pulled from http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
# expanded via http://superuser.com/questions/690060/how-to-enable-network-with-a-raspberry-pi-emulated-on-qemu
# tested with 2015-02-16-raspbian-wheezy.zip on OSX Mavericks
# OSX terminal
brew install qemu
# kernel-qemu is a linux kernel compiled with ARM1176 support.
# learn more here: http://xecdesign.com/compiling-a-kernel/
curl -OL http://xecdesign.com/downloads/linux-qemu/kernel-qemu
curl -o raspbian_latest.zip -L http://downloads.raspberrypi.org/raspbian_latest
@fedeonline
fedeonline / api-gateway-signed-request-ruby.MD
Created January 31, 2018 15:05 — forked from jtsaito/api-gateway-signed-request-ruby.MD
Signing requests for AWS API Gateway in Ruby

The AWS API Gateway supports signed requests as follows. The API Gateway client can use IAM credentials to sign a request in two steps:

  1. The original request headers and body are signed using the SDK supplied by AWS and the credentials
  2. The signature sets the X-Amz-SignedHeaders header

In practice, there are two ways for signing from a Ruby client using the AWS SDK: (1) signing with a Faraday plugin, (2) creating a Specific Gateway client using the Seahorse API declaration.

Here is a code snippet for the more quick and dirty Faraday solution.

Keybase proof

I hereby claim:

  • I am fedeonline on github.
  • I am fedeonline (https://keybase.io/fedeonline) on keybase.
  • I have a public key ASBejeoRWSSDAzQDS92h1wObn8L8go9qbMSiyfp7efWDTQo

To claim this, I am signing this object: