Please read the manual carefuly
- Creating sudoers user (don’t use root)
- do update first
sudo apt-get update
- do update first
Please read the manual carefuly
sudo apt-get updatePrereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
| select | |
| STR_TO_DATE(concat(tgl, ' Monday'),'%x%v %W') date_start, | |
| STR_TO_DATE(concat(tgl, ' Sunday'),'%x%v %W') date_end | |
| from | |
| ( | |
| select | |
| date_format(updated_at, "%Y%v") as tgl, | |
| count(1) as counter | |
| from table | |
| group by tgl |
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
cd wkhtmltox/bin/
sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage
| /** | |
| * $.parseParams - parse query string paramaters into an object. | |
| */ | |
| (function($) { | |
| var re = /([^&=]+)=?([^&]*)/g; | |
| var decodeRE = /\+/g; // Regex for replacing addition symbol with a space | |
| var decode = function (str) {return decodeURIComponent( str.replace(decodeRE, " ") );}; | |
| $.parseParams = function(query) { | |
| var params = {}, e; | |
| while ( e = re.exec(query) ) { |
step 1 : take a backup
mysqldump --lock-all-tables -u root -p --all-databases > dump.sql
step 2 : remove old mysql
sudo apt-get remove mysql-server
sudo apt-get autoremove| <?php | |
| use Cache; // alias from laravel | |
| use Symfony\Component\DomCrawler\Crawler; | |
| use GuzzleHttp\Client; | |
| public function parsePlayStore($url='') | |
| { | |
| $parsedUrl = parse_url($url, PHP_URL_QUERY); | |
| $packageNameFromUrl = 'com.inponsel.android'; |