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 'Removiendo las configuraciones actuales del proxy en:' | |
sudo sh -c '(echo "g/^Acquire::http::proxy/d"; echo "wq") | ex -s /etc/apt/apt.conf' | |
sudo sh -c '(echo "g/^Acquire::https::proxy/d"; echo "wq") | ex -s /etc/apt/apt.conf' | |
sudo sh -c '(echo "g/^Acquire::ftp::proxy/d"; echo "wq") | ex -s /etc/apt/apt.conf' | |
echo '/etc/apt/apt.conf' | |
sudo sh -c '(echo "g/^http_proxy/d"; echo "wq") | ex -s /etc/environment' | |
sudo sh -c '(echo "g/^https_proxy/d"; echo "wq") | ex -s /etc/environment' | |
sudo sh -c '(echo "g/^ftp_proxy/d"; echo "wq") | ex -s /etc/environment' |
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 | |
// Datos de la conexion | |
$database = pg_connect("host='192.168.0.100' dbname='database' user='codusr' password='pass'"); | |
// Para utilizar pg_lo_export(), debemos llamarla dentro de un transaction block | |
pg_query($database, "begin"); | |
// Consulta SQL, documento es de tipo lo (large object) | |
$result = pg_query($database, "SELECT documento, nombre_en_disco from tabla_de_documentos"); |
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
import System.Environment (getArgs) | |
import Data.Char (isSpace) | |
-- linedit : Editor de textos | |
-- Autor : Eliseo Ocampos | |
-- Licencia : GPLv3 (http://www.gnu.org/copyleft/gpl.html) | |
-- Fecha creación : Noviembre, 2008 | |
-- 1ra. Revision: 17/12/2008 | |
main = do |
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
// --------------------------- | |
// SMS-TIGO (English Version) | |
// --------------------------- | |
var imageId = ""; | |
CmdUtils.CreateCommand({ | |
name: "sms-tigo", | |
icon: "http://www.tigo.com.py/favicon.ico", | |
author: { name: "Eliseo Ocampos", email: "[email protected]"}, | |
license: "MPL", | |
description: "Sends a SMS to a cell phone registered in Tigo (cell phone and telecomunications company: www.tigo.com.py)", |
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
// ------------------------ | |
// SMS-TIGO | |
// ------------------------ | |
var imageId = ""; | |
CmdUtils.CreateCommand({ | |
name: "sms-tigo", | |
icon: "http://www.tigo.com.py/favicon.ico", | |
author: { name: "Eliseo Ocampos", email: "[email protected]"}, | |
license: "MPL", | |
description: "Envia un SMS a Tigo", |
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
// ------------------------ | |
// RAE | |
// ------------------------ | |
CmdUtils.CreateCommand({ | |
name: "rae", | |
description: "Busca el significado de una palabra.", | |
help: "Utiliza el diccionario de la Real Academia Española <br> " + | |
"para buscar el significado de una palabra. <br> " + | |
"Probar utilizando "rae cornucopia" <br> " + | |
"(Basado en el comando define)" , |