Skip to content

Instantly share code, notes, and snippets.

@itorres
itorres / boto3_hands_on.md
Created January 2, 2017 12:06 — forked from iMilnb/boto3_hands_on.md
Programmatically manipulate AWS resources with boto3 - a quick hands on

boto3 quick hands-on

This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].

First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as

  • [awscli][1] is boto-based
  • [awscli][1] usage is really close to boto's
@itorres
itorres / sort_torrents.py
Created January 7, 2017 14:03
This script sorts a directory full of torrents into subdirectories per tracker.
#!/usr/bin/env python3.5
import os
from urllib.parse import urlparse
def read_header(h):
assert(h[:11] == b'd8:announce')
ann_head_end = h.index(b':',11)
announce_length = int(h[11:ann_head_end])
announce_start = ann_head_end + 1
@itorres
itorres / config.scm
Created October 27, 2018 23:22 — forked from TeMPOraL/config.scm
GuixSD with custom kernel
(define-module (my packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages linux)
#:use-module (guix build-system trivial)
#:use-module (gnu)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix packages))
(define (linux-nonfree-urls version)