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
# Tint2 theme | |
# By Juanjo Salvador (@Linuxneitor) | |
# http://juanjosalvador.github.io/ | |
# To use this as default tint2 config: save as $HOME/.config/tint2/tint2rc | |
# Background definitions | |
# ID 1 | |
rounded = 0 | |
border_width = 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
# Alpha Green Theme | |
# by SrFreak | |
# | |
# Personal website http://juanjosalvador.github.io | |
# Email juanjosalvador@openmailbox.org | |
# Element Color 1 Color 2 | |
background = default default | |
frame = white default |
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
public class main { | |
public static void cambiaLetras() { | |
try { | |
FileReader fr = new FileReader("texto.txt"); | |
BufferedReader br = new BufferedReader(fr); | |
String str = null; | |
while ((str = br.readLine()) != null) { | |
for (int i = 0; i < str.length(); i++) { |
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 | |
# To capitalize city name. | |
function toCapital | |
{ | |
for x in $* | |
do | |
echo -n ${x:0:1} | tr '[a-z]' '[A-Z]' | xargs echo -n | |
echo -n ${x:1} | tr '[A-Z]' '[a-z]' | xargs echo -n | |
done |
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
# Minimal Conky conf | |
# By Juanjo Salvador (http://juanjosalvador.es) | |
background no | |
use_xft yes | |
xftfont Sans:size=8 | |
xftalpha 1 | |
update_interval 1 | |
total_run_times 0 | |
own_window yes |
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 | |
# Obtiene la fecha del sistema | |
DATE=`date +%Y-%m-%d` | |
# Convierte en una cadena separada por guiones el nombre del archivo | |
NAME=`echo $* | tr " " -` |
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 | |
# Extrae los subtitulos de los archivos MKV contenidos en la carpeta donde se ejecute el script. | |
# Se puede modificar para extraer cualquier otra pista que no sean los subtítulos. | |
# Nombre de los subtitulos | |
subsName="eng-subs" | |
# Formato de los subtitulos (ass, srt) | |
subsFormat="ass" |
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
# Put the script on ~/.bashrc | |
# To use it, type extract <filename> | |
extract () { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xvjf $1 ;; | |
*.tar.gz) tar xvzf $1 ;; | |
*.tar.xz) tar xvJf $1 ;; | |
*.bz2) bunzip2 $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/bash | |
echo "Instalador de esenciales" | |
echo "###############################" | |
# Comprueba si ha sido iniciado como SUDO | |
if [ "$EUID" -ne 0 ] | |
then echo "Necesita privilegios de superusuario" | |
exit |
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 | |
# Version 2.0 | |
# Author: Juanjo Salvador | |
# Website: http://juanjosalvador.github.io/ | |
IFS=' | |
' | |
for i in * ; do |