Skip to content

Instantly share code, notes, and snippets.

View ziocleto's full-sized avatar
🎯
Focusing

Dado ziocleto

🎯
Focusing
View GitHub Profile
@ziocleto
ziocleto / TestAndSetFunctor.h
Created February 3, 2022 11:54
Simple "Test and Set" Functor template to avoid working with naked variables.
#pragma once
// Author: Dado, le Grand Fromage
//
// The purpose of this extremely simple template class is to address situations like these:
//
// if ( MyVariable )
// {
// [...]
// MyVariable = false;
@ziocleto
ziocleto / s3-artifacts.sh
Last active August 21, 2023 04:04
little util to upload/download artifacts using S3 as storage
#!/bin/bash -e
#
# Copyright 2014 Tony Burns
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ziocleto
ziocleto / s3-upload.sh
Last active November 23, 2018 15:21
A simple file based on Tony Burns s3-upload to upload files on S3, using aws credentials as parameters
#!/bin/bash -e
#
# Copyright 2014 Tony Burns
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#