Windows oddly.. but a good friend found this it’s on her site: http://rochcass.wordpress.com/2013/03/28/restart-an-asp-net-application-programmatically-without-editing-the-web-config/ to quote: Several times I would be working on a site and some data would not change due to session variables or the .NET cache. This can’t be eliminated by clearing the browser cache but would need the whole ASP.NET application to…
Category: Howtos
Testing internet bandwidth from command line
wget -O/dev/null speedtest.pixelwolf.ch nJoy 🙂
Bacula list files in job
list files jobid=23
Accessing ESX management interface (DCUI) from ssh
Access the ESXi Direct Console User Interface (DCUI) over SSH When not in position to go to the DC to access the ESX text mode interface use the DCUI command: First you need to enable and start Remote Tech Support (SSH). This is done for the ESXi Host in Configuration -> Software -> Security Profile…
One Liner Email from bash
Simple: # echo “This will go into the body of the mail.” | mail -s “Hello world” you@youremailid.com nJoy 😉
Removing ctrl M (^M) from files in vi
It’s a common thing to open a file on linux and discover it was flooded with ^M symbols after being editted in windows by some windows user. The ^M symbol is pretty harmless usually (it is the representation of alternate CR carriage return or move to beginning of line). An old IBM /PCDOS artefact not…
Automagically maintain a file system with autofs
Pending more detail yum install -y autofs /etc/autofs.master contains used protocols /- /etc/autofs.nfs /etc/autofs.nfs /mnt/mountpoint -fstype=nfs,rw,soft,intr,rsize=8192,wsize=8192 hostname_or_IP:/mnt/exported_folder To find out what is exported on a given machine use showmount -e nJoy 😉
Java automatic download link
Hard to find but downloading java from a script (not openjdk in the repos) is not something I found easily. So here is page with the links: http://java.com/en/download/manual.jsp?locale=en nJoy 😉
Screen script for multi-user session or reminding you to create a screen on logon
A common problem when many people share large systems as the same user ( I know .. I know but anyways move on ) is that when you logon you might want to take over where someone else left off. Also sometimes you want to share a session with someone for supervision or just team…
Mysql list privileges for a user
SHOW GRANTS; SHOW GRANTS FOR CURRENT_USER; SHOW GRANTS FOR CURRENT_USER(); e.g. SHOW GRANTS FOR root; mysql> SHOW grants for root; +———————————————————————————-+ | Grants for root@% | +———————————————————————————-+ | GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY PASSWORD ‘*81F5E21E35407D884A6CD4A731AEBFB6AF209E1B’ WITH GRANT OPTION | +———————————————————————————-+ 1 row in set (0.00 sec) mysql> nJoy 😉