This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Este script genera un backup del directorio | |
#primero imprime en pantalla y luego captura el teclado | |
echo "Ingresa el directorio de origen: " | |
read dir1 | |
#comprime el directorio | |
tar -cvf Dir-Origen.tar $dir1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Programa en bash que cambia recursivamente la calidad de todos los ficheros | |
# .jpg a una calidad del 80%. | |
func_convertir() | |
{ | |
for Fichero in * | |
do | |
( | |
if [ -d "$Fichero" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# blogfoto | |
# Pequeño script que cambia la resolución de la imagenes del tamaño original a 800*600. Usa ImageMagick | |
# Además de reducir la calidad de la imagen resultante. | |
# Primero nos aseguramos que la extensión esté en minúsculas y creamos fotoblog | |
rename 's/.JPG/.jpg/' *.JPG | |
mkdir fotoblog | |
#Empezamos el ciclo con las fotos de extensión jpg para reducirlo a 800*600. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'RMagick' | |
# get the folder containing the original images | |
folder = ARGV[0] | |
# reduce by 35% = 35/100 | |
scale_by = 0.35 | |
# Get the images in the folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.corazon { | |
position: relative; | |
width: 100px; | |
height: 90px; | |
margin:0 auto; | |
} | |
.corazon::before, .corazon::after { | |
position: absolute; | |
content: ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/es_ES/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> | |
<div class="fb-post" data-href="https://www.facebook.com/media/set/?set=a.651394768231859.1073741833.442498065788198&type=1" data-width="470"><div class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/media/set/?set=a.651394768231859.1073741833.442498065788198&type=1">una publicación</a> de <a href="https://www.facebook.com/pages/GUL-UCA/442498065788198">GUL-UCA</a>.</div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mockup version="1.0" skin="sketch" fontFace="Balsamiq Sans" measuredW="1456" measuredH="1313" mockupW="1318" mockupH="1302"> | |
<controls> | |
<control controlID="36" controlTypeID="com.balsamiq.mockups::BrowserWindow" x="138" y="11" w="1025" h="1302" measuredW="450" measuredH="400" zOrder="1" locked="false" isInGroup="-1"> | |
<controlProperties> | |
<text>Flisol%20Managua%0Ahttp%3A//flisolmga.linuxtour.org</text> | |
</controlProperties> | |
</control> | |
<control controlID="38" controlTypeID="com.balsamiq.mockups::Canvas" x="824" y="951" w="310" h="244" measuredW="100" measuredH="70" zOrder="2" locked="false" isInGroup="-1"/> | |
<control controlID="39" controlTypeID="com.balsamiq.mockups::Map" x="853" y="962" w="-1" h="-1" measuredW="252" measuredH="222" zOrder="3" locked="false" isInGroup="-1"/> | |
<control controlID="40" controlTypeID="com.balsamiq.mockups::Canvas" x="167" y="951" w="310" h="244" measuredW="100" measuredH="70" zOrder="4" locked="false" isInGroup="-1"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
# -*- coding:UTF-8 -*- | |
import sys, base64, hashlib, hmac | |
from string import maketrans | |
#Codificacion con maketrans | |
MtuX=maketrans("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789","mab1c2z3k4h5f6s7p8i9y0rewqQW]RT[UI$%A(D-G)JK Z#CVB/M@&\*.;_^{}") | |
#Decodificación con makeTrans | |
Mtux=maketrans("mab1c2z3k4h5f6s7p8i9y0rewqQW]RT[UI$%A(D-G)JK Z#CVB/M@&\*.;_^{}","abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//encriptador en c++ | |
#include <iostream> | |
#include <cstdlib> | |
#include <cstring> | |
#include <ctype.h> | |
#include <conio.c> | |
#include <iostream> | |
using namespace std; | |
void EscribirEncrypt(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "HelloWorld", | |
"author": "Oscar Cortez", | |
"version": "0.0.1", | |
"description": "Agenda Sample Application", | |
"dependencies": { | |
"agenda": "*" | |
}, | |
"engine": "node 0.10.x" | |
} |
OlderNewer