Skip to content

Instantly share code, notes, and snippets.

View benjamin-l-johnson's full-sized avatar

Benjamin benjamin-l-johnson

View GitHub Profile
@toneill818
toneill818 / S3TransferClientExample.cpp
Last active March 10, 2021 22:45
Short example of uploading and downloading files from S3 using the AWS C++ SDK
#include <aws/core/Aws.h> // Needed for InitAPI, SDKOptions, Logging, and ShutdownAPI
#include <aws/transfer/TransferClient.h> // Needed for the TransferClient
#include <aws/transfer/UploadFileRequest.h> // Needed to get the status of UploadFile
#include <aws/transfer/DownloadFileRequest.h> // Needed to get the status of DownloadFile
#include <iostream>
using namespace Aws::Transfer;
/*
* Example of how to download and upload using the Transfer Client
@amatus
amatus / rust_for_rpi.md
Last active February 18, 2017 21:13 — forked from anonymous/gist:6664882
Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

sudo apt-get install git build-essential
test `uname -m` = x86_64 && sudo apt-get install ia32-libs
git clone https://github.com/raspberrypi/tools.git
export PATH=$PWD/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
git clone http://github.com/mozilla/rust.git
cd rust
./configure --target-triples=arm-unknown-linux-gnueabihf

make