-
Archives
- March 2019
- March 2018
- June 2017
- May 2017
- November 2016
- September 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- December 2014
- October 2014
- September 2014
- May 2014
- April 2014
- March 2014
- January 2014
- November 2013
- October 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
-
Meta
Author Archives: ronaldpringadi
Enabling SSH (https) for Apache 2 in Ubuntu/Mint/Possibly other Debian distro
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051# Intall apache $ sudo apt-get install apache2 # Enable SSL module $ sudo a2enmod ssl # Restart Apache $ sudo service apache2 restart # Create a directory to store the SSLCertificateFile and SSLCertificateKeyFile $ mkdir /etc/apache2/ssl # Generate … Continue reading
Posted in Linux, Ubuntu, Web Development
Leave a comment
PHP and CURL
1234567891011121314151617181920212223242526function browse($url, $postData = null) { $fields = ”; if(is_array($postData) && sizeof($postData) >= 1){ $fields = http_build_query($postData); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); … Continue reading
Posted in php, Web Development
Leave a comment
Customize your Vim editor using .vimrc
Quick notes: – imap is for when you are in insert mode – map is when your are in command mode Thus when you are in the insert mode, sometime you need to exit to the command mode first using … Continue reading
Posted in Linux
Leave a comment
Bash Scripting Basics (Variable Assignment, If, Loop)
12345678910111213141516171819202122232425262728293031#!/bin/bash ################################################## # Benchmark the processing time when wkhtmltopdf # converts an html file to a pdf file ################################################## if [[ $1 = "" || $2 = "" || $3 = "" ]]; then echo "Usage: … Continue reading
Posted in Bash, Linux
Leave a comment
Compress and Extract Files in Linux
Extract: .tar.bz2 To extract a tar (Tape ARchiver) file, type the following in the shell prompt: 1tar xvjf yourFileName.tar.bz2 Which will untar it to the current directory. Depending on the file structure that being compressed, it might create sub-directories. Parameters: … Continue reading
Using VBA macro for Excel
Let’s start with something simple, assume that we have a big spread sheet and we want to highlight it based on a certain subject. For example expenses about car. For the sake of the example we’ll keep it short, but … Continue reading
Posted in Visual Basic
Leave a comment