home

Quickies, by Andrea Olivato

text

Du sort by size and human readable

Quick example to improve the du command output by displaying the biggest 10 subfolder of the current folder, each with its human redable size.

	
du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh | head -n 10

Found on ubuntu forums

1 month ago

December 7, 2011
Comments (View)
text

Simple PHP updating counter on a Bash shell

If you’re running a php script on a shell and want to know what it’s doing, at which point of the script it is you can simply use the chr function to print a backspace and updating a counter while running.

Below is a quick example

	
<?php
	$howmany = 20;
	echo "I have to do $howmany cycles\n";
	for($a=0;$a<$howmany;$a++) {
		$bkspacestring = "";
		for($k=0;$k<strlen(($a-1));$k++)
			$bkspacestring .= chr(8);
		echo $bkspacestring.$a;
		sleep(1);
	}
	echo "\nDid it!\n";
?>

6 months ago

July 28, 2011
Comments (View)
link tw2buzz

Find your twitter followers using buzz too and connect with them!

1 year ago

February 12, 2010
Comments (View)
text

[Browser] My favourite Chrome extensions

codepuzzling:

The development release of Chrome allow to install extension as for Firefox, but the process of installation (and even of creation as I heard from some developers) is faster. Here it is my list:

2 years ago

January 14, 2010
reblogged via codepuzzling
Comments (View)
link Responding to the Haiti Earthquake

marco:

There aren’t a lot of natural disasters worse than the earthquake that just struck Haiti. The earthquake is such a disaster that the people who are normally in charge of telling you what a disaster it is are mostly dead or missing.

Earlier, I posted a list of charities that are set up to quickly get relief to those who need it. All of these charities are legitimate and regardless of denominational affiliation are dedicated to providing humanitarian relief. Here’s an updated and expanded list.

Dan’s doing a much better job than I could possibly do on this, so go over there for a better idea of what you can do.

2 years ago

January 13, 2010
reblogged via marco
Comments (View)
link Tornado Web Server

(via manfrys)

2 years ago

January 13, 2010
reblogged via manfrys
Comments (View)
text

Recursively download a #Ftp tree via #Wget

This shows how to download recursively a complete ftp tree using wget command line tool

wget -r 'ftp://USER:PASS@HOST/PATH'

2 years ago

December 30, 2009
Comments (View)
text

Going Mobile - Twhois Android App

twhois:

We are very proud to present you our new Android application featuring the Twhois service.

The App was realized as experiment and is still an Alpha version. It’s compatible with Android 1.5+ (tested until 2.1) and is very rough as layout.

From the main window you can type the username of a tweep you’re interested on, and then press the Twhois this button.

After a bit of loading (please be patient, we still need to put the loading animation) you will retrieve exactly the same data presented on our main website. Avatar, full name, company and role details, a short biography and obviously the Social networks profiles of the desired user. As show below data are presented very schematically.

Downloads

You can install the application directly from the Android market searching for twhois or com.ao.twhois

Alternatively you can use the following QR or download the .apk directly.

2 years ago

December 11, 2009
reblogged via twhois
Comments (View)
text

Remove unwanted profiles - part 1

twhois:

We continue working on the editing part of twhois and today we’re releasing the first part of the remove feature we were asked to implement.

Logging in via Twitter API you are now able to delete previously added profiles. This means that the red cross shown above will only be present for links you added manually from the ‘Add profiles’ button.

We’re working hard to release the second part of the script soon, so that you will be able to delete automatically imported profiles too.

While you’re waiting don’t forget to fill out bugs!

2 years ago

November 27, 2009
reblogged via twhois
Comments (View)