An amazing youtube music videos mashup!

Sometimes we just need to add some swapspace to a linux machine to accomplish a job.
For such “one shot” needings we can add temporarily a swapfile that we can remove once the job is done.
To do this, these are the steps:
We can check the active swapfiles with: cat /proc/swaps or with: free
After the job is done, we can remove the swapfile in this way:
Here is a real time saver!
A bunch of reference cards on O.S., programming languages, programs, etc. etc.
Really useful!
Have you ever been lost while watching a kaleidoscope? It’ amazing how complex patterns can arise from such simple device. Technology comes in help here giving you an online kaleidoscope to stare at.
This link explains why evil genius should be working all the time on plans to conquest and rule the world and not bothering with normal things!
This is just a simple window with a button to close it:
from Tkinter import *
root=Tk()
def wclose():
root.destroy()
btn=Button(root,text="close",command=wclose)
btn.grid()
root.mainloop()
Did you know you could use PHP from command line? Than you can create shell scripts with it?
Well… You can!
The only thing to do is to write down your piece of code and run it with:
You can also insert as the first line:
And by giving execution permissions to your script, you can launch it directly as this:
If you want more details about using PHP for shell scripting you can go here, or here, or here.
Per verificare la versione di linux installata in un server basta controllare il contenuto del file /etc/issue.
Es.:
root@report:~# cat /etc/issue
Ubuntu 6.06.2 LTS \n \l