Skip to content

Instantly share code, notes, and snippets.

View lionrajkumar's full-sized avatar
💭
Must Learn Today

Rajkumar lionrajkumar

💭
Must Learn Today
View GitHub Profile
@lionrajkumar
lionrajkumar / inceraseVdiSize.txt
Last active June 12, 2018 09:29
How to Increase Disk Size - Virtual Box
C:\Program Files\Oracle\VirtualBox>vboxmanage.exe modifymedium "E:\vms\Win XP.vdi" --resize 30999
@lionrajkumar
lionrajkumar / savePasswordGit
Created June 12, 2018 09:33
For save the username and password while push your code into git repositary
git config credential.helper store
@lionrajkumar
lionrajkumar / updatePrices
Created June 12, 2018 11:47
update prices from excel worksheet formula
Public Function UpdatePricesValues(Rg As Range, Sp As Range) As String
Dim tempStr As String
Dim strOrgTxt As String
Dim singlePcsPrice As String
Dim splitOrStrArray() As String
Dim splitCamaStrArray() As String
Dim getQty As String
Dim currentPriceVal As String
Dim pos As Integer
@lionrajkumar
lionrajkumar / deletePrefixTable
Created June 12, 2018 16:32
delete tables with certin prefix in a single database
-- Set up variable to delete ALL tables starting with 'temp_'
SET GROUP_CONCAT_MAX_LEN=10000;
SET @tbls = (SELECT GROUP_CONCAT(TABLE_NAME)
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = 'temp_migrate' //Database
AND TABLE_NAME LIKE 'mdltest_%'); //prefix
SET @delStmt = CONCAT('DROP TABLE ', @tbls);
-- SELECT @delStmt;
PREPARE stmt FROM @delStmt;
EXECUTE stmt;
@lionrajkumar
lionrajkumar / centosAllFilesDeleteInFolder
Created June 12, 2018 16:34
remove all the files in a folder in centos
rm -rf *
@lionrajkumar
lionrajkumar / laravelBasicInstalation
Created June 12, 2018 16:39
Basic installation comments for laravel existing projects
"composer install" OR "composer update"
php artisan cache:clear
composer dump-autoload
php artisan key:generate
@lionrajkumar
lionrajkumar / PHP-ini
Last active June 12, 2018 16:42
Default ini configuration for Appache and PHP
[PHP.ini]
max_input_vars line #385 on /etc/php/7.0/apache2/php.ini
max_execution_time=5000
memory_limit = 1280M #389
post_max_size = 128M #656
upload_max_filesize = 1024M #809
@lionrajkumar
lionrajkumar / runSonarqube
Created June 12, 2018 16:43
Sonarqube comments for run project report
/etc/sonarqube/bin/linux-x86-64/sonar.sh console
/etc/sonar-scanner/bin/sonar-scanner
@lionrajkumar
lionrajkumar / clearUbuntuCaches
Created June 12, 2018 16:46
Clear Caches in Ubuntu server and free the RAM space
free -h
echo 3 > /proc/sys/vm/drop_caches && swapoff -a && swapon -a
free -h
@lionrajkumar
lionrajkumar / magentoV2BasicCmd
Created June 14, 2018 15:58
MagentoV2 basic comments for running
rm -rf pub/static/*
rm -rf var/view_preprocessed/*
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento deploy:mode:set production -s
rm -rf var/di
php bin/magento setup:di:compile
php bin/magento indexer:reindex