Skip to content

Instantly share code, notes, and snippets.

View angelbladex's full-sized avatar

Luis García angelbladex

View GitHub Profile
@angelbladex
angelbladex / extract
Last active December 14, 2015 00:29 — forked from guerrerocarlos/.bashrc
Un simple script en Bash para facilitar extraer contenido de algunos comprimidos -- An simple script on Bash for extract content from some compressed file
#! /bin/bash
##This can be on /bin/ or /usr/bin or any site of your $PATH
####Based on https://gist.github.com/guerrerocarlos/3977495
if [[ ! -n "$1" ]];then
echo "Archivo no ingresado"
exit
fi
@angelbladex
angelbladex / validate.sh
Last active August 29, 2015 14:05 — forked from hrwgc/validate.sh
validate a url with wget
#!/bin/bash
# simple function to check http response code before downloading a remote file
# example usage:
# if `validate_url $url >/dev/null`; then dosomething; else echo "does not exist"; fi
function validate_url(){
@angelbladex
angelbladex / pm.h diff update
Created June 6, 2016 11:57 — forked from guilespi/pm.h diff update
Compile latest igb driver on debian squeeze 2.6.32-5-amd64
/*When presented with failure
*igb-3.4.8/src/igb_main.c:193: error: implicit declaration of function SET_RUNTIME_PM_OPS
*
*Add the following macro to
*/usr/src/linux-headers-2.6.32-5-common/include/linux/pm.h
*/
#ifdef CONFIG_PM_RUNTIME
#define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) \
.runtime_suspend = suspend_fn, \
.runtime_resume = resume_fn, \