Skip to content

Instantly share code, notes, and snippets.

View Alexand's full-sized avatar

João Cunha Alexand

View GitHub Profile
Alexand / glacier_uploader.rb
Created July 19, 2018 08:42 — forked from flah00/glacier_uploader.rb
Upload an archive to AWS Glacier, automatically splitting the file, if necessary
#!/usr/bin/env ruby
# Inspired by
# Usage: ruby glacier_uploader.rb VAULT /PATH/TO/FILE [NUM_PARTS] [RETRIES]
# files larger than 100mb must be broken up into chunks 1mb-4gb
# total chunks cannot exceed 10,000
# chunk sizes must be a power of 2
require 'aws-sdk'

Keybase proof

I hereby claim:

  • I am Alexand on github.
  • I am alexand ( on keybase.
  • I have a public key whose fingerprint is 33B4 1ADE 0CE9 00A9 83F1 73F8 8C89 96F8 E793 42D8

To claim this, I am signing this object:

Alexand / autossh.c
Created June 9, 2016 15:00 — forked from czerasz/autossh.c
useful commands
// Compile with
// gcc -o /etc/bin/autossh autossh.c
#include <stdio.h>
int main(int argc, char *argv[]) {
while(1) {