Skip to content

Instantly share code, notes, and snippets.

View romuloceccon's full-sized avatar

Rômulo Ceccon romuloceccon

  • Frankfurt am Main, Deutschland
View GitHub Profile
@TheSkorm
TheSkorm / gist:cb9171e92d0db850363f
Last active October 7, 2021 13:55
ec2 download torrent
#!/bin/bash
#don't actually use this - it's silly
#sns needs to be setup
#ec2 role must have access to read tags, write to s3 and publish to sns
#start isntance with
#aws ec2 run-instances --image-id ami-fd9cecc7 --count 1 --instance-type t2.micro --key-name deb --security-group-ids sg-c948cbac --subnet-id subnet-ff9b3a9a --user-data "`base64 ~/download.sh`" --instance-initiated-shutdown-behavior terminate --associate-public-ip-address --iam-profile pirate
#set the download url with once you have the instanceid
#aws ec2 create-tags --resources i-54388388 --tags Key=URL,Value="http://cdimage.debian.org/debian-cd/8.0.0/amd64/bt-cd/debian-8.0.0-amd64-netinst.iso.torrent"
@rsvp
rsvp / noise.sh
Last active September 20, 2024 17:37
noise : relaxing ambient Brown noise generator (cf. white noise) | Linux bash script using sox | CogSci notes
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2019-01-02
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)