cat ~/.ssh/id_rsa.pub | ssh usuario@hostremoto -p 22 'cat >> .ssh/authorized_keys'
Otra forma de hacerlo
ssh-copy-id -i ~/.ssh/id_rsa.pub usuario@hostremoto
cat ~/.ssh/id_rsa.pub | ssh usuario@hostremoto -p 22 'cat >> .ssh/authorized_keys'
Otra forma de hacerlo
ssh-copy-id -i ~/.ssh/id_rsa.pub usuario@hostremoto
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "uxa"
EndSection
on t1.year = 2003 and t2.year = 2003 and t1.otrocampo = t2.otrocampo
on t1.year = 2003 and t2.year = t1.year and t1.otrocampo = t2.otrocampo
select lpad(REGEXP_REPLACE(issn,'[^0-9X,]',''),8,'0') issn_normalizado from tabla
select title,issn,lpad( regexp_substr( REGEXP_REPLACE(issn,'[^0-9X,]',''), '^[^ ,]*') ,8,'0') issn1,lo único malo que si sólo hay un ISSN saldrá duplicado.
lpad( regexp_substr( REGEXP_REPLACE(issn,'[^0-9X,]',''), '[^ ,]*$') ,8,'0') issn2
from tabla
sudo lsusb
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 03f0:1027 Hewlett-Packard
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 1058:0748 Western Digital Technologies, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
sudo blkid
/dev/cciss/c0d0p2: UUID="86165349-5270-4ee2-af89-c9a0a1725780" TYPE="ext3"
/dev/cciss/c0d0p1: TYPE="swap" UUID="a24a8fc5-73b8-4679-b7d9-6f9a2bd29310"
/dev/sda1: LABEL="SCIM_UP8" UUID="12E8-0618" TYPE="vfat"
/dev/sdb1: UUID="48285059-4728-498f-9781-bb56d167eb69" TYPE="reiserfs"
/dev/sdc1: UUID="39a48089-1847-4697-8f22-d09bd8e447f0" TYPE="reiserfs"
/dev/sdd1: UUID="48285059-4728-498f-9781-bb56d167eb69" TYPE="reiserfs"
/dev/sde1: UUID="39a48089-1847-4697-8f22-d09bd8e447f0" TYPE="reiserfs"
/dev/dm-2: UUID="48285059-4728-498f-9781-bb56d167eb69" TYPE="reiserfs"
/dev/dm-3: UUID="39a48089-1847-4697-8f22-d09bd8e447f0" TYPE="reiserfs"
/dev/dm-5: LABEL="DISCO_X8" UUID="12E8-0619" TYPE="vfat"
sudo mkdir /mnt/externo-usb
mount -t vfat /dev/dm-5 /mnt/externo-usb
mount -l | grep mnt/dev/dm-5 on /mnt/externo-usb type vfat (rw) [DISCO_UP8]
umount /mnt/externo-usbEl comando sync limpia los buffer y escribe todos los datos pendientes.
sync
FUNCTION md5hash (str IN VARCHAR2)
RETURN VARCHAR2
IS v_checksum VARCHAR2(32);
BEGIN
v_checksum := LOWER( RAWTOHEX( UTL_RAW.CAST_TO_RAW( sys.dbms_obfuscation_toolkit.md5(input_string => str) ) ) );
RETURN v_checksum;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
-- Consider logging the error and then re-raise
RAISE;
END md5hash;
select md5hash('diego') from dual;Resultado:
create or replace
FUNCTION md5raw (str IN VARCHAR2)
RETURN RAW
IS v_checksum VARCHAR2(32);
BEGIN
v_checksum := UTL_RAW.CAST_TO_RAW( sys.dbms_obfuscation_toolkit.md5(input_string => str) ) ;
RETURN v_checksum;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
-- Consider logging the error and then re-raise
RAISE;
END md5raw;
drop table tmp_die_md5;Fuente:
create table tmp_die_md5(md5 raw(16) );
insert into tmp_die_md5 select md5raw('Diego') from dual;
select * from tmp_die_md5 where md5= '4FB845C67D91BCB3178498FC6FE1FEDC' ;
select * from tmp_die_md5 where md5= ( md5raw('Diego'));
> gnome-terminalEjecutamos lo siguiente:
Falló en GConf: No se pudo contactar con el servidor de configuración: Error de D-Bus: El demonio de GConf se está apagando en este momento
killall gconfd-2
select object_name, created from user_objectsPara obtener todas las fechas de creación de todas las tablas del usuario:
where object_name = 'NOMBRE_TABLA'
AND object_type = 'TABLE';
select object_name, created from user_objects
where object_name in (select table_name from user_tables )
AND object_type = 'TABLE'
order by created desc;
echo -e "\n linea 1 \n linea 2 \n" > salida.txtSe usa el -e y el salto de línea se reprenta con \n, y todo va entrecomillado.