Linux: Running a script at boot time
If you want to run a script at the initialization of your pc, for example to mount some disk, you should go to /etc/rc.d directory and edit the rc.local file:…
If you want to run a script at the initialization of your pc, for example to mount some disk, you should go to /etc/rc.d directory and edit the rc.local file:…
Monitor CPU and disk utilization with the following commands: df (disk free): [root@K8H6B1 nista]# dfFilesystem Size Used Avail Use% Mounted on/dev/sda1 128G 47G 75G 39% //dev/sda6 328G 4,5G 324G 2%…
Use the following code to execute some long running command and log out from your ssh session: at -f mount.sh now
For True Type Fonts: Copy the .ttf file (e.g. AGENO___.TTF) from the windows machine and put it into /usr/share/fonts/TTF/windowsfonts. Then change it to 8 characters and lowercase: mv AGENO___.TTF agentora.ttf…
Use the following code as an example: mount -t ext2 /dev/sdb5 /mnt/repmount -t ntfs /dev/sdc5 /mnt/usb1#for FreeAgent:mount -t ntfs /dev/sdd1 /mnt/usb2#for Western Digital:mount -t ntfs /dev/sdc1 /mnt/usb2 Other useful commands:…
Run the following program and find how fast is your PC in brutal calculations: //counter.cpp://------------//#include "stdafx.h"#include <stdio.h>#include <iostream>#include <time.h>#include <conio.h>int main (int argc, char* argv[]){ double x; int a; time_t…
Use the following code: <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="240" id="loading1" ALIGN=""> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333399> <PARAM NAME=movie VALUE="#WORKSPACE_IMAGES#loading1.swf"> …
Use the following code: <div style="width:40%;text-align:center;" ><marquee style="color:gray;font-size:42px;" behavior="alternate" direction="left">...</marquee></div>
Use the following code: window.showModalDialog('index.php','Dialogue','dialogHeight: 700px; dialogWidth: 950px; edge: Sunken; center: Yes; help: No; resizable: No; status: Yes;');
Put the following code(onunload or onbeforeunload): window.onunload = function () { setTimeout("document.getElementById('waiting-overlay').innerHTML=''", 10);}