Posts tagged ‘administration’

Fsniper

fsniper allow to monitor your folders and trigger some actions based on the type of files you have there.

Example: ~/.config/fsniper/config
PDF files downloaded from Firefox on the desktop, get moved to ~/Desktop/pdf.

watch {
~/Desktop {
*.part {
handler = echo ignoring file: %%
}
application/pdf {

handler = mv %% ~/Desktop/pdf
}
}
}

Fsniper can be run in daemon mode:

fsniper --daemon

How do I reset ‘sa’ password in SYBASE

When SYBASE get started, the following call is made:

startserver -f RUN_MYINSTANCE

RUN_MYINSTANCE is located in $SYBASE_HOME/install.

1/ edit RUN_MYINSTANCE and add the following line, where the switches are:

-psa

2/ run startserver -f RUN_MYINSTANCE

During the boot phase you will see something like, e.g:
New SSO password for sa:uvwxyz

You can also see this message in Sybase logs.

3/ edit RUN_MYINSTANCE and remove the line you added in step 1/, so you do not reset it next time.

4/Set your own password:

isql -Usa -SMYINSTANCE (using ‘uvwxyz’ password)

>sp_password “uvwxyz”,”my_own_password”
>go

Check process using strace

strace -f -r -o pid.out -p {PID}

Increasing the number of ‘user connections’ in SYBASE

Default value : 25

$isql -Usa -SMYINSTANCE

>sp_configure ‘user connections’, 100

No reboot is required since this option is dynamic.
Changing the value of ‘number of user connections’ to ’100′ increases the amount of memory ASE uses by 17740 K.