Skip to content

Instantly share code, notes, and snippets.

@tuxetuxe
tuxetuxe / s3-download-pgp-decrypt-encrypt-upload.sh
Last active February 23, 2023 14:16
A simple bash script that downloads files from an S3 bucket, decrypts them (PGP), encrypts them back with another key and uploads them to another S3 bucket
#!/bin/bash
# set -x
# Utility functions
printResultMark() {
if [ $? -eq 0 ]; then
echo " ✅"
else
echo " ❌"
fi
#!/usr/bin/python
#
# Quick and hacky script to extract the statistics relevant to a user in github (public or enterprise)
#
# NEEDS:
# pip install PyGithub
#
import operator

Keybase proof

I hereby claim:

  • I am tuxetuxe on github.
  • I am tuxetuxe (https://keybase.io/tuxetuxe) on keybase.
  • I have a public key whose fingerprint is EF8F E7C8 47D5 2EE2 F522 2719 ACEC 11FA E12B 18CF

To claim this, I am signing this object:

@tuxetuxe
tuxetuxe / eur2usd.py
Created June 15, 2015 17:55
Converts multiple amounts in EUR to USD with the latest rates from Yahoo!
# pip install money
# pip install babel
import requests
from money import Money
from decimal import Decimal
import sys
import time
print time.strftime("%c")
@tuxetuxe
tuxetuxe / downloader.py
Last active December 25, 2015 19:39
python downloader
#!/usr/bin/python
# REQUIREMENTS
# python ;)
#
# USAGE
# python downloader.py -p proxies.csv -t targets.csv
#
# targets.csv
# interval,url
@tuxetuxe
tuxetuxe / 30-income-calculon.pl
Last active December 14, 2015 01:49 — forked from jrluis/30-income-calculon.pl
Updated to 2013 tax brackets. Added a per month column to results (assumes 12 monthly payments in a year). Added Income and Tax difference between 30% and full taxes. Minor visual tweaks.
use strict;
use warnings;
use Text::TabularDisplay;
use List::Util qw(sum);
my $start = 5_000 || $ARGV[0];
my $end = 120_000 || $ARGV[1];
my $step = 2_500 || $ARGV[2];
my @data;