Truncate large files in linux
Better late than never Truncate file into Mb’s $ sudo truncate -s 10M filename.log Truncate file into Gb’s $ sudo truncate -s 1G filename.log
Better late than never Truncate file into Mb’s $ sudo truncate -s 10M filename.log Truncate file into Gb’s $ sudo truncate -s 1G filename.log
It’s always a pleasure to have html tags tidy and attached to one another. especially if these html tags are yours in your website. To have this we can do with a simple php function. Place the code below at the top of header php page or index page. <?php function sanitize_output($buffer) { $search = … Read more
$ mkdir ~/mymodules $ cd ~/mymodules ~/mymodules~$ puppet module generate pulpn-test –skip-interview $ puppet module install puppetlabs-stdlib $ puppet module build ~/mymodules/test
So, I needed to download songs from youtube but not as a video but only audio. Then I went to this website to convert these video as usual. The website that I used to convert video from youtube was popped out ads that I didn’t like. I started to thinking why the hell that I … Read more
uWSGI is driving me crazy when install it, every single time. I’m using Centos 6.9 to setup my python app. This one is for setup uWSGI and make sure you already installed Python2.7 on your machine: $ wget https://bootstrap.pypa.io/get-pip.py $ which python2.7 $ sudo /usr/local/bin/python2.7 get-pip.py $ which pip2.7 $ sudo /usr/local/bin/pip2.7 install uWSGI $ … Read more