Está en: »

Notas y recortes

retornar una vista en vez de mostrarla – codeIgniter

codeIgniter

Para retornar una vista ya procesada en vez de mostrarla, hay que pasar un valor verdadero como tercer parámetro (true por ejemplo).

$vista = $this->load->view('mivista', $array_de_parametros, TRUE);

ClearOS Enterprise 5.1

Artículo interno dedicado: http://miguelcarmona.name/blog/clearos-introduccion-y-primeras-impresiones/

ClearOS Enterprise 5.1, una distribución de Linux orientada a tareas de servidor y puerta de enlace para pequeñas empresas y entornos distribuidos.

Sobre la base de CentOS, un clon de Red Hat Enterprise Linux, la distribución incluye una extensa lista de características y servicios integrados, fácilmente configurables a través de una intuitiva interfaz basada en web. Algunas de las herramientas que se incluyen son: antivirus, antispam, servidor VPN, filtrado de contenido, administrador de ancho de banda, certificación SSL, y analizador de registro web, sólo por mencionar algunos de los módulos disponibles. ClearOS se puede descargar gratuitamente, disponiendo además de actualizaciones de seguridad gratuitas durante 18 meses desde el lanzamiento.

Las principales novedades en ClearOS Enterprise 5.1 incluyen un sistema anti-phishing, soporte para clientes Windows 7 a través de Samba 3.4.3, herramienta de consola gráfica y usabilidad e interfaz web mejoradas, todo ello sobre un sistema base actualizado a CentOS 5.4.

vía Barrapunto | Publicado ClearOS Enterprise 5.1.

Nota: Creo que es un proyecto muy parecido a ebox, el cual me parece un proyecto realmente notable (y español).

Enlaces de interés:

Automatizar secuencias de acciones

bash

expect es un interprete de comandos que nos permite automatizar secuencias de acciones, de esta manera podemos evitar el tener que introducir comandos, solo lo hacemos la primera vez y el resto de veces se ejecuta ya lo que hubieramos realizado (de expect ya hable aunque por desgracia no tengo el tutorial a mano). Podeis encontrar mas informacion aqui.

Para instalar expect ejecutamos:

zypper install expect

Si instalamos tambien autoexpect. Podriamos ejecutarlo directamentes:

chmod +x ./autoexpect
./autoexpect

Grabar la secuencia de comandos que queremos automatizar, y para finalizar escribir “exit”. De esta manera se genera un fichero expect de comandos de manera automatica que luego podriamos ejecutar cuando quisieramos.

vía Tip Consola: Shell Script para reiniciar el router « Ubuntu Life.

Notas y Chuletas sobre sistemas *NIX

Linux Command Line Cheat Sheets

Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet

Solaris Cheat Sheets

Solaris Cheat Sheet Solaris Cheat Sheet

IBM (AIX) Cheat Sheets

AIX Cheat Sheet AIX APV Cheat Sheet

Debian/Ubuntu Cheat Sheets

Debian/Ubuntu Cheat Sheet Debian/Ubuntu Cheat Sheet Debian/Ubuntu Cheat Sheet

google_protectAndRun(“ads_core.google_render_ad”, google_handleError, google_render_ad);

Package Management Cheat Sheets

Linux Cheat Sheet Linux Cheat Sheet Linux Cheat Sheet

Unix Cheat Sheets

Linux Cheat Sheet Unux Cheat Sheet Unux Cheat Sheet Unux Cheat Sheet Unux Cheat Sheet Unux Cheat Sheet Unux Cheat Sheet Unux Cheat Sheet Unux Cheat Sheet Unux Cheat Sheet Unux Cheat Sheet

Bash Cheat Sheets

Linux Bash Cheat Sheet Linux Bash Cheat Sheet Linux Bash Cheat Sheet Linux Bash Cheat Sheet Linux Bash Cheat Sheet Linux Bash Cheat Sheet Linux Bash Cheat Sheet Linux Bash Cheat Sheet

Awk Cheat Sheets

Awk Cheat Sheet Awk Cheat Sheet Awk Cheat Sheet Awk Cheat Sheet Awk Cheat Sheet Awk Cheat Sheet

Ed Cheat Sheets

Sed Cheat Sheet

Sed Cheat Sheets

Sed Cheat Sheet Sed Cheat Sheet

GDB debugger Cheat Sheets

GDB Debugger Cheat Sheet

Fuente: http://www.scottklarr.com/topic/115/linux-unix-cheat-sheets—the-ultimate-collection/

FIXMBR y FIXBOOT en 7 y Vista

En la consola de recuperación (iniciando desde cd) de Windows 7 y Windows Vista, no se encuentran los antiguos comandos fixboot y fixmbr.

No es que se hayan cambiado, sino que ahora son:

bootrec.exe /fixmbr
bootrec.exe /fixboot

Hibernando con Intel Wireless 3945ABG – openSuse

http://en.opensuse.org/Pm-utils
Se debe crear un archivo en /etc/pm/config.d/config
y ahí modificar a gusto como sigue abajo… ya que este archivo no se sobreescribe al haber nuevas versiones.

HIBERNATE_MODE=”shutdown” <— porque con platform no funciona, sólo con shutdown
SLEEP_MODULE=”uswsusp” <——-porque es el sistema que funciona sobre la interface del usuario sin tener que modificar el kernel como pasa con tuxonice.
SUSPEND_MODULES=”ehci_hcd ohci_hcd uhci_hcd iwl3945″ <—

Borrar disco sin recuperación de datos

Para borrar el disco duro sin poder recuperar los datos:
for i in $(seq N); do dd if=/dev/urandom of=/dev/sda; done

Donde N es el número de veces que quieres que se repita el borrado y sustitución con números aleatorios. Cuantas más veces lo pases, más difícil será para un recuperador de discos obtener cualquier información útil.

Se puede usar /dev/random que es más aleatorio, pero tardaría mucho más y los discos duros no son precisamente pequeños ahora.

Ni que decir, que donde pone “sda”, podría ser cualquier otro dispositivo de almacenamiento.