Crear archivo de 10MB llamado prueba
$:- creaFile.sh 10MB prueba
| #!/usr/bin/env bash | |
| for i in *; do convert "$i" "${i%.*}".pdf; done; |
| #! /usr/bin/env python | |
| # CARGA MASIVA POSTGRESQL | |
| # # -*- coding: UTF-8 | |
| # 100 Planes de precios con cuotas entre 20 y 100 euros | |
| # 500.000 clientes dados de alta | |
| # Cada cliente, tiene una línea dada de alta | |
| # Hay almacenados 12 millones de consumos de voz y de mensajes, repartidos entre todas las líneas y realizadas a lo largo de los meses del año 2014 | |
| # Cada lnea tiene una factura de acuerdo a su consumo y su plan de precios que tiene asociado para cada mes del año 2014 | |
| import random |
| #!/bin/bash | |
| imgsDir="$1"; | |
| file="$2"; | |
| extra=0; | |
| for i in "$imgsDir"*; do | |
| position=${i##*/}; | |
| position="${position%.*}"; | |
| if [ $position == 1 ]; then | |
| pdftk "$i" "$file" output tmp.pdf; | |
| else |
| <html> | |
| <head> | |
| <meta charset="unicode"> | |
| </head> | |
| <body> | |
| <script> | |
| document.write("YOUR MESSAGE HERE"); | |
| window.stop(); | |
| </script> | |
| </body> |
| #!/bin/sh | |
| #export BEEP=/usr/share/sounds/gnome/default/alerts/drip.ogg; | |
| #alias beep='paplay $BEEP'; | |
| paplay /usr/share/sounds/gnome/default/alerts/drip.ogg; | |
| notify-send "Installation completed" "Look at the terminal" -i /home/junquera/Imágenes/Iconos/usi.png; |
| #!/bin/bash | |
| sudo tar czf /backup.tar.gz -u --exclude=/backup.tar.gz --exclude=/home --exclude=/media --exclude=/dev --exclude=/mnt --exclude=/proc --exclude=/tmp /; |
| for i in $(find .); | |
| do | |
| if [ -d $i ]; | |
| then | |
| echo "Dir $i" | |
| else | |
| echo "File $i" && cat "$i" | |
| fi | |
| done |
| $('body').append($('img').map(function(){ | |
| return $(this).attr('src') | |
| }).get()) |
| function padToThree(number) { | |
| if (number<=9999) { number = ("00"+number).slice(-3); } | |
| return number; | |
| } | |
| function printDiv(divId) { | |
| var printContents = $(divId).html(); | |
| var originalContents = document.body.innerHTML; | |
| document.body.innerHTML = "<html><head><title></title></head><body>" + printContents + "</body>"; | |
| window.print(); | |
| document.body.innerHTML = originalContents; |