Saturday, June 15, 2019

Docker: Owncloud

Owncloud in docker

First we need to download owncloud.
docker pull owncloud
docker run -d -p 8080:80 -p 443:443 --name owncloud owncloud

Time to allow owncloud being accessible by outside.
docker ps
docker exec -it <your container> bash
$ apt-get update
$ apt-get install nano


$ nano config/config.php

Friday, March 1, 2013

ll as an alias to ls -lrt

Ok from my recent experience working on AIX servers, it was always handy to do an ll, an abbreviation of the 'ls -lrt' command.

It is very easy to create an alias of a command as something else:
alias ll="ls -l"
Remember not to leave any spaces (maybe even do single quote instead of double quotes). It could also be more useful to put aliases in .bash_aliases file and keep your .bashrc cleaner. 

Thursday, November 1, 2012

Fixing Skype's high CPU usage


From http://billxinli.com/2011/12/14/fixing-skypes-high-cpu-usage/

I brought home a new MacBookPro the other day (well yesterday) It had nothing but a clean install of 10.7.2, I installed Skype, and did a bit of video calling, to my surprise it was using over 300% of the CPU. Unless if it is solving the cure to cancer, that should not happen.

I tried multiple versions of the software, and they were all taking up the same amount of CPU cycles.

The fix hack:

I realized that Skype uses peer to peer with supernode peers for call routing. I have a Rogers extreme connection, without a firewall, and my IP for the mac placed in the DMZ.