SOL: Use the power of the command line to reclaim disk space

This is part of my Simple One-Liners (SOL) series of useful commands. Ok, I’m just starting the series now, but I thought it would be a good idea!

Of course there are tools like the eminent BleachBit which you can and should be using regularly to reclaim space on your hard drive. But what if you want to see what is actually taking the most space on your drive? This may be especially important for a system with limited drive space. For example my ultra-portable Thinkpad X1 Carbon has a 200GB SSD drive so I have to watch the space on it more carefully.

Simple! In a Cygwin terminal running with Administrator privileges, just use the du command, combined with the sort command, and pipe its output to a file. In this example I’m using drive C which is usually the main drive.

cd /cygdrive/c
du -ak . |sort -rn 2>&1 |tee du.txt

This will output the result to a file du.txt that you can then view with the less command:

less du.txt

Let’s say you want to get fancy with the name of the file and add a date to it, for example the following date command will give you output like the following:

date +%Y.%m.%d-%T
2016.05.18-15:45:23

You can combine this with the above command:

du -ak . |sort -rn 2>&1 |tee du-`date +%Y.%m.%d-%T`.txt

which will give you a file like du-2016.05.18-15:45:23.txt

Now when you look at the output file you will see a list of files on drive C in descending order by size.

Now you can decide – look at the list. Do you really need those videos on the drive? Can some backup files be moved to your network share?

Allowing ads on more sites

Am starting to allow ads on more sites. Today I just enabled ads on one of my long-time favorite sites for nutritional and health information: Livestrong.com. I think what Lance Armstrong did with doping and lying about it was extremely wrong, and I don’t know the extent to which he is involved with the site, but regardless it is an excellent site which I’m grateful for.

Today I was looking for information about foods that are rich in flavonoids. Of course Livestrong has an article on it!

Once again too, the Wikipedia page is more or less bullshit. They cite a 2007 study which shed doubt on the activity of flavonoids in vivo, but then there have been numerous studies since then showing clear benefit, which they completely ignore.

Here’s an article from 2012 about significantly reduced risk of Parkinson’s in men. There are many others.

Wikipedia is so bad that I have serious reservations about turning to it for any kind of health-related info beyond perhaps basic descriptions of diseases and human anatomy. If you try to edit an article about for example an herb or nutritional supplement and provide links to science articles, they will delete them and revert your information. Fuck Wikipedia. They are a bunch of disgusting asswipes.


One other site I really like which I enabled ads on this past week: Realclearpolitics.com. They have good coverage of elections, poll tracking, and delegate counters. They even have their own reporters.


UPDATE: Re-enabled ad-blocking for Realclearpolitics. Popups are a no-no. Also, their advertising – like many sites I’ve tested – went way overboard.

EB-5 Investor Visas: The selling out of America by the oligarchy

Just read this article about EB-5 investor visas. Chinese and other foreign “investors” buying US real estate is a betrayal of America. Kick them all out and seize all their assets.

Every American politician who betrayed and sold out our country should be prosecuted and incarcerated.

Is this the America that over 400,000 Americans lost their lives fighting for in World War II?

My favorite website design style

Here is an example of my favorite website design styles. The Chinese are masters of website design.

Its like you could spend hours getting involved in just this one site. It has so much going on.

Illegal Immigration: A national ponzi scheme that everyone will pay for

Illegal immigration is like a ponzi scheme. There is no way in hell that its even remotely sustainable from an economic nor logistical point of view.

Its a ponzi scheme that supports the status quo of the entitleds. It provides labor to their sham economy. It keeps things stable just long enough until those at the reins pass away, at which point they don’t care if things go to complete hell.

Illegal immigration is a huge ponzi scheme – just like slavery was – benefiting an entitled class – which the entire nation will have to suffer for and pay the price for.

Once the current flood of 30 million illiterate illegals don’t work the low-level jobs they are expected to work anymore, and their children don’t either, then they have to bring in 30 million more. Or even more than that to cope with the increased population, in what amounts to a feedback loop. A fucked feedback loop. Its a ponzi scheme.

America should take a strong stand against it. It should punish the purveyors of the ponzi scheme. Every politician, business, and organization responsible for perpetrating this crime against the American people should be held accountable.

California is particularly out-of-control. Other states in the nation should not accept California’s entitled class running this illegal immigration ponzi scheme to benefit itself, at the expense of the rest of the nation which eventually will have to deal with the consequences.

How to setup Owncloud, Apache, MariaDB, PHP7.0, and Redis on Debian 8 “Jessie”

This is just a rough outline, but here goes:

1. Enable both the Dotdeb and Owncloud repositories for apt and run apt-get update

Note: Some people have claimed to have had reliability issues with some packages from Dotdeb. I personally never have. You could also try using jessie-backports or just stick with plain vanilla Jessie and use php5 instead.

Here is some info from Owncloud about their readiness for PHP7.

2. Install: mariadb-server mariadb-client redis-server redis-tools owncloud-files php7.0 libapache2-mod-php7.0 php7.0-redis php7.0-mysql php7.0-gd php7.0-curl php7.0-dev

3. cp /usr/share/doc/owncloud-files/owncloud-config-apache.conf.default /etc/apache2/conf-available/owncloud.conf

4. See wiki.debian.org: Self-Signed_Certificate

5. See techandme.se: How to configure Redis Cache in Ubuntu 14.04 with ownCloud
(Basically add some lines to Owncloud’s config.php)
(As of this writing PEAR is not packaged by Dotdeb for PHP7.0 so you have to install the pre-built php7.0-redis module)
phpenmod -v 7.0 redis
service apache2 restart
php --ri redis

6. Apache:
a2enconf owncloud
a2enmod php7.0 ssl
a2ensite ssl
service apache2 restart

7. Log in to mysql (as root):
create database owncloud;
create user owncloud@localhost identified by 'password';
grant all privileges on owncloud.* to owncloud@localhost identified by 'password';
flush privileges;

8. Create /var/www/html/phpinfo.php with following contents:
<?php phpinfo(); ?>

9. Visit https://yourserver/phpinfo.php to see if its working

10. Visit https://yourserver/owncloud and input information to complete setup

11. Very important: ownCloud 9.0 Server Administration Manual


If you need to wipe everything out and start over:

apt-get remove --purge owncloud-files apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php7.0 php7.0-cgi php7.0-fpm
apt-get autoremove
rm -rf /var/www/owncloud

mysql (as root):
drop database owncloud;
delete from mysql.user where User="owncloud";
flush privileges;


Here are some other sites with good info:

linuxbabe.com: Setup OwnCloud 9 Server with Nginx, MariaDB and PHP7 on Debian

squarecone.com: ownCloud and PHP7 update on Debian Jessie


Tip for making administration of Owncloud easier:

Create a BASH alias for the occ command:

alias occ='sudo sudo -u www-data php /var/www/owncloud/occ'


Further reading:

linux-mag.com: Redis: Lightweight key/value Store That Goes the Extra Mile

Rancid little shits


The vast majority of these little disgusting shits are asian. They are everywhere on the streets in their deafeningly loud race cars blasting people away with the noise from the deliberately modified exhaust systems. Its not just the cars either. There are motorcycles all over which in some cases are even louder. Then there are the mexicans with their appalling pickup trucks which they often drill holes in the muffler to deliberately make them louder, so they can be “macho”.

Fuck all this shit.

If the rotten little asian shits didn’t have their Mommy and Daddy’s money – thanks to the housing bubble in California – they wouldn’t even be able to afford to live here, much less afford to have cars like these.

This is why I refuse to ride a bicycle in my city. There is no way in frikkin hell that I would ever expose myself to these rancid shits, and to the motorcycles and trucks. Its all stupid asswipe morons, and they have destroyed the city completely. Anyone who rides a bicycle or even walks on streets in the city, is basically given their self brain damage through the exposure.

Yet there is a medical school and a law school in this city. There are business schools. There are supposedly all these professionals working jobs which require advanced knowledge, yet despite all this the rancid, retarded shits are allowed to brain damage entire communities with their noisy vehicles in what amounts to mass insanity.

I see mothers pushing babies in strollers along the streets of the city, exposing the kids to permanent brain damage before they can even speak.

This is why I support the strictest immigration crackdown possible. Its not the first-generation ones, its the second, third or even fourth who turn out to be these little, rancid shits, ruining communities. Kick them all out.

Or maybe America should start a war and draft all these little shits. That would get them off the streets. Hopefully permanently.

Coverage of Donald Trump in Big Media is Overwhelmingly Negative

[sorry the link is dead. these media links from realclearpolitics.com end up expiring for some odd reason]

The oligarchy is doing everything to take Donald Trump out. Keep your eyes wide open and look at the oligarchy-controlled farce that American has become.

The oligarchy is not even trying to conceal what it is doing. It spits on the American people. It spits on democracy openly. This is what how far America has descended.

Updated Look for Alaya.Net

I didn’t know this, but alaya means “home” or “abode” in Sanskrit. For example, himalaya means something like “snowy abode”. That’s cool because Alaya Net is my home on the net!

I’ve been doing a lot of tweaking to the site, to both the desktop and mobile versions. This kind of activity is such that you easily get sucked into it and can spend hours continually tweaking, editing, and adjusting. Its hard to get myself to stop!

I also wanted to mention what I feel is the absolute best “color-picker”-type site on the Internet: colorizer.org. If you are doing any kind of designing work with colors, colorizer.org is an excellent resource.

Another really useful tool if you’re designing a mobile site is the Firefox Add-on User Agent Overrider.

I also noticed an issue with the Alaya|Techne mobile site that I will need to fix. There are probably other issues as well. Please bear with me.

But I think for now I have to stop for a while because there are other things I have to do, like study for my classes 🙂

The Oligarchy’s Stranglehold on American Democracy Exposed

The oligarchy is continuing unabated to attack Donald Trump. The Speaker of the House of Representatives. Former presidents. Many others.

Also the deliberate manipulation of the public using covert psychological influencing techniques in the “news” media which is really propaganda of the oligarchy.

Its appalling to watch how extensive the oligarchy controls America and the lengths it goes to to manipulate the populace.

Its also appalling to see to what extent the oligarchy is embedded into the government of the United States.

The more these attacks occur the more clear it makes it that we absolutely need someone like Donald Trump to break the oligarchy’s stranglehold on American democracy.

Page 28 of 100« First...1020...2627282930...405060...Last »