This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Inspired by https://gist.github.com/flah00/959251f74ba2aa797b24 | |
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile with | |
// gcc -o /etc/bin/autossh autossh.c | |
#include <stdio.h> | |
int main(int argc, char *argv[]) { | |
while(1) { | |
sleep(60); | |
printf(".\n"); | |
} | |
} |