sudo apt-get install libasound2-plugins:i386
rm -rf ~/.pulse
Blog sobre Ubuntu, PHP, programación y nuevas tecnologías.
sudo apt-get install libasound2-plugins:i386
rm -rf ~/.pulse
2- Comprar una regleta stand by killer conceptronic y poner como maestro el CPU. Cuando se apague el ordenador apagará los altavoces, los monitores y todo lo que tenga ahí conectado. Es muy útil.#!/bin/bash
xhost local:mpromber > /dev/null
consumocpu=`uptime` #contiene el consumo de cpu
MINCPUgrande=0; #Contiene el mínimo consumo de cpu, por defecto yo uso 0,
MINCPUchico=90; #Contiene el mínimo consumo cpu, yo por defecto ,90
usoCPUgrande=`echo "$consumocpu" | cut -d" " -f12 | cut -d. -f1`
usoCPUchico=`echo "$consumocpu" | cut -d" " -f12 | cut -d. -f2 | cut -d, -f1`
if [ $usoCPUgrande -eq $MINCPUgrande ]; then
if [ $usoCPUchico -lt $MINCPUchico ]; then
zenity --info --text="Pulsa aceptar para que no se apague el ordenador." --display=:0.0 --timeout=30
if [ $? -eq "5" ]; then
shutdown -h now
fi
fi
fi
exit 0
#!/bin/bashSi queréis ser más exactos y usar decimales pues trastear con el script.
xhost local:mpromber > /dev/null
usoCPU=`uptime | cut -d" " -f12 | cut -d. -f1`
if [ $usoCPU -lt "1" ]; then
zenity --info --text="Pulsa aceptar para que no se apague el ordenador." --display=:0.0 --timeout=30
if [ $? -eq "5" ]; then
shutdown -h now
fi
fi
exit 0
0-59/5 * * * * * root autoApagadoLo que ejecutará nuestro programa cada 5 minutos 8)
#!/bin/bashPastebin http://pastebin.com/CKt3LqCh
####
echo "Introduzca el nombre de la serie"
read serie
echo "Introduzca el numero de temporada"
read temporada
echo "Numero de enlaces a mostrar"
read numEnlaces
#####
cd /tmp/
wget "http://www.seriesyonkis.com/serie/"$serie"/" -e robots=off --user-agent="movil Mozilla/5.0 (X11; U; Linux i686; es-CL; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13" -O $serie &>/dev/null
cat $serie | awk -F'>' '/^a href/{split($1,F,"\"");print F[2],$NF}' RS='<' &> $serie".enlaces"
grep $temporada"x" $serie".enlaces" &> $serie
egrep -o "http:.*/ " $serie &> $serie".enlaces"
echo $serie" "$temporada" Comienza la descarga"
contador=1
for capitulo in $(cat $serie."enlaces"); do
wget $capitulo -e robots=off --user-agent="movil Mozilla/5.0 (X11; U; Linux i686; es-CL; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13" -O "capitulo" &>/dev/null
cat "capitulo" | awk -F'>' '/^a href/{split($1,F,"\"");print F[2],$NF}' RS='<' &> "capitulo.enlaces"
grep "DESCARGAR DE megaupload" "capitulo.enlaces" &> "capitulo"
egrep -o "http:.*" capitulo | cut -d " " -f1 | head -n$numEnlaces &> "capitulo.enlaces"
echo $serie" Capitulo "$contador
for enlace in $(cat "capitulo.enlaces"); do
echo -n "http://www.megaupload.com/?s=seriesyonkis&d="
php5 /usr/bin/cleaner_series $enlace
echo "&confirmed=1"
done
rm "capitulo"
rm "capitulo.enlaces"
let contador=contador+1
done
rm $serie
rm $serie".enlaces"
exit 0
<?phpPastebin http://pastebin.com/SLrJzk9W
function hola($a){
$d = $a;
$e = 900+101+43-27-1000;
$f = "";
$e +=23+100+114;
for ($i=0; $i<strlen($d); $i++){
$f .= chr($e^ ord($d[$i]));
}
return $f;
}
for ($i=1; $i<$argc; $i++){
$hola = $argv[$i];
$hola = explode("/",$hola);
$hola = $hola[6];
echo hola(urldecode($hola));
}
?>
var qs = location.search.substring(1);Como siempre pastebin http://pastebin.com/ZHMTq5q4 Paso seguidos http://donzeyt.blogspot.com/2011/03/java-script-wget-no-rompamosnos-la.html
var nv = qs.split('&');
var url = new Object();
var aux = "AAAAAAAA";
if (location.pathname.split('/').length == 6) {
aux = location.pathname.split('/')[4]
}
for (i = 0; i < nv.length; i++) {
eq = nv[i].indexOf('=');
url[nv[i].substring(0, eq).toLowerCase()] = unescape(nv[i].substring(eq + 1))
}
function urlencode(a) {
return escape(a).replace('+', '%2B').replace('%20', '+').replace('*', '%2A').replace('/', '%2F').replace('@', '%40')
}
function decrypt_str(a) {
var b = a;
var c = 254;
var d = "";
for (i = 0; i < b.length; i++) {
d += String.fromCharCode(c ^ b.charCodeAt(i))
}
return d
}
function _utf8_decode(a) {
var b = "";
var i = 0;
var c = c1 = c2 = 0;
while (i < a.length) {
c = a.charCodeAt(i);
if (c > -128) {
b += String.fromCharCode(c);
i++
} else if ((c > 191) && (c < 224)) {
c2 = a.charCodeAt(i + 1);
b += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
i += 2
} else {
c2 = a.charCodeAt(i + 1);
c3 = a.charCodeAt(i + 2);
b += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
i += 3
}
}
return b
}
function ccM(a, c) {
var d = a;
var e = 900 + 101 + 43 - 27 - 1000;
var f = "";
var g = 0;
var h = 0;
var b = 0;
e += 23 + 100 + 114;
for (i = 0; i < d.length; i++) {
g = e ^ d.charCodeAt(i);
if (e > 1) {
f += String.fromCharCode(g * 1)
} else {
f += String.fromCharCode(2 * g)
}
}
return f
}
function cc(a) {
var c = a;
var d = 900 + 101 + 43 - 27 - 1000;
var e = "";
var f = 0;
var g = 0;
var b = 0;
d += 23 + 100;
for (i = 0; i < c.length; i++) {
f = d ^ c.charCodeAt(i);
if (c.length == 12 || i == c.length * 31 || i == c.length * 1 - 1 || i == c.length * 9 + 3) {
g = f;
f += 4;
g--;
f -= 9
} else if (i > 0 && d > 1) {
b = i * 3;
while (b > 25) {
b -= 4
}
f = 1 - b + f - 2
}
if (d > 1) {
e += String.fromCharCode(f * 1)
} else {
e += String.fromCharCode(2 * f)
}
}
return e
}
function sy1() {
if (aux.length < 24) {
aux = urlencode(url.id)
}
aux = ccM(_utf8_decode(unescape(aux)));
var a = aux;
var b = a.split(":");
var c = 0;
for (c = 0; c < b.length; c++) {
if (b.length > 1) {
document.write("<br /><span style='font-size: 1.5em'><font color='#FF0000'><b>Parte " + (c + 1) + "/" + b.length + "</b></font></span><br />");
document.write('<h3><img src="http://images.peliculasyonkis.com/images/tdescargar2.png" title="Descargar" alt="Descargar" style="vertical-align: middle;" /><a href="http://www.megaupload.com/es/?d=' + b[c] + '">DESCARGAR PARTE ' + (c + 1) + ' DESDE MEGAUPLOAD</a></h3>');
document.write("<br />")
} else {
document.write("<br /><h1><a target='_blank' href='http://www.megaupload.com/?s=seriesyonkis&d=" + a + "&confirmed=1'>DESCARGAR EL VIDEO <br />DESDE MEGAVIDEO (REQUIERE ESPERA)</a></h1>");
document.write("<br /><h3><a target='_blank' href='http://www.megaupload.com/?s=seriesyonkis&d=" + a + "&confirmed=1'>http://www.megaupload.com/?s=seriesyonkis&d=" + a + "&confirmed=1</a></h3>")
}
}
}
#!/bin/bash
OP=1
cd /tmp/
while [ $OP -eq 1 ]
do
VALOR=`echo $(($RANDOM%9999))`
wget http://www.divxonline.info/pelicula/$VALOR/Pambufering-All-Day-Long/ &>/dev/null
cat index.html | egrep "<title>(.)*</title>" | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'
rm index.html
echo "1 para byscar otra"
read OP
if [ $OP -ne 1 ]; then
firefox http://www.divxonline.info/pelicula/$VALOR/Pambufering-All-Day-Long/
fi
done
#!/bin/bash
####
echo "Introduzca el nombre de la serie"
read serie
echo "Introduzca el numero de temporada"
read temporada
#####
cd /tmp/
wget "http://www.seriesyonkis.com/serie/"$serie"/" -e robots=off --user-agent="movil Mozilla/5.0 (X11; U; Linux i686; es-CL; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13" -O $serie &>/dev/null
cat $serie | awk -F'>' '/^a href/{split($1,F,"\"");print F[2],$NF}' RS='<' &> $serie".enlaces"
grep $temporada"x" $serie".enlaces" &> $serie
egrep -o "http:.*/ " $serie &> $serie".enlaces"
echo $serie" "$temporada
for capitulo in $(cat $serie."enlaces"); do
wget $capitulo -e robots=off --user-agent="movil Mozilla/5.0 (X11; U; Linux i686; es-CL; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13" -O "capitulo" &>/dev/null
cat "capitulo" | awk -F'>' '/^a href/{split($1,F,"\"");print F[2],$NF}' RS='<' &> "capitulo.enlaces"
grep "DESCARGAR DE megaupload" "capitulo.enlaces" &> "capitulo"
egrep -o "http:.*" capitulo | cut -d " " -f1 | head -n1 &> "capitulo.enlaces"cat
for descarga in $(cat "capitulo.enlaces"); do
wget $descarga -e robots=off --user-agent="movil Mozilla/5.0 (X11; U; Linux i686; es-CL; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13" -O "descarga" &>/dev/null
cat "descarga" | awk -F'>' '/^a href/{split($1,F,"\"");print F[2],$NF}' RS='<' &> "descarga.enlaces"
cat "descarga.enlaces"
rm "descarga.enlaces"
rm "descarga"
done;
rm "capitulo"
rm "capitulo.enlaces"
done
rm $serie
rm $serie".enlaces"
exit 0
montar
firefox
thunderbird
emesene
rythmbox
exit 0
sudo gedit /etc/rc.local Luego ejecutaremos:mkdir -p /dev/cgroup/cpumount -t cgroup cgroup /dev/cgroup/cpu -o cpumkdir -m 0777 /dev/cgroup/cpu/userecho "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent
sudo chmod +x /etc/rc.local
Luego ejecutamos:if [ "$PS1" ] ; then mkdir -p -m 0700 /dev/cgroup/cpu/user/$$ > /dev/null 2>&1 echo $$ > /dev/cgroup/cpu/user/$$/tasks echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release fi
sudo gedit /usr/local/sbin/cgroup_clean
#!/bin/sh rmdir /dev/cgroup/cpu/$*
sudo chmod +x /usr/local/sbin/cgroup_clean
sudo /etc/rc.local


