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
--[[ | |
Lua log mod_mam reader (Prosody) | |
Alexandre Espinosa Menor <aemenor@gmail.com> | |
To use: lua arg[0] [FILE | LOG_DIR] | |
Note: LOG_DIR usually is /var/lib/prosody/VIRTUALHOST/archive2 | |
--]] | |
require 'lfs' |
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 | |
#programado por Juanmol para http://rsppi.blogspot.com | |
# Alexandre Espinosa Menor <aemenor@gmail.com> | |
# Identificaçom (password de seguridade e control de usuario) | |
# password por seguridade, por se muda o resource e nom temos acesso á raspberry | |
# Uso: Enviar password antes do resto | |
PASSWORD="chave" | |
PASSWORD_RECIBIDO=$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
on run {input, parameters} | |
open location "http://estraviz.org/" & input | |
end run |
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
-- MySQL query to get total from each distinct initial letter from a dictionary database, with special cases like suffix (-grafia, -inho) | |
-- Fields: dic_word, DB: nuke_dictionary | |
-- | |
SELECT | |
IF( | |
SUBSTRING( dic_word, 1, 1 ) IN ('&', '-'), | |
SUBSTRING( dic_word, 2, 1 ), | |
SUBSTRING( dic_word, 1, 1 ) | |
) AS inicial |
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
// ==UserScript== | |
// @name faces2newsgithub.js | |
// @namespace https://github.com/alexandregz/ | |
// @version 0.1 | |
// @description put avatars in the news feed page from github | |
// @match https://github.com/ | |
// @copyright 2014+, Alexandre Espinosa Menor | |
// ==/UserScript== | |
// ToDo |
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
tell application "Mail" | |
set theSelection to selection | |
set theMessage to item 1 of theSelection | |
content of theMessage | |
end tell |
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 | |
# Based on http://jollyjinx.tumblr.com/post/34638496292/fusion-drive-on-older-macs-yes-since-apple-has | |
# To use this, first create a corestorage drive - see e.g. http://www.cnet.com/how-to/how-to-make-a-custom-corestorage-drive-in-os-x/ | |
# -- it'll look something like this: | |
# | |
# diskutil list # and figure out which actual drives you want to join | |
# diskutil cs create FusionGroup disk0 disk2 # or whichever two drives | |
# diskutil cs list # and note the Logical Volume Group ID | |
# diskutil cs createVolume GROUPID jhfs+ Fused 100% |
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 | |
# Author: phillips321 contact through phillips321.co.uk | |
# License: CC BY-SA 3.0 | |
# Use: | |
# Released: www.phillips321.co.uk | |
version=1.0 | |
# ChangeLog: | |
# v1.0 - now supports video conversion (mov and avi) | |
# - for more formats please contact me with requests as i dont have any sample mpg etc | |
# - ffmpeg output is surpressed (>/dev/null) |
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 | |
if [ "$#" -ne 1 ]; then | |
echo "Use: $0 inputfile" | |
exit | |
fi | |
INPUTFILE=$1 | |
OUTPUTFILE=$(echo $INPUTFILE | sed 's/\.[^\.]*$//')".mp4" |
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
# place to git, ipkg, another shell commands | |
PATH=/volume1/@optware/bin:$PATH | |
export PATH | |
# more useful prompt shell | |
#PS1="`hostname`> " | |
PS1='\u@\h:\w' | |
case `id -u` in | |
0) PS1="${PS1}# ";; |
OlderNewer