Skip to content

Instantly share code, notes, and snippets.

View Madh93's full-sized avatar
🏠
Working from home

Miguel Hernández Madh93

🏠
Working from home
View GitHub Profile
@Madh93
Madh93 / yt-dl.sh
Last active November 28, 2016 22:07
Get 1080p Youtube videos (or best available quality)
#! /bin/bash
# Requirements: youtube-dl (https://github.com/rg3/youtube-dl/)
if [ -n "$(youtube-dl --version)" ]; then
format=`youtube-dl -F "$1"`
if [ -n "$(echo "$format" | cut -d " " -f1 | grep 299)" ]; then
youtube-dl -f 299+140 "$1"
elif [ -n "$(echo "$format" | cut -d " " -f1 | grep 298)" ]; then
youtube-dl -f 298+140 "$1"
// ==UserScript==
// @name dpCat - Crear
// @namespace dpcat
// @description Crear nueva produccion
// @include http://127.0.0.1:8000/postproduccion/crear/
// @require https://code.jquery.com/jquery-2.2.3.min.js
// @version 1
// @grant none
// ==/UserScript==
@Madh93
Madh93 / gmailer.rb
Last active April 16, 2016 19:45
Check and notify new gmails
#! /usr/bin/env ruby
# NAME : gmailer.rb
# DESCRIPTION : Check and notify new gmails
# AUTHOR : Madh93 (Miguel Hernandez)
# VERSION : 0.0.1
# LICENSE : GNU General Public License v3
# USAGE : ruby gmailer.rb XML [OPTION]
require 'nokogiri'
@Madh93
Madh93 / xfcemon.sh
Created March 21, 2016 15:14
Launch XFCE/Cinnamon apps
#! /bin/bash
# NAME : xfcemon.sh
# DESCRIPTION : Launch XFCE/Cinnamon apps
# AUTHOR : Madh93 (Miguel Hernandez)
# VERSION : 0.0.1
# LICENSE : GNU General Public License v3
# USAGE : bash xfcemon.sh