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/sh | |
# lowerit | |
# Convertir todos los nombres de los archivos en el directorio actual a minúsculas | |
# Sólo opera en archivos planos - no cambia el nombre de los directorios | |
# Solicitará la verificación antes de sobrescribir un archivo existente | |
for x in `ls` | |
do | |
if [ ! -f $x ]; then | |
continue | |
fi |
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
ssh -L 5901:127.0.0.1:5901 -N -f -l juan juan-server | |
ssh-keygen -f "/home/user/.ssh/known_hosts" -R gitlab.option.cl |
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 | |
# Compiz-Check -- script to test if your system is able to run Compiz | |
# | |
# Copyright (c) 2008 Nick Bauermeister <[email protected]> | |
# | |
# This program is free software. Feel free to redistribute and/or | |
# modify it under the terms of the GNU General Public License v3 | |
# as published by the Free Software Foundation. | |
# | |
# This program is distributed in the hope that it will be useful |
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 | |
# converting all files in a dir to utf8 | |
for f in * | |
do | |
if test -f $f | |
then | |
echo -e "\nConverting $f" | |
CHARSET="$( file -bi "$f"|awk -F "=" '{print $2}')" | |
if [ "$CHARSET" != utf-8 ]; 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 | |
# Flush file system buffers by executing | |
sync; | |
# free page cache | |
echo 1 > /proc/sys/vm/drop_caches; | |
# free dentries and inodes | |
echo 2 > /proc/sys/vm/drop_caches | |
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 | |
# must install notification-daemon package | |
# low battery in % | |
LOW_BATTERY="15" | |
# critical battery in % (execute action) | |
CRITICAL_BATTERY="10" | |
# action | |
ACTION="/sbin/poweroff" | |
# display icon | |
ICON="/usr/share/icons/gnome/32x32/status/battery-caution.png" |
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 | |
# Reads a given directory and set a random | |
# wallpaper using the images on that dir. | |
# fluxbox wm | |
WALLPAPERDIR="$HOME/wallpapers" | |
if [[ -d "${WALLPAPERDIR}" ]] | |
then | |
while(true) |
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 | |
IN="LVDS1" | |
EXT="VGA1" | |
if (xrandr | grep "$EXT disconnected"); then | |
xrandr --output DVI1 --off --output VIRTUAL1 --off --output LVDS1 --mode 1024x768 --pos 0x0 --rotate normal --output VGA1 --off | |
else | |
xrandr --output DVI1 --off --output VIRTUAL1 --off --output LVDS1 --mode 1024x768 --pos 0x0 --rotate normal --output VGA1 --mode 1440x900 --pos 1024x0 --rotate normal | |
fi |
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
<?php | |
for ($i = $start; $i < $end; true) { | |
if ($batch > ($end - $i)) { | |
$batch = ($end - $i); | |
} | |
if ($end !== $companyRepo - > getCountCompanyByAccount($this - > accountId)) { | |
$end = $companyRepo - > getCountCompanyByAccount($this - > accountId); | |
$i = 0; | |
} else { | |
$i += $batch; |
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
$(document).ready(function(){$(".LikeLink.like").each(function(){$(this).trigger('click')}).promise().done(setTimeout(function(){ window.location = $(".pageNavHeader").next("nav").find("a.text:last").attr("href");}, 10000));}) |
OlderNewer