Create a php script with following content “; foreach (get_loaded_extensions() as $extn) { echo $extn . … PHP Script to List Enabled ExtensionsRead more
Programming
Ruby On Rails
To create a ruby on rails project, run rails new
pm2 process manager for node.js
Auto Start pm2 on bootHow to host static site using pm2 pm2 is a process manager … pm2 process manager for node.jsRead more
nodemon
Node.js applications when you run with nodejs command, need to restart when a change is made … nodemonRead more
Laravel Database Migration Error Key too long
When doing a database migration on Laravel, I get the following error This is because MariaDB … Laravel Database Migration Error Key too longRead more
PHP running system commands with exec
To execure a system command on a server, use PHP exec function. For example &1″, $result); … PHP running system commands with execRead more
Installing golang on Ubuntu 18.04
To install golang on Ubuntu 18.04, run apt install golang -y
GoLang Hello World
Create a file 1.go with following content package main import “fmt” func main() { fmt.Println(“My First … GoLang Hello WorldRead more
Gem – Package Manager for Ruby
gem is package manager for Ruby. To get list of all install packages, run gem list … Gem – Package Manager for RubyRead more
HTTP 301 Redirect using PHP
You can use the PHP header() function to do redirect. To do 301 redirect, use For … HTTP 301 Redirect using PHPRead more