I hereby claim:
- I am gcaracuel on github.
- I am gcaracuel (https://keybase.io/gcaracuel) on keybase.
- I have a public key ASBqEOCo9SagLdkVydj2gHvuDHJ0i2lVwM9bcD1p_lMZFQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| import sys | |
| import traceback | |
| from piou import Cli, Option | |
| import time | |
| import logging | |
| cli = Cli(propagate_options=True,description= | |
| """ |
| # Requirements: | |
| ## $ brew install yourtube-dl | |
| ## $ brew install ffmpeg | |
| # Download as Mp3 a full video | |
| youtube-dl -x --audio-format mp3 -o "%(title)s.%(ext)s" https://www.youtube.com/watch\?v\=TmKh7lAwnBI | |
| # Download as Mp3 a video cutting some seconds from beginning and the end | |
| youtube-dl -x --audio-format mp3 -o "%(title)s.%(ext)s" --postprocessor-args "-ss 00:00:09.00 -t 00:04:10.00" https://www.youtube.com/watch\?v\=k0VNCoy10xg |
| # OSX requirements: | |
| # brew install espeak | |
| # brew install sox | |
| # To std audio output: | |
| espeak "Hello, you have until next week to run these linux command. Or else.." --stdout | sox - -d tempo 0.75 bend 0.1,-500,0.5 chorus 0 1.5 20 1 3 8 -s echos .7 .7 100 .5 10 0.1 reverb | |
| # To output file: | |
| espeak "Hello, you have until next week to run these linux command. Or else.." --stdout | sox - output.wav tempo 0.75 bend 0.1,-500,0.5 chorus 0 1.5 20 1 3 8 -s echos .7 .7 100 .5 10 0.1 reverb |
| #!/usr/bin/env bash | |
| current_path=$(pwd) | |
| # Download latest version files in the current PATH | |
| curl -L -O $(curl -s https://api.github.com/repos/asciinema/asciinema-player/releases/latest | jq -r '.assets[0].browser_download_url') &&\ | |
| curl -L -O $(curl -s https://api.github.com/repos/asciinema/asciinema-player/releases/latest | jq -r '.assets[1].browser_download_url') | |
| # Modify HTML to point to your local asciinema recording file | |
| asciicast_file=$(find /tmp -maxdepth 1 -name \*.cast -printf "%T@ %Tc %p\n" | sort -n | head -1 | cut -f 8 -d' ') | |
| cp ${asciicast_file} ${current_path}/session.cast | |
| echo """<html> |
| #!/usr/bin/env python3 | |
| """ | |
| SYNOPSIS | |
| TODO: Resumed description [-h,--help] [-v,--verbose] [--version] | |
| DESCRIPTION | |
| TODO This describes how to use this script. This docstring | |
| will be printed by the script if there is an error or |
| #!/bin/sh | |
| # From https://github.com/HardySimpson/docker-cleanup | |
| >/tmp/run_image_ids.$$ | |
| DOCKER_BIN=/usr/bin/docker | |
| LOG=/var/log/docker-cleanup.log | |
| rm /tmp/run_image_ids.$$ |
| # Ensure $M2 & $M2_HOME are not set | |
| # Ensure Maven system package is not installed | |
| cd /tmp | |
| wget http://ftp.cixug.es/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | |
| wget https://archive.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz | |
| wget https://archive.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz | |
| cd /opt |
| #!/bin/bash | |
| # Install VirtualBox Extension Pack | |
| version=$(vboxmanage -v) | |
| var1=$(echo $version | cut -d 'r' -f 1) | |
| var2=$(echo $version | cut -d 'r' -f 2) | |
| file="Oracle_VM_VirtualBox_Extension_Pack-$var1-$var2.vbox-extpack" | |
| wget http://download.virtualbox.org/virtualbox/$var1/$file -O /tmp/$file | |
| # tip sudo vboxmanage extpack uninstall "Oracle VM VirtualBox Extension Pack" |
| #!/bin/sh | |
| # Sublime Text 3 install with Package Control (last update: 4 April 2015) | |
| # | |
| # No need to download this script, just run it on your terminal: | |
| # | |
| # $ curl -L git.io/sublimetext | sh | |
| # | |
| # When you need to update Sublime Text, run this script again. |